18.05.2013
Main Menu
Photo Gallery
Online Profiles

How to accept DNS alias on Windows Servers

Go back to Knowledge Base

In some cases, you will need to set two different names to a Microsoft Windows Server. A good example is a file server or print server migration, when you want to have a new server with a new hostname, and redirect all the traffic from the old server name to the new server.

As you probably know, the best solution is probably to set a DNS alias, but Microsoft Windows 2003 and Windows 2008 servers will not accept connections with a different hostname as destination. This is a security feature that needs to be disabled, by modifying the registry and running a command line on the new server.

 

There is the procedure to add a SMB alias on Windows 2003 and WIndows 2008 R2 servers:

  1. Add a CNAME record in your DNS pointing at the primary server name, e.g. fileserver.mydomain.local CNAME server1.mydomain.local
  2. Open the Registry Editor (regedit) on the server and browse to: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters
  3. Add a new REG_DWORD 32bit entry using the edit menu
    1. Value name: DisableStrictNameChecking
    2. Data type : REG_DWORD
    3. Radix : Decimal
    4. Value : 1
  4. Exit the registry editor then reboot your server
  5. Once the server reboots you need to add a Service Principal Name (SPN):
    1. Open the command prompt
    2. Type: setspn -a host/fileserver server 1 (where 'server1' is the primary name of your server and 'fileserver' is the alternate name)
    3. Type: setspn -a host/fileserver.mydomain.local server1 (where fileserver.mydomain.local is the fully qualified domain name alias and server1 is the primary name of your server)

Example:

setspn -a host/<NEW_CNAME_Server> <NetBIOS_Name_Server>

setspn -a host/<NEW_CNAME_FQDN_Server> <NetBIOS_Name_Server>

Your new SMB 2.0 alias should now be configured. Browse to \\your-new-alias to confirm.

 

You are now ready to receive any connection on the new server, using the old or the new server name.

Go back to Knowledge Base




* * * * * Did you like this page ? - - - Post it on your Facebook ! * * * * *
* * * * * Google Custom Search * * * * *
Last Updates
Help
Translate by Google
English French German Italian Portuguese Russian Spanish Swedish
Login Form

* * Current URL * *
Mobile Barcode
Visitors Stats
61.7%Israel Israel
8.1%United States United States
3.4%United Kingdom United Kingdom
3.3%Germany Germany
3.2%Australia Australia
2.7%France France
1.8%Switzerland Switzerland
1.5%Canada Canada
1.4%New Zealand New Zealand
0.9%Netherlands Netherlands

Stats by ExtraWatch