Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to use a different dns server for some specific domains that are blocked by the default dns server. And i dont wanna change my default dns server for some reason.

Is there any way of doing this without installing my very own dns server?

I've just learn that this is possible in mac: http://hints.macworld.com/article.php?story=2004062902195410

share|improve this question

3 Answers 3

There seems to be no DNS routing support in the GNU libc, so the same trick they use in the Mac article you cited will not work on Linux.

Dual DHCP/DNS server is a DNS server that supports DNS routing according to the docs (you can turn the DHCP features off).

share|improve this answer

you could also add the domains to your /etc/hosts file if the corresponding IPs are relatively static.

share|improve this answer

I have done this using BIND9 so I can get results from a Google IPv6 whitelisted server while still asking OpenNic servers about their domains. If you are still interested, let me know and I will go back and figure out how it did it, and then edit this answer.

Edit:Now I notice that you didn't want to install your own DNS server! If you are worried about security, you could just make it so that it is firewalled, that way only the computer the DNS server is running on could use it and it would be invisible to the outside that you were running a DNS server.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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