Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 41
  • Last Modified:

Pinging Server FQDN and I'm getting response from Site IPs

I have multiple IP addresses on my Server Farm NIC.
The default IP Address: 192.168.1.16
The added IPs are 192.168.1.17 and 192.168.1.18
Now why when I ping the server FQDN I get the response from 192.168.1.17 not my default IP of 192.168.1.16.
0
fofanah78
Asked:
fofanah78
  • 2
2 Solutions
 
Paul MacDonaldDirector, Information SystemsCommented:
If the 192.168.1.17 address is registered in DNS as the host name of the server, you'll get that IP response.  You can assign a static A (host) record in DNS, calling 192.168.1.17 by some other host name, but since this is one NIC with multiple IPs there's little else you can do about it.
0
 
DrDave242Commented:
Try nslookup <fqdn>. It should return all of the IP addresses registered to that name. If you do it repeatedly, you'll see that the addresses are returned in a different order each time, assuming round-robin is enabled on your DNS server.

Ping simply picks one of the addresses the first time you use it. That address then gets cached on your machine for a while (the TTL value of the corresponding DNS record), so subsequent pings will show the same address. When the TTL of the cached record expires, the name will again be resolved from the DNS server, but there's no way to predict which address it will resolve to.

EDIT: I should say that there's no way to predict which address ping will use. The name will technically still resolve to every registered address.
0
 
fofanah78Author Commented:
Now I have a clear understanding.  Thanks guys!!
0
 
fofanah78Author Commented:
This made total sense.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now