Ways to DNS gateway entry for dhcp clients

What's the difference between using 3 or 6 for DNS setup?

    # uci add_list dhcp.lan.dhcp_option="3,192.168.200.3"
    # uci add_list dhcp.lan.dhcp_option="6,8.8.8.8,8.8.4.4"
    # uci commit dhcp
    # /etc/init.d/dnsmasq restart
...
3 Likes

Ok got it.
So, if I'm using Pihole it's 3,192.168.1.X and for Google it's 6,8.8.8.8.

Thanks

Using pihole for what ?

as DHCP ? or router ? or both ? or just DNS ?

1 Like

Just DNS and Ad blocking.

If your router's providing DHCP, you shouldn't need to set those options

Just have the DHCP use custom DNS servers in its leases, pointing to the IP of your Pihole.

3 Likes