Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DNS with HOST and ALIAS / open UNC path... 2

Status
Not open for further replies.

DutchDude

Technical User
Jul 15, 2005
11
NL
hi there,

situation, a server with an extra ALIAS in DNS. I can ping both names. if I try to access a share via UNC path I can only access the original HOST name, the ALIAS name will fail with the network name cannot be found. is this by design or an error on my part?

regards,

Ronald.
 
What operating systems are involved?

Chances are that the real A-record also matches what the destination host knows its NetBIOS name to be, which makes it easy to use UNC paths to get there. Your CNAME record doesn't match any known name on the actual host (nothing on that name stored on the target hosts' network settings), so that affects NetBIOS operations.

PING is a straight IP operation. UNC paths rely on the SMB subsystems which often employ NetBIOS.

Now the behavior also depends on which operating systems you are working with (if destination server is NT, this will always happen, no good way to fix it) and how NetBIOS has been set (on 2000/XP).

ShackDaddy
 
ShackDaddy,

this is on a W2K mixed domain, all of the servers/workstations I tried are w2k. on the server with that alias NETBIOS over TCP/IP is ENabled.

if I try to access a share via the run box, and type in the UNC path is responds with a duplicate name exist on the network.

if I use the run box and I use the original name of the server my shares are being listed as I type, but when I use the alias it does not do this. is this by design?

 
Yes, that's by design. Not great design, but basically only what a system considers its NetBIOS name is eligible for shares being autobrowsed. The NetBIOS system doesn't have a 100% tie-in to DNS, since it would be too burdensome and wouldn't work with different DNS technologies like round-robin, etc.

The functionality you have is due to the NETBIOS stuff being enabled. I think you would see less if it was turned off, normally you wouldn't be able to use UNC paths at all.

ShackDaddy
 
Thanks, chipk, I hadn't even known there was a workaround for that "feature".

ShackDaddy
 
Yeah, I was freakin out because I have a production application that relies on these aliases working. I typically use the "HKLM\System\CurrentControlSet\Services\LanManServer\Parameters\OptionalNames" value to specify aliases, but tried the CNAME method this time.

It really isn't clear to me either what strict name checking accomplishes for you.
 
I think it's a security feature so that you can provide IP services like web to one alias without letting people who "know" that host's name actually connect to it for SMB purposes. That way you can provide services with an alias and still keep your sensitive service (smb, remote registry, etc) locked behind a name you haven't given away.

But there's less need for it now that firewalls have properly come into their own. Everyone knows of a corporate network in the mid 90's that used real IPs and didn't have a firewall....

ShackDaddy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top