Mounting Shares via Windows Alternate Names In Linux
- June 12th, 2018
- Posted in Documentation
- Write comment
On the server you want to mount a share, use the following list all names for the server:
NETDOM COMPUTERNAME servrname /ENUM
Example:
C:\>netdom computername dc01 /enum
All of the names for the computer are:DC01.domain.tld
The command completed successfully.
To add a new name:
NETDOM COMPUTERNAME servername /ADD othername.domain.tld
And then to get the name registered into your DNS:
IPCONFIG /REGISTERDNS
Now, when you list the names, you will see the new one:
C:\>netdom computername dc01 /enum
All of the names for the computer are:DC01.domain.tld
othername.domain.tld
The command completed successfully.
To delete a name:
NETDOM COMPUTERNAME servername /REMOVE othername.domain.tld
IPCONFIG /REGISTERDNS
When using Samba in linux to mount via an alternate server name, you need to make sure you specify the SMB version as a option.
For example:
/etc/fstab:
…
//othername.domain.tld/sharename /MountPoint cifs vers=3.0,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
…
No comments yet.