Share via


Cant ping by host name but can ping by IP on Windows 2012 R2

Question

Friday, March 29, 2019 4:21 PM

Hi,

I am working on Windows 2012 on VMware. In Windows DHCP and DNS installed (its not domain).

I created a zone on DNS and when I want to ping this zone, from the server which DNS server installed I get this error:

Ping request could not find host xxxxx.org. Please check the name and try again.

Meant I can not ping myself by name.

But I can ping the IP. Network Discovery is on.

Here is my ipconfig result:

Windows IP Configuration

   Host Name . . . . . . . . . . . . : server2012-dc1
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter nic:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Network Adapter Multiplexor Dri
ver
   Physical Address. . . . . . . . . : 00-0C-29-0D-5D-3E
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::390d:1d36:233d:1a65%18(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.2(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 452987945
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-24-1D-54-B9-00-0C-29-0D-5D-3E

   DNS Servers . . . . . . . . . . . : 127.1.1.1
                                       4.4.2.2
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.{7F06F055-DF7C-4E03-8192-3CF5EDFAEF9B}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

All replies (6)

Monday, April 1, 2019 7:34 AM ✅Answered

Hello Amin2234,

Thank you for posting in this forum.

It seems that you did not create a corresponding record.

Create these two A records under the xxxxx.org zone.

Note: In the second image, do not enter anything in the text box below Name.

It is best to do this as well.

In the NIC properties, double-click IPv4—>Advanced->DNS, and check “ Register this connection's address in DNS ".

Best Regards,

Leon

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Monday, April 1, 2019 7:57 AM

Hello Amin2234,

If you still get this error " Ping request could not find host xxxxx.org. Please check the name and try again ".

Try this in CMD: ping xxxxx.org -4

Sometimes the Ping command will return the IPv6 address of the domain name first. If there is no corresponding record in your DNS, you will get this error.

The "ping domain name -4" command is used to force the return of IPv4 addresses.

Best Regards,

Leon

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Monday, April 1, 2019 1:32 PM

Hello Leon,

I tried that but not working.

Also, why should I add my server name to the dns zone? In fact I just learning Windows server 2012 from a video. On that video it didnt add the server name and when teacher ping the name (added in dns zone) he got ping reply. I also exactly followed his method but mine is not working.

I have recorded a video:

Video

Could you please take a look and let me know whats the problem?

Also ping xxxx -4 didnt work.


Monday, April 1, 2019 1:46 PM

To break it down. You can ping the IP address because it is tagged to the NIC. You also can ping $env:ComputerName, because it's the same as doing a ping on localhost. The computer will resolve its own name and IP address.

When you are trying to reach a FQDN, it's another thing. You have to create a record into your DNS that points to the server/machine. You are actually reaching a zone where you haven't indicate where that request should go, that why you are seeing couldn't find host.org.

FQDN : ComputerName.Domain, PDC.example.org = If no record, it returns what you are seeing.

Computer Name : PDC = Returns either an IPv4 or IPv6 address. It does recognize itself.

Also, Leon gave you the step-by-step to fix your issue.


Monday, April 1, 2019 3:23 PM

Thank you very much. Yes the Leon solution worked now (the problem is when I tried this solution I added another name in A record)


Tuesday, April 2, 2019 1:22 AM

Thank you for your update.

The action on the third picture is to automatically add your server record to the DNS zone. If you do this, then you don't have to create this record manually.

I am pleased to know that the information is helpful to you.

If there is anything else we can do for you, please feel free to post in the forum.

Best Regards.

Leon

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].