Can’t ping one server of two by name, but can ping both by IP

networkingping

I have two database servers where I can ping both by IP, but can only ping by name for one.

The setup:

  • Server1 – Original Data
  • Server2 – Receives data from Server1 through replication

Server1 can ping Server2 by IP and NAME.
Server2 can ping Server1 by IP but can't ping by NAME.

Why can't server2 ping server1 by name?

I need it because when I type the name of the database server, he doesn't recognize.

Best Answer

You have a name resolution problem. Based on what you've implied I'm assuming it's a DNS problem. Here are some steps to take:

  1. Identify your internal DNS server(s). Identify the appropriate DNS zone on the DNS server(s). Verifiy that the DNS zone is configured to allow dynamic updates. If this is an AD related zone you can allow secure updates only. If this is not an AD related zone then you need to allow both secure and unsecure updates.

  2. Make sure that both database servers are configured to use the DNS server(s) identified in step 1 for DNS name resolution.

  3. Make sure that both database servers are configured with a DNS suffix that matches your DNS zone. This will be the case if this is an AD domain and both database servers are joined to the domain.

  4. Verify that the correct A (host) records are registered in the DNS zone for both database servers. If they aren't registered or if they aren't correct, then delete the incorrect record and reregister it from the applicable server by running ipconfig/registerdns from a command prompt.

Related Topic