What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Question about separate DNS servers...

Chuck_IV

Occasional Visitor
As Merlin's firmware stands now, is there a way I can specify a specific device(say by IP or MAC ID) to use a specifc DNS server and the rest of the devices use another DNS server?

Right now I have my DNS server set manually in the router so all my devices use the same DNS server, but I'd like one specific device to use a different one and unfortunately I don't have the option of setting the DNS on the device itself(no option to do it.
 
If it's possible, it would be done at the dnsmasq level. See the dnsmasq configuration to see if there's anyway to ensure that specific MACs get pushed different DHCP options. I don't know if it's possible.
 
If it's possible, it would be done at the dnsmasq level. See the dnsmasq configuration to see if there's anyway to ensure that specific MACs get pushed different DHCP options. I don't know if it's possible.

Yes it can. Look at dhcp-mac and dhcp-option. I suspect something like the following would work (untested):
Code:
dhcp-mac=set:alt-dns,00:11:22:33:44:55
dhcp-option=tag:alt-dns,option:dns-server,8.8.4.4
 
Pretty sure I'd run across a thread where someone was trying to set their router up to provide OpenDNS servers for one or more of their machines and the regular ISP DNS servers for their other machines.

I was fairly sure they got it set up the way they wanted, though I can't find that thread at the moment so you'll have to search.

As far as Merlin's suggestion is concerned, here's where you might be able to start figuring it out...

http://www.thekelleys.org.uk/dnsmasq/doc.html
 
Yes it can. Look at dhcp-mac and dhcp-option. I suspect something like the following would work (untested):
Code:
dhcp-mac=set:alt-dns,00:11:22:33:44:55
dhcp-option=tag:alt-dns,option:dns-server,8.8.4.4

Well, how 'bout that. I posted a little too late. I believe I posted a link to one of your own pages, right? I couldn't remember which forum member I got it from, just knew that I could find it again if I typed "dnsmasq" in a search engine that it would pop up as the first link.
 
It's not my page, but is the official site for dnsmasq.

Gotcha. When I saw your username in your reply I recognized it as the user that I thought had previously posted the link. Didn't know for sure if it was yours or not.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top