mount.cifs works with CIFS server's IP address but doesn't work with the hostname.
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, tools, and much more.