Discussion:
[Dnsmasq-discuss] Two routers, two dnsmasq instances, can they sync?
Kevin Lyda
2016-12-26 19:40:31 UTC
Permalink
I have two OpenWRT routers which are physically far apart. One serves
192.168.2, the other serves 192.168.1 and they route between each
other. I'd prefer it if rt1 and rt2 could each manage dhcp on their
respective subnets but I'd like them to have a common view of the
internal DNS.

Is this possible? Is this what server=/192.168.1.1/local.domain/ could
be used for?

Kevin
Arseniy Skvortsov
2016-12-27 06:08:48 UTC
Permalink
I was going to implement this a year ago, but unfortunately stuck in
establishing IP connectivity between the subnets.
Providing you have IP connectivity (VPN I assume), you can pull lease file
from one router to another, convert it to 'hosts' file (don't forget to
compare lease times in case if one of the clients can fly from one router
to another quickly :) ) and send SIGHUP to dnsmasq instance for it to
reread new 'hosts'. Path to the file may be passed as --addn-hosts.

If you wish, I can help with setting things up. Maybe I'll be able to
finish changes in my subnets after.

Either way, would like to see your success (or fail) story here.

Loading...