Re: How to setup DNS servers on host, connected to 2 networks?
On Tue, 2009-07-07 at 14:26 +0000, SuseSearcher wrote:
> Please, excuse me for my terrible English.
>
> My host has two NICs, first in a network, connected to Internet through
> gateway, and the second one in a local network, with its own DNS
> server.
> When i try to resolve a name to ip, a query have been send to DNS
> server, which stay on first position in /etc/resolv.conf, and, if server
> don't know this name, the answer is "unknown host". So, if i set my
> gateway on the first position in /etc/resolv.conf, i can resolve names
> from internet, and can't resolve names from local network.
So, you're local DNS is just local entries (presumably non-recursive not
handling entries outside of zones defined there).
You could setup your own DNS server (as you said). It's not hard.
Just setup a zone that forwards out your local DNS zone/server. The
rest will be handled as a simple caching DNS.
That should do it.
>
> Of course, i can setup on my host a DNS server, which will send queries
> to local server the same way as to gateway. But i'm looking for a most
> simple way.
That IS the simple way.. and it really is simple.
>
> Can somebody prompt me a way, how can i set up my SLES for query both
> DNS servers - gateway and local DNS server.
|