Use own DNS instead of Knot

Hi,

I run my own DNS (Adguard Home with Unbound / Hyperlocal as upstream)

I already set up the DHCP server to serve my Adguard to my clients:

config interface 'lan'
    option proto 'static'
    option ip6assign '60'
    option gateway '192.168.100.1'
    list dns '192.168.100.50'
    option _turris_mode 'managed'
    list ipaddr '192.168.100.1/24'
    option device 'br-lan'

And dhcp config:

config dnsmasq
    option domainneeded '1'
    option localise_queries '1'
    option rebind_protection '1'
    option rebind_localhost '1'
    option expandhosts '1'
    option authoritative '1'
    option readethers '1'
    option leasefile '/tmp/dhcp.leases'
    option localservice '1'
    option port '0'
    option local '/home.arpa/'
    option domain 'home.arpa'
    list local_dns_server '192.168.100.50'
    list localuse '0'
    option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'

config dhcp 'lan'
        option interface 'lan'
        option start '10'
        option limit '200'
        option ra_management '1'
        list dns '192.168.100.53'
        list dns 'fda6:7d51:ff03:0:e04a:a1ff:fe1f:315'
        list domain 'home.arpa'
        option ra 'server'
        option dhcpv6 'server'
        option ignore '0'
        option leasetime '3600'
        list dhcp_option '6,192.168.100.53'
        list dhcp_option '23,[fda6:7d51:ff03:0:e04a:a1ff:fe1f:315]'

However, my resolv.conf looks like this:

# Interface lan
nameserver 192.168.100.50
# Interface wan
nameserver 217.237.150.51
nameserver 217.237.148.22
# Interface wan6
nameserver 2003:180:2:8000::53
nameserver 2003:180:2:8100::53

How to get rid of these automatically assigned DNS servers?

In LuCI → Network → Interfaces, click Edit in the WAN interface and open the “Advanced Settings” tab. You have to uncheck the box that says “Use DNS servers advertised by peer” and set an entry for custom DNS servers.

If you have an IPv6 DNS you would set that in the WAN6 menu the same way.

1 Like

That’s it, thanks!

Post must be at least 20 characters

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.