LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DNS resolving: ask the next nameserver if the first doesn't know the answer but resps (https://www.linuxquestions.org/questions/linux-networking-3/dns-resolving-ask-the-next-nameserver-if-the-first-doesnt-know-the-answer-but-resps-928264/)

dezo 02-08-2012 03:43 AM

DNS resolving: ask the next nameserver if the first doesn't know the answer but resps
 
Hello,
I am connected to the company's VPN and resolving works just fine for all company's machines and also for the global ones (google for example).
The thing is that I want to use those company's DNS servers only for resolving company's hostnames, not the global ones. If I put my local DNS server before the company's ones in /etc/resolv.conf, I cannot resolv company's hostnames, because the local server responds, but doesn't know the answer. And the machanism doesn't ask the next nameserver... If I put the local DNS server at the end, the company's DNS server knows all the answers and my local DNS server is never asked.

Can this be solved somehow?
Thanks!

bathory 02-08-2012 05:09 AM

Hi,

You can setup the company zone as a forward only zone in your dns and forward requests to the company's dns servers

Regards

dezo 02-08-2012 06:23 AM

And let's say I don't have any admin access to the local DNS server. Can this be managed via client-only /etc/resolv.conf?

bathory 02-08-2012 06:54 AM

Nope.
The client gets a response from the 1st nameserver in rersolv.conf and it doesn't bother to search further.

Cedrik 02-08-2012 07:25 AM

Put company's hostnames in /etc/hosts and remove company's DNS servers from /etc/resolv.conf ?

dezo 02-08-2012 10:08 AM

Yes, that would work but this is a solution I tried to avoid... (there's quite a lot of hostnames I use)

catkin 02-08-2012 11:27 AM

From dnsmasq's home page: "Dnsmasq can be configured to send queries for certain domains to upstream servers handling only those domains. This makes integration with private DNS systems easy".


All times are GMT -5. The time now is 04:04 AM.