Hello,
another problem with DNS templates of i-MSCP (all old and new Versions):
Normally my server config has a server domain like mydomain.com.
Admin panel is reachable with config.mydomain.com
With glue record registered Nameservers are ns1.mydomain.com and ns2.mydomain.com.
in /var/cache/bind/mydomain.com.db are following entries:
- $ORIGIN .$TTL 10800 ; 3 hoursmydomain.com IN SOA ns1.mydomain.com. postmaster.mydomain.com. ( 2014112401 ; serial 10800 ; refresh (3 hours) 3600 ; retry (1 hour) 1209600 ; expire (2 weeks) 3600 ; minimum (1 hour) ) NS ns1.mydomain.com. NS ns2.mydomain.com. A ipA.ddr.e.ss MX 10 mail.mydomain.com. TXT "v=spf1 a mx -all" SPF "v=spf1 a mx -all"$ORIGIN mydomain.com.forum A ipA.ddr.e.ssMX 10 mail TXT "v=spf1 a mx -all" SPF "v=spf1 a mx -all"$ORIGIN mydomain.com.ftp A ipA.ddr.e.ssimap A ipA.ddr.e.ssmail A ipA.ddr.e.ssns1 A ipA.ddr.e.ssns2 A ipA.ddr.e.ss2pop A ipA.ddr.e.sspop3 A ipA.ddr.e.ssrelay A ipA.ddr.e.sssmtp A ipA.ddr.e.sswww CNAME mydomain.com.
Now i create another Customer with Domain customerdomain.com;
This Customerdomain has no own nameservers and no own glue records.
This Domain has the Nameservers ns1.mydomain.com and ns2.mydomain.com.
I-MSCP creates the file /var/cache/bind/customerdomain.com.db with the following entries:
- $ORIGIN .$TTL 10800 ; 3 hourscustomerdomain.com IN SOA ns1.customerdomain.com. postmaster.customerdomain.com. ( 2014112400 ; serial 10800 ; refresh (3 hours) 3600 ; retry (1 hour) 1209600 ; expire (2 weeks) 3600 ; minimum (1 hour) ) NS ns1.customerdomain.com. NS ns2.customerdomain.com. A ipA.ddr.e.ss MX 10 mail.customerdomain.com. TXT "v=spf1 a mx -all" SPF "v=spf1 a mx -all"$ORIGIN customerdomain.com.ftp A ipA.ddr.e.ssimap A ipA.ddr.e.ssmail A ipA.ddr.e.ssns1 A ipA.ddr.e.ssns2 A ipA.ddr.e.ss2pop A ipA.ddr.e.sspop3 A ipA.ddr.e.ssrelay A ipA.ddr.e.sssmtp A ipA.ddr.e.sswww CNAME customerdomain.com.
But all nameserver entries are not correct.
A check with test tool from german network information center http://www.denic.de/hintergrund/nast.html tells me:
QuoteDisplay More
Approved Domain : customerdomain.com
Result : Error.
Nameserver IPs
ns1.mydomain.com
ns2.mydomain.com
Error 118 Inconsistent set of NS RRs (IP, NS host names)
/ipA.ddr.e.ss
[ns1.customerdomain.com, ns2.customerdomain.com]
Error 118 Inconsistent set of NS RRs (IP, NS host names)
/ipA.ddr.e.ss2
[ns1.customerdomain.com, ns2.customerdomain.com]
If i change the file /var/cache/bind/customerdomain.com.db to the following entries:
- $ORIGIN .
- $TTL 10800 ; 3 hours
- customerdomain.com IN SOA ns1.mydomain.com. postmaster.mydomain.com. (
- 2014112401 ; serial
- 10800 ; refresh (3 hours)
- 3600 ; retry (1 hour)
- 1209600 ; expire (2 weeks)
- 3600 ; minimum (1 hour)
- )
- NS ns1.mydomain.com.
- NS ns2.mydomain.com.
- A ipA.ddr.e.ss
- MX 10 mail.customerdomain.com.
- TXT "v=spf1 a mx -all"
- SPF "v=spf1 a mx -all"
- $ORIGIN customerdomain.com.
- ftp A ipA.ddr.e.ss
- imap A ipA.ddr.e.ss
- mail A ipA.ddr.e.ss
- ns1 A ipA.ddr.e.ss
- ns2 A ipA.ddr.e.ss2
- pop A ipA.ddr.e.ss
- pop3 A ipA.ddr.e.ss
- relay A ipA.ddr.e.ss
- smtp A ipA.ddr.e.ss
- www CNAME customerdomain.com.
and reload bind name server, the nameservercheck says:
Quote
approved Domain : customerdomain.com
Result : examination successfully.
Nameserver IPs
ns1.mydomain.com ipA.ddr.e.ss
ns2.mydomain.com ipA.ddr.e.ss2
What can i do?
A manually change of each file is impossible - so it must give a way to change the nameservers permanently to correct entries.