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.
fofanah78Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
fofanah78Connect With a Mentor Author Commented:
Now I have a clear understanding.  Thanks guys!!
0
 
Paul MacDonaldConnect With a Mentor Director, 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:
This made total sense.
0
All Courses

From novice to tech pro — start learning today.