Networking

Duplicate Name Exists on the Network when using DNS Alias

When a client computer connects to a Microsoft Windows 2000-based computer or a Microsoft Windows Server 2003-based computer by using an alias name, the client may receive the following error message:

A duplicate name exists on the network.

Although, you're able to access the computer by FQDN or IP address, you're unable to access it by using DNS alias.

This problem can occur when you try to connect to the server by using a CNAME alias that is created in the DNS zone. For example, this problem may occur with a command similar to the following sample command

net view \\alias.domain name.com

where alias is a CNAME record that is created for the server in the domain name.com zone. The server is not "listening" on the alias, and therefore is not accepting connections to that name.

Here's how to fix this on Windows Server 2003 

To resolve this problem in Windows Server 2003, follow these steps:

  1. Create the CNAME record for the file server on the appropriate DNS server, if the CNAME record is not already present.
  2. Apply the following registry change to the file server. To do so, follow these steps:
    1. Start Registry Editor (Regedt32.exe).
    2. Locate and click the following key in the registry:
      HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters
    3. 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
    4. Quit Registry Editor.
  3. Restart your computer.

You may also have to set the SPN (Service Principal Name) for the Alias Name.
For example, you may have to enter a command that resembles the following commands:

setspn -a host/aliasname targetserver
setspn -a host/aliasname.contoso.com targetserver

 

Can't join PC to a domain with single label DNS name

To enable an Active Directory domain member to use DNS to locate domain controllers in domains that have single-label DNS names that are in other forests, follow these steps:

  1. Click Start, click Run, type regedit, and then click OK.

  2. Locate and then click the following subkey:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters

  3. In the right pane, locate the AllowSingleLabelDnsDomain entry. If theAllowSingleLabelDnsDomain entry does not exist, follow these steps:

    1. On the Edit menu, point to New, and then click DWORD Value.

    2. Type AllowSingleLabelDnsDomain as the entry name, and then press ENTER.

  4. Double-click the AllowSingleLabelDnsDomain entry.

  5. In the Value data box, type 1, and then click OK

  6. Quit Registry Editor.

    You should be able to join the machine to the domain.

 

   

How To Change an IP address, Gateway and DNS, WINS servers using command prompt

 

Changing TCP/IP settings using the GUI property is fairly simple. If you have to change IP address settings using CMD to automate the process, here's how to do it:

To change an IP address and DNS server setting using the built-in utility in Windows called “Netsh” we'll do the following:

Run Netsh click on start then RUN and type CMD press ENTER.

When the command prompt comes up type Netsh, now you should be ready to execute commands. For a start, type “interface ip show config“ that will show up the TCP/IP network settings.

To change the Local Area Connection TCP/IP settings including an IP address, subnet mask and default gateway, type the following command:

interface ip set address name=”Local Area Connection” static 192.168.10.42 255.255.255.0 192.168.1.1

As you can see, we changed the network properties for “Local Area Connection”.

Changing the DNS IP address is almost identical as the procedure above, type the following command on the Netsh prompt:

interface ip set dns “Local Area Connection” static 192.168.1.1

To setup a secondary DNS type the following:

interface ip add dns "Local Area Connection" 192.168.1.2

To Setup WINS, type the following command:

interface ip set wins “Local Area Connection” static 192.168.1.1

To set the network properties to obtain the IP address from a DHCP server, type the following command:

interface ip set address “Local Area Connection” dhcp

To set DNS to obtain IP address automatically type the following:

netsh interface ip set dns “Local Area Connection” dhcp

If you want to use the batch script to automate this process you can do the following:

netsh int ip set address "Local Area Connection" static 192.168.0.10 255.255.255.0 192.168.0.1 1

 

   

Google Search

Services