The hosts file is generally for reverse mappings. If you want to do internal vs external, I suggest you look into BIND 9.x's split views.
On Thu, 24 Oct 2002, Todd A. Jacobs wrote: > On Thu, 24 Oct 2002, Mike Burger wrote: > > > You misnamed the file...it's /etc/host.conf. No extra s after the t. > > How do I look up names in the hosts file? If I do a "host laptop" it > returns the external DNS address, rather than the IP in /etc/hosts. > Setting the no-recursion flag (-r) doesn't do any good, either. > > On the other hand, it's *working*, because a ping will use the correct > internal address. I'm just looking for the appropriate lookup tool. > > -- Mike Burger http://www.bubbanfriends.org Visit the Dog Pound II BBS telnet://dogpound2.citadel.org or http://dogpound2.citadel.org:2000 -- redhat-list mailing list unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list