cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
598
Views
1
Helpful
3
Replies

DNS 8.8.8.8

ankitohc
Spotlight
Spotlight

When I ping the DC-01 it resolves the public IP address, not the internal DNS

I have added the two DNS 

10.100.20.10

8.8.8.8

when I remove the 8.8.8.8 its reaching the dc-01 which looks good but when I add 8.8.8.8 and ping its showing the public ip address

how can we force host to reach dc-01 ip address not public address

 

 

 

 

 

3 Replies 3

Hi @ankitohc 

Is it PacketTracer?

ankitohc
Spotlight
Spotlight

Its on production enviroment 

 

pieterh
VIP
VIP

these are two different things
1) DNS resolving -> lookup DNS name to obtain IP-address
2) configuring DNS servers on the client -> to specify what DNS servers to use

google does not know anything about your internal addresses
so if you use 8.8.8.8 (google-dns) as DNS server to query, only public ip-addresses are returned
if you use 10.100.20.10 (internal-dns) your internal address is returned
-> this is expected behavior

1) depending on the OS you may specify a primary and secundary, 
    where the primary is used first and the secundary if the primary is unavailable
2) if query is alternating between DNS, then you get alternating ip-address returned
3) if the query is sent to both DNS you get random response depending on which response is received first

Review Cisco Networking for a $25 gift card