I want to mount an NFS share (myserver.lan) at boot time, but it always fails, because the DNS seems to take some seconds before it starts to work. (I can see in the logs that it fails to get the IP address belonging to the hostname)
Here's my /etc/fstab:
$this->bbcode_second_pass_code('', '
myserver.lan:/srv/nfs/hdd /mnt/nfs nfs nfsvers=3,udp,noatime,rsize=32768,wsize=32768,nolock,timeo=14,intr,_netdev,nofail 0 1
')
If I connect to the device via SSH some seconds after it booted, i can run "mount -a" and it the is mounted.
I also tried using a systemd mount unit with After=network.target, but that doesn't work either.
Any Ideas how to speed up DNS setup or delay the mounting until DNS starts to work?
Thanks in advance,
Jan