Re: [autofs] autofs does not resolve names ?

Frank Thommen
2011-07-16T13:12:19Z

JA Magallón wrote:
> [...]
>
> The name is resolved:
>
> annwn:/etc/autofs# host danae-nfs
> danae-nfs.cps.unizar.es has address 155.210.152.202
> annwn:/etc/autofs# ping danae-nfs
> PING danae-nfs.cps.unizar.es (155.210.152.202) 56(84) bytes of data.
> 64 bytes from danae-nfs.cps.unizar.es (155.210.152.202): icmp_req=1 ttl=255 time=0.339 ms
> ...
>
> But when I access home (ssh the box):
>
> Jul 15 01:39:31 annwn automount[7774]: Starting automounter version 5.0.6, master map auto.master
> Jul 15 01:39:31 annwn automount[7774]: using kernel protocol version 5.02
> Jul 15 01:39:31 annwn automount[7774]: lookup_nss_read_master: reading master files auto.master
> ...
> Jul 15 01:39:31 annwn automount[7774]: mount_mount: mount(nfs): root=/home name=magallon what=danae-nfs:/export/home/usuarios/giga/magallon, fstype=nfs, options=tcp,quota
> Jul 15 01:39:31 annwn automount[7774]: mount_mount: mount(nfs): nfs options="tcp,quota", nobind=0, nosymlink=0, ro=0
> Jul 15 01:39:31 annwn automount[7774]: get_nfs_info: called with host danae-nfs(69.65.19.116) proto udp version 0x30
> Jul 15 01:39:37 annwn automount[7774]: get_nfs_info: called with host danae-nfs(69.65.19.116) proto tcp version 0x30
>
> Where the hell does it get that IP address for my server ????

Did you check your /etc/hosts file?

>
> [...]
>

frank