Operating System - HP-UX
1833019 Members
2368 Online
110049 Solutions
New Discussion

Automount/mount problem with fully qualified hostname

 
viacava_1
Advisor

Automount/mount problem with fully qualified hostname

Hi Sirs,

When I try to access a remote folder using the automount :
cd /net/hostname.xxx.yyy.zzz.com
I get the error : The specified directory is not valid.

But the following command works properly :
cd /net/hostname
It's ok too with the IP address.

The domain name is right. The following command works properly :
ping hostname.xxx.yyy.zzz.com

This happens on several machine running HP-UX 11.11 (5 machines have been tested).
Maybe a patch is needed ? I looked at the patch database but could'nt find the right one.

Has anybody an idea ?

Thanks
Jose
5 REPLIES 5
Alessandro Pilati
Esteemed Contributor

Re: Automount/mount problem with fully qualified hostname

Jose,
have you tried to put the fully qualified hostnames in /etc/hosts?
if you don't try, you'll never know if you are able to
Mahesh Kumar Malik
Honored Contributor

Re: Automount/mount problem with fully qualified hostname

Hi Jose

It is issue with host name resolution. Put hostname.xxx.yyy.zzz.com entries in /etc/hosts file

Regards
Mahesh
viacava_1
Advisor

Re: Automount/mount problem with fully qualified hostname

Thanks Alessandro and Mahesh,

Sorry for the late reply, I was out of my office.
I have added the machine hostname.xxx.yyy.zzz.com in/etc/hosts. I also created a file /etc/nsswitch.conf so that the /etc/hosts is now looked up before the dns.
The problem is still there. I don't know what to do now.

Regards
Jose

Bill Hassell
Honored Contributor

Re: Automount/mount problem with fully qualified hostname

Putting the FQDN in /etc/hosts is correct (it will be an alias to the simple hostname) but the default nsswitch.conf bypasses /etc/hosts and uses DNS firs. Change your /etc/nsswitch.conf file to read:

hosts: files [NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]

This will now look at /etc/hosts first (highly desirable) and DNS next.


Bill Hassell, sysadmin
viacava_1
Advisor

Re: Automount/mount problem with fully qualified hostname

Hi Bill,

I had the following line in /etc/nsswitch.conf :
hosts: files dns

Is this line wrong ? I replaced it with yours but it changed nothing.

Thanks and regards
Jose