hi, i just started to work with ispconfig and i am amazed about the product. but yeah ofcourse there it comes. i have problems with my DNS records. when i add a domain with a DNS server hosting the records miss alot of stuff. Like a proper MX record and Localhost record what is needed for NL registration. i can add it all manually but is there a way how i can add a form or template where i can set my own settings according my own will ?
For these "simple" functions you can set some preferences in Administration > Server > Settings If the functions there where not advanced enough, i recommend to fine tune the DNS records in the DNS manager.
but what i was thinking about is perhaps there is a way to adjust the way how the dns records is been created in the form manager. but i cant find a good documentation on how to use this one with what variables. if i need to fine tune the dns records when i add alot of domains is alot of time. i was think perhaps i could adjust the script a bit to meet my needs.
You cant modify this directly in the form manager. You will have to change the "action" script that is executed when the website is saved. If remeber correctly, the name of the file is: /home/admispconfig/ispconfig/lib/classes/ispconfig_isp_web.lib.php
ok thanks for the quick support. i am going to give it a look and keep posted here. perhaps i post the new ( nic.nl certfied domain records ) script.
The script that's actually writing the zone files is /root/ispconfig/scripts/lib/classes/ispconfig_bind.lib.php. You might want to have a look into it as well.
I have the same problem, and I think there is a bug here $domain = trim($server["server_domain"]); //////////////////////////////////////// // MX Record anlegen //////////////////////////////////////// $domain = trim($server["server_domain"]); $host = $go_api->db->queryOneRecord("SELECT web_host FROM isp_isp_web WHERE doc_id = $doc_id"); $host = trim($host['web_host']); if(!empty($domain)) { //$ip_adresse = $domain["domain_ip"]; $sql = "INSERT INTO dns_mx (host,prioritaet,mailserver) VALUES ('$host','10','$domain')"; We want the MX record to be set up as mail.customerdomain.tld, not mail.serverdomain.com for example we are in a hosting company called timehost.net, the server is called zeus.timehost.net. If a reseller creates a new site, the MX record should point to mail.customerdomain.tld. Currently there is a erroneus default entry as timehost.net only.
I think thats not a bug. What you want is another kind of configuration then the one that ISPConfig has for default. If you want MX records to point always to the customer domain, you can use it like this: //////////////////////////////////////// // MX Record anlegen //////////////////////////////////////// $host = $go_api->db->queryOneRecord("SELECT web_host FROM isp_isp_web WHERE doc_id = $doc_id"); $host = trim($host['web_host']); $domain = "mail.".trim($host["web_domain"]); if(!empty($domain)) { //$ip_adresse = $domain["domain_ip"]; $sql = "INSERT INTO dns_mx (host,prioritaet,mailserver) VALUES ('$host','10','$domain')";
and then also there is one q from my side. how to add the mail.domainname.top than ? that that one also points to the host ??
still i am confused what am i doing wrong this is the dns record what says at the row MX this : but i dont want to do mail routing for www. i want to do it for the domain itself. so users can email at [email protected] and not in this setup [email protected] that isnt soo clean and customers dont like that
Then create an MX record for bsf.nl. Go to the bsf.nl zone in the DNS Manager, then to the "Records" tab, then click on "MX new". Then leave the "Hostname" field empty, choose a priority, and put servitall.net into the "Mailserver" field.