Topic: [Howto] Advertise different router and/or DNS ip via DHCP

From time to time some people come up with questions on how to advertise a different DNS server or router ip via DHCP.

First prepare the dnsmasq configuration:

uci add_list dhcp.lan.dhcp_option="3,"
uci add_list dhcp.lan.dhcp_option="6,,"
uci commit dhcp (option 3) would be the gateway ip and 200.5 (option 6) are the advertised DNS servers

Then restart dnsmasq to apply the changed settings:

/etc/init.d/dnsmasq restart

You can apply this howto to other dhcp options like wins or ntp servers as well.
For a more detailled list of dhcp options see:

~ JoW