GL-MT1300 - announce custom DNS servers to clients with DHCP

hi all - I need to announce custom DNS servers to clients with DHCP, but can’t figure out how to do so, please?

FOUND IT [OpenWrt Wiki] DNS and DHCP examples

# Configure dnsmasq
uci -q show dhcp.lan.dhcp_option
uci -q delete dhcp.lan.dhcp_option
uci add_list dhcp.lan.dhcp_option="6,8.8.8.8,8.8.4.4"
uci commit dhcp
/etc/init.d/dnsmasq restart
 
# Configure odhcpd
uci -q delete dhcp.lan.dns
uci add_list dhcp.lan.dns="2001:4860:4860::8888"
uci add_list dhcp.lan.dns="2001:4860:4860::8844"
uci commit dhcp
/etc/init.d/odhcpd restart

and then:

root@GL-MT1300:~# uci -q show dhcp.lan.dhcp_option
dhcp.lan.dhcp_option='6,8.8.8.8,8.8.4.4'

root@GL-MT1300:/etc/config$ cat /etc/config/dhcp
[...]
config dhcp 'lan'
        list dhcp_option '6,8.8.8.8,8.8.4.4'
[...]

I wonder where is this in GUI?

1 Like