Re: How to setup DNS servers on host, connected to 2 networks?
SuseSearcher wrote:
> 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.
>
> 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.
>
> Can somebody prompt me a way, how can i set up my SLES for query both
> DNS servers - gateway and local DNS server.
How about using "/etc/hosts" file?
You can define there a list of local ip/machine names, not suitable for dns
querying but at least useful for lan browsing.
Greetings,
--
Camaleón
|