How to set up secondary(slave) dnsmasq server in Centos 7 environment?

General support questions
Post Reply
vikasbook
Posts: 1
Joined: 2020/06/10 16:01:28
Contact:

How to set up secondary(slave) dnsmasq server in Centos 7 environment?

Post by vikasbook » 2020/06/10 16:06:55

So I'm currently working in an environment where I have ~35 workstations (Centos7) and ~3 servers(Rhel 7) in a rack. One of the servers lets call:

Mario {192.168.122.1}

is currently configured and is running dnsmasq. I can successfully ping and connect to all other 34 workstations via a dns lookup through Mario.

I want to set up a secondary server:

Code: Select all

Luigi {192.168.122.2}
as a failover server. I worked through the motions as I did with Mario, the dnsmasq service is running, but all lookups are failing.

At first, I had dnsmasq throwing an error about failing to bind to PORT 53, which I thought was an issue with liberty also binding to port 53 (We run an instance of VirtualBox with centos VMs on Luigi).

In dnsmasq.conf (on both Mario and Luigi), I have:

Code: Select all

port=53
bogus-priv
no-poll
local=/us.l/
expand-hosts
no-dhcp-interface=eno1
bind-interfaces
dhcp-host={MACADDR},{IPADDR}
And in /etc/resolve.conf, I have each server:

nameserver 192.168.122.1
nameserver 192.168.122.2
I think I am misconfiguring something, but I'm not sure what. I saw in another post about using the rfc2132 option, and adding the line:

Code: Select all

dhcp-option=6,192.168.122.1,192.168.122.2
Any help is appreciated, everything I have been finding on forums is from 9 years ago, so I have kind of hit a wall.

Post Reply