How to setup redundant dns and dhcp servers with automatic dns updates on Ubuntu

binddhcpdhcp-serverdomain-name-system

I'm trying to configure two virtual servers running Ubuntu to act as primary and secondary DNS and DHCP servers in my lan.

I was able to get bind9 working as master and slave DNS servers.
I was able to get dhcpd server working as master and slave.
I was even able to follow a tutorial and configure the master dhcp server to automatically update the master dns server.

But when I put everything together the automatic dns update breaks.
I don't understand how to configure the slave dhcp server to update the dns server (which one should it update?), and the master dhcp server fails to update the master dns (I see time-out error in the syslog)

Can someone point me to a tutorial that addresses both redundancy and automatic updates? Or maybe explain what I'm doing wrong in my configuration. I cannot see/ to get both features to work together.

Thank you

Best Answer

Upon request, I'm pointing you to this detailed tutorial: HOWTO Design a fault-tolerant DHCP + DNS solution

It's based on Red Hat / CentOS, but the configurations should work on Ubuntu too, with little adaptations.