Local DNS for LAN network

Hello,
I am still unable to set DNS resolver for my local LAN to other IP
Can you please give me step by step workaround?
My current settings are
DNS Servers . . . . . . . . . . . : 192.168.1.1
I need my other DNS address to be distributed via DHCP 192.168.1.2

Thank you

In /etc/config/dhcp for section config dnsmasq add/change
list server '192.168.1.2'

like this? https://i.imgur.com/YEp1UEs.png

I have still received 192.168.1.1 from my dhcp

Apparentlly it´s not resolving dns name if I do nslookup localhostname I will not get any IP, if I force nslookup localhostname 192.168.1.2 I will get correct Ip as expected

You may also have to add the same entry for section config dhcp 'lan' and restart dnsmasq (/etc/init.d/dnsmasq restart)

still no luck :frowning: is there a simple way how to distribute DNS other than 192.168.1.1 ?

Sorry, my mistake. The correct option is list dhcp_option '6,192.168.2.1' in section config dhcp ‘lan’

Somehow I mixed up with server xxxx which is for defining forwarding dns server when using dnsmasq as dns server.

1 Like

or using web interface http://192.168.1.1/cgi-bin/luci/admin/network/network/lan

1 Like