admon
September 29, 2024, 10:40am
2
Even if I don't know why this should be something you need - but yes, it is possible using OpenWrt itself. You will need to adjust the config files using SSH then:
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_o…