Operating System - Linux
1832387 Members
3304 Online
110041 Solutions
New Discussion

mount -t cifs does not work with DNS

 
Daryl Much
Frequent Advisor

mount -t cifs does not work with DNS

when I run a /bin/mount -t cifs -o username=user,password=password //10.10.10.10/share /mountpoint/mountshare

It mounts the share, if I use DNS or Hostname and hostfile it does not.

I am running Redhat 5.3

Help
1 REPLY 1
Matti_Kurkela
Honored Contributor

Re: mount -t cifs does not work with DNS

What's the error message you're getting?

Is the name you tried to use in DNS and /etc/hosts the same as the hostname configured in the 10.10.10.10 server? (in XP, right-click My Computer -> Properties -> Computer Name; in other versions of Windows, maybe something similar.)

The CIFS protocol transmits the entire UNC path (here \\10.10.10.10\share) to the server. Modern Windows servers will accept an IP address in lieu of the correct hostname, but if a name is used, it must be the correct one.

MK
MK