This is a discussion on Re: Does ping and host use the same resolve library? within the Linux Networking forums, part of the Linux Forums category; In article <f9cb87de.0308010759.17aeda73@posting.google.com >, Venkat wrote: > I am having a problem in specifying ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
In article <f9cb87de.0308010759.17aeda73@posting.google.com >,
Venkat wrote: > I am having a problem in specifying the order to do DNS look ups on > domain names. I want an application (which uses gethostbyname I guess What application? If it's "host", "man host" will tell you that its whole purpose is to do DNS lookups, so of course it will not use the /etc/hosts file. > Can this even be done in Linux? You can either change the application, or set up a local DNS server and change your resolv.conf file (to point to it.) The latter is not that difficult, and offers other benefits as well. There's a good HOWTO for BIND at tldp.org, and an adequate one for djbdns at http://cr.yp.to/djbdns.html -- /dev/rob0 - preferred_email=i$((28*28+28))@softhome.net or put "not-spam" or "/dev/rob0" in Subject header to reply |
![]() |
| Thread Tools | |
| Display Modes | |
|
|