Thank you for your idea. This really seems OK for our needs. If I understand
things correctly, I would have to do that on all four LANs the current Dnsmasq
is serving. Just one small additional question:
Am 22.12.2011 15:13, schrieb Michael Rack:
Very easy.
You need at least one virtual ip-address for your DNS- and DHCP-Server.
So lets say you have a Class-C Network 10.0.0.0/24
* Primary DNS / DHCP 10.0.0.251
* Secondary DNS / DHCP 10.0.0.252
Now, you add a virtual IP to your primary DNS - lets say
* Virtual-IP 10.0.0.250
From Secondary you create a Bash-Script that do the following:
* Check the Server-Status by ping the virtual ip-address
* when the ping has failed:
* add the virtual ip-address to your network-configuration
Wouldn't it make sense to send an unsolicited ARP packet to update the ARP
caches of neighbours after the IP address has moved?
* start dnsmasq
>
To sync the DHCP-Leases to the secondary server, you need to create a
ssh-key (ssh-keygen) to copy the lease-file without knowing the ssh-passord.
scp 10.0.0.251:/var/dhcp/dnsmasq.leases /var/dhcp/dnsmasq.leases
do this every minute via a crontab.
So, thats it.
Thank you,
Markus