Submitted by taisweb on Mon, 12/26/2011 - 12:57
I have the autoconfigured slave zones set up, using 3 servers (1 pro master, 2 gpl slaves). I can add a virtual server, and it creates the domains, but it gives the master IP address to all NS records instead of supplying the correct IP per server record. ie: the NS1 record is correct, but NS2 and NS3 (the two slaves) records show the same IP as NS1. How do I tell it the correct IP's to use for the ns2 and ns3 records?
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Mon, 12/26/2011 - 15:35 Comment #1
If you check the zone file for the domain, what hostnames are set for the NS records?
Are they all the same, or are they different but resolve to the same IP?
Submitted by taisweb on Tue, 12/27/2011 - 08:53 Comment #2
Screenshot attached. It shows that the NS records have only ns2 and ns3 (ns1 should also be NS). ns1 is SOA. As for A records, it does not include an A record for ns1, and both ns2 and ns3 are assigned the ns1 (master) IP address.
Submitted by JamieCameron on Tue, 12/27/2011 - 18:09 Comment #3
Check at System Settings -> Server Templates -> Default Settings -> BIND DNS Domain -> BIND DNS records for new domains that the records for ns2 and ns3 have the correct IP addresses. It looks from that screenshot like you might have set them to ${IP} instead of the correct IPs.
Submitted by taisweb on Wed, 12/28/2011 - 11:24 Comment #4
The "BIND DNS Records for New Domains" box is empty.
Submitted by JamieCameron on Wed, 12/28/2011 - 13:08 Comment #5
Ok .. so what is shown at Webmin -> Servers -> BIND DNS Server -> Cluster Slave Servers ?
Submitted by taisweb on Wed, 12/28/2011 - 14:31 Comment #6
ns2.ezhostr.com and ns3.ezhostr.com. Screenshot attached.
Submitted by JamieCameron on Wed, 12/28/2011 - 18:58 Comment #7
You need to correct the IPs for ns2 and ns3 in the ezhostr.com domain in Virtualmin.
Then when any new domains are created in future, they will use the correct IPs..
Submitted by taisweb on Thu, 12/29/2011 - 08:18 Comment #8
Thanks, I got it to work by doing this and adding an A record for ns1.ezhostr.com, as well as checking the "Add nameserver record for this system" option in the server template. Now new domains are created with all 3 NS records. Thanks for your help.
Submitted by JamieCameron on Thu, 12/29/2011 - 12:43 Comment #9
Submitted by Issues on Thu, 01/12/2012 - 12:45 Comment #10
Automatically closed -- issue fixed for 2 weeks with no activity.