Custom dns servers not working

You would add a DHCP Option 6 to the GUEST DHCP config in the LuCI web GUI:

Or in /etc/config/dhcp

config dhcp 'guest'                                
        option interface 'guest' 
        option start '100'                 
        option limit '150'                       
        option leasetime '12h'             
        option dhcpv6 'server'                   
        option ra 'server'     
        option ra_management '1'
        list dhcp_option '6,8.8.8.8,8.8.4.4'
  • So, as you're aware, that you will not resolve local hostnames in the guest VLAN/Interface after applying this setting.
  • Also, to apply this, you will have to restart dnsmasq, and obtain new leases for all clients.
1 Like