![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10 | Przemek | SUN Solaris | 4 | 05-25-2008 09:11 PM |
| host cp in ksh script not working | tparker123 | Shell Programming and Scripting | 1 | 05-09-2008 01:46 PM |
| Running command "md5" on remote host not working. | ynilesh | UNIX for Advanced & Expert Users | 1 | 02-01-2008 05:15 AM |
| How to delete the files from local host to remote host | krishna176 | SUN Solaris | 3 | 03-24-2007 01:48 PM |
| QNX host cannot ping SCO host, vice versa | gavon | IP Networking | 2 | 08-20-2001 05:57 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello,
I am working on HP-UX , and in the /etc/hosts file we have setup an alias: aa.bb.cc.dd devmach2.unix.org devmach2 devma2v The alias devma2v does not work. Error when pinging devma2v ping: unknown host devma2v For devmach2 the ping works fine , returning the correct IP (aa.bb.cc.dd)/ What could be the problem? Thank you. Well - the file /etc/nsswitch.conf was missing!!! That's why it didn't work. Last edited by FunnyCats; 05-13-2005 at 01:28 PM. Reason: found the solution |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
That kind of thing works for me. What is the dns entry in your /etc/nsswitch.conf file?
|
|
#3
|
|||
|
|||
|
On this specific machine (the machine is part of a network - a big one) - no such file:
/etc/nsswitch.conf: No such file or directory Thanks. |
|
#4
|
||||
|
||||
|
Wow! What version of HP-UX are you using? According to the nsswitch.conf man page, no nsswitch file results in (for hosts):
hosts: nis [NOTFOUND=return] files This would imply that you are using nis. Only if nis was unavailable (as in during system startup) would the hosts file be referenced. But I've never seen a system without a nsswitch.conf file. Are you using nis? If so and if your version of hp-ux supports nsswitch.conf, you might try briefly putting a nsswitch.conf file into place with a single line: hosts: nis [NOTFOUND=continue] files |
|
#5
|
|||
|
|||
|
Thanks for your help.
It seems someone has moved the /etc/nsswitch.conf file to save and that's why it didn't work. The file was restored and the alias is working fine. Thank you again! :-) |
|||
| Google The UNIX and Linux Forums |