mount.cifs works with CIFS server's IP address but doesn't work with the hostname.

Solution Unverified - Updated -

Issue

  • mount.cifs works with CIFS server's IP address but fails with CIFS server's hostname.
# mount.cifs -o username=administrator,password=Passw0rd\!,sec=ntlm //cifs-server.example.com/share /cifs
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.10.10.10 cifs-server cifs-server.example.com

Environment

  • Red Hat Enterprise Linux 7

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.