I can't get a client to mount an NFS share that is being exported using a wildcard domain name.
Setup:
The NFS server is running DNSMasq for DHCP and DNS.
the NFS export file has
/export *.domain.com(rw)
the /etc/hosts on the NFS server (which is used by dnsmasq) has:
192.168.0.5 phobos
If I try to mount the export from phobos the server denies the request.
but nslookup on the NFS server:
>nslookup 192.168.0.5
5.0.168.192.in-addr.arpa name = phobos.domain.com.
if I change the /etc/hosts too:
192.168.0.5 phobos phobos.domain.com
it works, but I feel like I shouldn't have to do this? Is the NFS server not using DNS?
Best Answer
I got this to work by switching my /etc/nssswitch.conf:
from