[CALUG] /etc/hosts not used?
Jason C. Miller
jason.c.miller at gmail.com
Sat Mar 18 12:58:14 CST 2006
The 'host' command is one of the replacements for 'nslookup'. According
to the man page, it is a "DNS lookup utility". I doubt that you could
override the DNS part of it.
-jason
On Sat, 18 Mar 2006, Eldon Ziegler wrote:
> I need a local host name to IP address association to override that
> provided by DNS. However, after entering the new definition in
> /etc/hosts the "host" command still returns the IP address from DNS.
> I've tried in on Linux 2.6 (RedHat ES4) and 2.4 (RedHat 9.x).
>
> /etc/host.conf has "order hosts,bind". /etc/nsswitch.conf has "hosts:
> files dns". Does some service need to be restarted? How do I get
> /etc/hosts to override DNS?
>
> Thanks
> Eldon Ziegler
>
> _______________________________________________
> Columbia, Maryland Linux User's Group (CALUG) mailing list
> CALUG Website: http://www.calug.com
> Email postings to: lug at calug.com
> Change your list subscription options: http://calug.com/mailman/listinfo/lug
>
--
More information about the lug
mailing list