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?