Connecting to UNC with alternative names in host file

monfortir
monfortir used Ask the Experts™
on
I have added a different name of the local server in it's hosts file. The servers actual name is web2-test and it is on a domain named corp.COMPANYNAME.com. Therefore it's FQDN is web2-test.corp.COMPANYNAME.com and it has an ipaddress of 192.168.30.19.

I added an entry in the host file named web2.testing.com that also resolves to 192.168.30.19. I had to do this because an application we are testing must use the external name to work but it needs to resolve to the internal address. There is a different external IP address assigned to web2.testing.com that client use to connect to.  

When I connect to a share on web2-test or web2-test.corp.COMAPNYNAME.com it connects fine. If I try to connect to web2.testing.com I keep getting the prompt for a username and password. The name resolves correctly to 192.168.30.19.

Why is this happeneing and how can I get around it?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
PowerShell Developer
Top Expert 2010
Commented:

File Share?

Have you already disabled Strict Name Checking? If not, you will need to for 2003 / 2008:

http://support.microsoft.com/kb/281308

Chris
This is an age-old problem with connecting to SMB shares using an Alias.

From: http://support.microsoft.com/default.aspx?scid=kb;en-us;281308

To resolve this problem in Windows Server 2003, follow these steps:
-Start Registry Editor (Regedt32.exe).
-Locate and click the following key in the registry:
-HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters
-On the Edit menu, click Add Value, and then add the following registry value:
   Value name: DisableStrictNameChecking
   Data type: REG_DWORD
   Radix: Decimal
   Value: 1
-Quit Registry Editor.
-Restart your computer.

You may also have to set the SPN (Service Principal Name) for the Alias Name.
  setspn -a host/web2.testing.com web2-test

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial