Ying Sun: I do not know why you need to remove the /etc/resolv.con file, but I think HP has a file called nsswitch.conf that you may need to modify a line in. In the /etc/nsswitch.conf file, make sure the line that says hosts looks like this: hosts: files dns This will make it look to the /etc/hosts file before looking in the /etc/resolv.conf file. You need to keep the /etc/resolv.conf file so that your machine knows where to resolve names that are not specified in your host file, such as netscape.com.
I hope this helps, let me know if you need more info... Ying Sun wrote: > I like the answer you gave to the question posted lately in the > newsgroup. I have one more question on name resolution if you'd like to > help me. > My hpux9.0-vue machine has a non-registered ip address. In the > /etc/hosts file, I put down all the hosts I use on the company's > intranet. In the /etc/resolv.conf file, there are entries for the name > servers. Every time if I remove /etc/resolv.conf file, the machine > boots up fine. Otherwise, in the vue there is error message saying that > the hp machine's name cannot be resolved. > The problem is if I don't keep /etc/resolv.conf file, attempts to go to > any URL address say in netscape browser just fail with an erro message > saying that, e.g., Netscape is unable to locate the server > home.netscape.com. > What's the order of name resolving: hosts checked first or resolv.conf? > How can I get around it? > > Appreciate your help. > > Ying Sun -- Gregory Green -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null