DHCP using IP of device for DNS and gateway by default

In my network there is a cable modem which is also the default gateway (192.168.0.1). I use a WIFI router running openwrt configured as an AP which also acts as the DHCP server in the network (192.168.0.2).
The openwrt device is set to use 192.168.0.1 as the gateway and dns. But the dhcp server hands out its own ip (192.168.0.2) as DNS and Gateway. I have to use the 3 and 6 option to override the settings. Is this the correct default behaviour? I expected the DHCP to provide 192.168.0.1 as DNS and gateway.

the router will default itself as GW and DNS, so yes, it's the normal behavior.

1 Like

It sounds like default behaviour to resolve DNS if your haven't explicit told it to give out a manually defined DNS server to the hosts.

1 Like