0

I'm building a private network not connected to the internet with VirtualBox for practice and i'm using dnsmasq on the server machine for both DHCP (and DHCPv6) and DNS service.

The DHCP works fine but i've tried to create my own private domains "examplea.lan" and "exampleb.lan" which responds to two different subnets and i can't resolve any hostname from server or clients using nslookup.

Using Ubuntu 19.04 with interfaces configured using netplan.

The two subnets have to comunicate so i have enabled packet forwarding and pinging from HostA (subnet1) to HostB (subnet2) also works, but when i check the logs i see ignoring nameserver 192.168.x.x - local interface for both enp0s8 and enp0s9

dnsmasq configuration is:

dhcp-range=enp0s9, 192.168.3.11, 192.168.3.254, 12h
dhcp-range=::b,::ff0f,constructor:enp0s8,ra-names
dhcp-range=::b,::ff0f,constructor:enp0s9,ra-names
dhcp-authoritative
log-facility=/var/log/dnsmasq.log
log-queries
log-dhcp

neg-ttl=300
domain-needed
no-resolv
local=/examplea.lan/192.168.2.10
local=/exampleb.lan/192.168.3.10
rev-server=192.168.2.0/24,192.168.2.10
rev-server=192.168.3.0/24,192.168.3.10
domain=examplea.lan,192.168.2.0/24,local
domain=exampleb.lan,192.168.3.0/24,local

Both the 192.168.2.10 and 192.168.3.10 are addresses on the server vm on different interfaces.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.