D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] NFS, /etc/resolv.conf rather odd connection.



Neil Williams wrote:

On Thursday 06 Nov 2003 8:19 pm, Andrew Rogers wrote:


If I do
exportfs -r
There is a very long delay of about one minute.
/etc/init.d/nfs start also gives a delay.

When clients try to mount an NFS directory it very rarely suceeds, there
is a long delay if it does mount. What I can't quite understand is that
if a remove /etc/resolv.conf and restart NFS or do exportfs -r NFS



So what's in /etc/resolv.conf?
Are you running an available DNS with reverse lookup?
Are you using IP addresses in /etc/export?


All DNS settings originate from a DHCP server that I have no control over. My NFS server is a DHCP client and has its settings assigned by the DHCP server at Uni. Presumably dhclient puts the DNS servers in /etc/resolv.conf, they match what is in /var/lib/dhcp/dhclient-eth0.leases

/etc/exports contains just IP addresses:

$ cat /etc/exports
/opt/ltsp/i386 10.0.0.0/255.255.255.0(ro,no_root_squash)
/home/netfs/ws20 10.0.0.20/255.255.255.255(rw,no_root_squash)
/home/netfs/nc21 10.0.0.21/255.255.255.255(rw,no_root_squash)
/home/mn        10.0.0.0/255.255.255.0(rw)



behaves perfectly with no long delays.



DNS timeout?




How can removing /etc/resolv.conf fix this NFS problem?



Because mount is trying to reverse lookup? Not sure.




How can I configure NFS so that it doesn't depend on /etc/resolv.conf?



Make sure /etc/resolv.conf is pointing to an available/working nameserver.


I'm making the assumption that the entries in /etc/resolv.conf are correct since they are assigned by the Uni's DHCP server. Can I test each DNS seperatly? On the other hand I known that from a previous setup incorrect DNS servers cause this problem.

Regards
Andrew


-- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.


Lynx friendly