Re: Setting up of local resolver
- From: Robert Harris <robert.f.harris@xxxxxxxxxxxxxxxx>
- Date: Fri, 27 Jul 2007 15:22:34 GMT
Alexander Krizhanovsky wrote:
Hi!
I have a SLES9.3 server which is connected to small network without
any DNS server. However the server has to be able to reolve its short
name or FQDN. I configured my /etc/hosts as
192.168.0.19 bld04.my-fake-domain.com bld04
/etc/nsswitch.conf and /etc/host.conf contains
hosts: files
and
order hosts
correspondingly. So I expect my local resolver uses only local files
instead of connectimg to remote DNS server, that is following command
should be successfull:
$ host `hostname`
;; connection timed out; no servers could be reached
Well, "host" does DNS lookups (see "man host"). The file
"/etc/resolv.conf" will tell it which DNS server to use, otherwise it
will use a local server by default.
Robert
.
[snip'
- Follow-Ups:
- Re: Setting up of local resolver
- From: Alexander Krizhanovsky
- Re: Setting up of local resolver
- References:
- Setting up of local resolver
- From: Alexander Krizhanovsky
- Setting up of local resolver
- Prev by Date: Setting up of local resolver
- Next by Date: Re: Linux multihomed routing (2 ISP, 1 internal network) problem
- Previous by thread: Setting up of local resolver
- Next by thread: Re: Setting up of local resolver
- Index(es):
Relevant Pages
|
|