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! |
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 |
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?
|
Nope.
The client gets a response from the 1st nameserver in rersolv.conf and it doesn't bother to search further. |
Put company's hostnames in /etc/hosts and remove company's DNS servers from /etc/resolv.conf ?
|
Yes, that would work but this is a solution I tried to avoid... (there's quite a lot of hostnames I use)
|
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. |