Use own DNS instead of Knot


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 ''
    list dns ''
    option _turris_mode 'managed'
    list ipaddr ''
    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 '/'
    option domain ''
    list local_dns_server ''
    list localuse '0'
    option resolvfile '/tmp/resolv.conf.d/'

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

However, my resolv.conf looks like this:

# Interface lan
# Interface wan
# 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.