1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Specify different set of DNS servers for a specific computer on the network?

Discussion in 'Tomato Firmware' started by tmr250z, Jan 28, 2010.

  1. tmr250z

    tmr250z LI Guru Member

    Is there a way to specify a set of DNS servers for a specific computer on the network?

    I would like my computer to use one set of servers, Google DNS, for example, while all other computers on the network use OpenDNS dns servers. Is this possible?

    Edit: I know one way to achieve this is to set dns servers in my computer settings while having different static dns servers set on the router. But this is not ideal because I have some dnsmasq configurations and an adblocking script that is not utilized by my computer when doing it that way. My computer completely bypasses them and the rules I have set are not honored.
     
  2. michse

    michse Addicted to LI Member

  3. acollado

    acollado Addicted to LI Member

    That should work if you specify the netid of the odd computer first with this commands:

    dhcp-mac=net-id1,<target PC MAC address>
    dhcp-option=net-id1,6,<dns1>

    and I think if you want the rest of the clients to get the normal DHCP set parameters you don't need to specify the second netid and options.
     
  4. michse

    michse Addicted to LI Member

    sounds good! I agree.

    michse
     
  5. tmr250z

    tmr250z LI Guru Member

    Thank you michse & acollado, that seems to have worked perfectly. Much appreciated.
     

Share This Page