Joe, Does VirtualminPro take over as a Primary nameserver? Server hosts added to dns2 keep getting written to hosta as slaves and not to dns1.
Case in point:
I have 3 boxes, dns1, dns2, hosta.
Initially, dns1 hosted the primary nameserver and our website while dns2 was the secondary nameserver and hosted the mail and hosta was my learning machine. All three had webmin/virtmin on Slackware.
I've taken hosta and installed VirtualmPro 3.13 on CentOS 3.7
The only mention of hosta on dns2 is inclusion as a cluster server, but I left checked not to write to hosta on it's inclusion. On dns2, dns2 is configured as the master server for master zones and dns1 is the master serverIP for remote slaves ( question, are these settings required?)
yet when I create a server on dns2 it writes the slave to hosta and 8 hours later the host resolves to the first namebased server on hosta
Confused here
Java, java, java, java
Shut down the nameservers and went for coffee.
started them back up and now they are writing where they're supposed to.
Doesn't say anything in the manual about coffee????
Any suggestions about my other problem with CentOS 4 TCP routing and upgrading? Would like to know the pitfalls before I put the new box into service.
Thanks,
Dan
Hey Dan,
Hehehe...I think the key part of the equation wasn't the coffee, but the restart of the nameservers. ;-)
The changes that are made to cause slave synchronization to occur does require a restart (or reload) of the nameservers. I need to document the cluster name servers stuff a bit better, I think.
I don't think I ever figured out exactly what problem you were having with routing or upgrading, so I'm not really sure what to suggest pitfalls might be. ;-)
--
Check out the forum guidelines!
Hi Joe,
Maybe you could give me a quick list of the important things to setup in order to get clustered slave servers to work, as i'm having similar issues.
My setup is this
server1 - my primary VMPro server
server2 - my hot spare / second ns / second mx
servers 1 & 2 are both on a private 192.168.1.x network aswell as public ip's. So i've created an entry in Webmin Servers Index on server1 using the private ip so that it can see server2. This seems to work and i can login to server2 via server1.
I then go to the Bind module] cluster slave servers and add server2 as a slave, with the following options
view on slave: top level
create sec when creating locally: yes
create all existing on slave: yes
name for ns reocrd: ns2.mydomain.com
I get the following output when adding server2
Added 192.168.1.6, with 0 existing zones.
Setup 192.168.1.6 with 52 new slave zones.
Failed to add server : No Webmin Servers entry for 192.168.1.6:10000
However, the slave zone do all appear to be created on server2, but then when i click on a slave zone on server2 and try to view the record file i get:
This page shows the DNS records file /var/named/slaves/blah.co.uk.hosts, created by BIND when the zone was transferred from the master server.
However the file is currently empty, probably because the zone has not yet been transferred from the master server.
I tried restarting both nameservers but i get the same result. Clicking "Force Update" for a zone on the slave returns without error but does not update the zone.
I can query bind to/from both machines on the command line so they seem to be communicating fine.
I'm sure i've missed something simple here.
Cheers, Chris
Hi Chris,
When you added the slave in the Webmin Servers Index module, did you put a :10000 at the end of its hostname? If so, you need to leave that off, as it is not necessary ..
--
Check out the forum guidelines!
Hi Jamie,
No i didn't add 10000 to the hostname, they are entered correctly; ip address in the hostname field, 10000 in the port field. I've set the link type to Login via Webmin with username and entered a username/password Connection to the server works fine, i can login via the link.cgi program no probs.
The Bind module does conenct to the secondary server, as it creates an empty slave zone for every one on the master.
Cheers,
Chris
still no luck getting this to work, have also tried clustering a webmin gpl server i have at home, and although i can successfully connect i get the same error message:
Failed to add server : No Webmin Servers entry for host.domain.com:10000
I get empty slave zones created on the clustered server, the host is definately defined correctly in webmin servers index.
don't know if its of any help, but if i try to view the record file on the slave i get this
--------------------------------------------------------------------------------
This page shows the DNS records file /var/named/slaves/test.com.hosts, created by BIND when the zone was transferred from the master server.
However the file is currently empty, probably because the zone has not yet been transferred from the master server.