NFS mount fails to resolve hostname at boot with error `Failed to resolve server`.

Solution Verified - Updated -

Issue

  • During system boot, NFS filesystems configured in /etc/fstab fail 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content