Jump to content

Hi,

I have a windows share with two domain name, same server with multiple name, we have created aliases in our DNS.
like serverabc and serverxyz, both are hitting to same IP.  I have a shared directory in that server.

Whenever I try with serverabc with mount cifs command will work fine, but the same command with serverxyz doesn't work.

I have added names in /etc/hosts file, but still having issue.

Any solution.

Thanks.
M.Pasha

Link to comment
https://linustechtips.com/topic/758291-unable-to-mount-windows-share/
Share on other sites

Link to post
Share on other sites

What is your need to have two different domain names pointing to the same IP? I'm not saying there isn't one, just seems odd in this scenario. Especially if your just adding it as a mount point where you aren't going to see the FQDN.

System/Server Administrator - Networking - Storage - Virtualization - Scripting - Applications

Link to post
Share on other sites

Yes I know,  The request came from my Dev team. and its kind of challenging. Its their requirement. Ok, lets explain some of my investigation.

Its really interesting. I followed investigation with help of Redhat support team.

 

As I updated, nslookup and traceroute works fine, I run the tcpdump and to collect tcp logs for an IP address.

 

# tcpdump -s0 -i <interface> host <windows_server_ip> -w /tmp/tcpdump-<domain>.pcap

 

Then run mount command (on client) in second terminal :

 

# mount -t cifs -vvv -o username=domain/<userID>  //<samba_server_name_with_domain>/<share_name> /<mount_point>

 

Cancel the tcpdump once the issue has occurred by Ctrl+C and upload the output files for further diagnosis.

 

 

Stored the tcpdump in a .pcap file to load into the Wireshark tool and check the network logs. What we found is, its not the issue with Linux or network,

Its related to the Windows, I got the STATUS_DUPLICATE_NAME error, below are the details.

 

[1] STATUS_DUPLICATE_NAME : Afaik, by default, old Windows Server does not respond to SMB queries that use a server name other than the server’s true NetBIOS name or an FQDN. The server will respond with a STATUS_DUPLICATE_NAME.

 

 

I logged into the windows node and followed the below commands to check the if the mounting enabled with alias name

C:\>net view \\<windows alias name>\
System error 5 has occurred.

Access is denied.


C:\>net view \\<windows real name>\
Shared resources at \\<windows real name>\

 

Share name               Type  Used as  Comment

------------------------------------------------------------
checkout                 Disk
mockC                    Disk
mockD                    Disk
static_analysis_staging  Disk
The command completed successfully.

 

 

Windows is not support the alias name mounting, below is the document from windows support team.

https://support.microsoft.com/en-us/help/281308/connecting-to-smb-share-on-a-windows-2000-based-computer-or-a-windows-server-2003-based-computer-may-not-work-with-an-alias-name

 

 

 

Link to post
Share on other sites

Too lazy to look up the article, but I would enable SMBv2 on the windows server, then when mounting the share on linux specify SMBv2 and it won't care. 2003 servers did not care what hostname you used when mapping a drive. Current network I'm working on, the previous admins did exactly that, and confused the ever living shit out of me. Two different hostnames (\\workplaces vs \\profiles for example) both resolved to the same IP, never figured out why they did this. My best guess is they migrated from an old system, and a lot of software was configured with an old hostname so they created a second DNS entry instead of updating each application....

 

I think the whole hostname accuracy thing came about smbv3, especially since it supports fancier authentication.

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×