Hello,
I've been trying to make FreeBSD mount following entry in /etc/fstab on boot:
It doesnt work until I use IP like this:
As said at https://www.freebsd.org/doc/handbook/network-nfs.html there is
in my /etc/rc.conf.
There is not much of this in the net, but there is an opinion I stumble upon, that one should use IP addresses always, when it comes to an NFS.
IMHO it's not convenient and seems like a bug for me (or some sort of architectural design, that's not allowing to resolve fqdn to IP while booting). Is there a solution to use fqdn and not IP and have nfs mounted at boot?
Thanks.
I've been trying to make FreeBSD mount following entry in /etc/fstab on boot:
Code:
nfs.domain:/spool /nfspool nfs rw,bg,noatime 0 0
It doesnt work until I use IP like this:
Code:
10.6.0.1:/spool /nfspool nfs rw,bg,noatime 0 0
host nfs.domain
gives 10.6.0.1 and mount -t nfs nfs.domain /spool
works just fine. I'm pretty sure that putting nfs.domain in /etc/hosts will do either.As said at https://www.freebsd.org/doc/handbook/network-nfs.html there is
Code:
nfs_client_enable="YES"
There is not much of this in the net, but there is an opinion I stumble upon, that one should use IP addresses always, when it comes to an NFS.
IMHO it's not convenient and seems like a bug for me (or some sort of architectural design, that's not allowing to resolve fqdn to IP while booting). Is there a solution to use fqdn and not IP and have nfs mounted at boot?
Thanks.