View Full Version : new added dns records are not right
adam76
9th January 2006, 22:28
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 ?
till
9th January 2006, 22:33
Have you used the DNS-Manager or only checked the "Create DNS" Checkbox when creating a website?
adam76
9th January 2006, 22:39
create DNS and create MX i have checked. no dns manager
till
9th January 2006, 22:41
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.
adam76
9th January 2006, 22:44
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.
till
9th January 2006, 22:50
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
adam76
9th January 2006, 22:53
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.
falko
10th January 2006, 00:10
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.
timehost
10th January 2006, 00:11
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.
till
10th January 2006, 11:50
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')";
adam76
12th January 2006, 21:51
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.
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 ??
falko
12th January 2006, 22:21
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 ??
Go to the DNS Manager and create mail.domainname.top and use the host's IP address as IP address.
adam76
12th January 2006, 22:55
still i am confused what am i doing wrong
this is the dns record
$TTL 86400
@ IN SOA ns1.servitall.net. admin.bsf.nl. (
2006011210 ; serial, todays date + todays serial #
28800 ; refresh, seconds
7200 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;
NS ns1.servitall.net. ; Inet Address of name server 1
NS ns2.servitall.net. ; Inet Address of name server 2
;
www MX 10 servitall.net.
bsf.nl. A 217.148.167.138
www A 217.148.167.138
localhost A 127.0.0.1
exchange A 127.0.0.1
;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;
what says at the row MX this : www MX 10 servitall.net.
but i dont want to do mail routing for www. i want to do it for the domain itself. so users can email at user@bsf.nl and not in this setup user@www.bsf.nl that isnt soo clean and customers dont like that :P
falko
12th January 2006, 23:22
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.
adam76
24th January 2006, 10:46
ill do it nowfor every domain manually. but can i post this issue as future request ??
till
24th January 2006, 10:56
Sure, you can post it to the feature requests.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.