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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.