Why does mount.cifs fail while trying to mount with hostname but runs successfully with IP?

Solution Unverified - Updated -

Issue

  • mount.cifs fails while using hostname with the following error.

mount error: could not resolve address for server: Unknown error
  • Succeeds with IP address
[User@client /]$ mount -t cifs //172.16.4.3/software$ /media
Password: ******
[User@client /]

Environment

  • Red Hat Enterprise Linux (RHEL)

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