I am running TomatoUSB with DNSMasq to provide DHCP and DNS services for my local network.

What I would like to achieve is to provide alternative DNS servers for one or two specific clients on the network based on their IP or MAC (These clients do not accept manual configuration of DNS servers).

It does not matter if this is DNS Masq using a different DNS server for these IPs or whether different DNS servers are delivered via DHCP.


Setup reservations for the specific hosts using the dhcp-host option. Use tag options to flag those for a special set of options.

This is completely un-tested, but I suspect your config might look something like this. Check the man page for full details.

| improve this answer | |
  • 5
    This almost works; I had to change the dhcp-option line to ths to get it to work: dhcp-option=tag:specialhosts,option:dns-server,, – Wez Furlong Nov 3 '13 at 3:24

For Reference, this makes it possible to assign a unique "set" for each client, and a separate PXE boot menu file for each client. I can then script the first boot option, to start the local Windows disk, or netboot as Linux cluster node:


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.