NFS mount fails to resolve hostname at boot with error `Failed to resolve server`.
Issue
-
During system boot, NFS filesystems configured in
/etc/fstabfail to mount automatically. -
The following error is logged in the system logs or
journalctl:
mount.nfs: Failed to resolve server <server_name>: Name or service not known
Environment
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- NFS Client
- DNS Name Resolution used for NFS Server hostnames
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.