Not able to ping a server from an IBM AIX server – Know how to clear DNS cache.

In this post, we will see how to clear DNS cache on an IBM AIX server.

It is useful when sometimes we have any outage with any DNS server, or with network which can cause the cache to store host unreachable.

I. Issue: host name “…” NOT FOUND.

ngeaix001--> ping ngetech.india.ngelinux.com
0821-062 ping: host name ngetech.india.ngelinux.com NOT FOUND

 

II. Solution: Clear DNS Cache

ngeaix001--> netcdctrl -t dns -e hosts -f

 

III. Test if you can ping the server now.

ngeaix001--> ping ngetech.india.ngelinux.com
PING ngetech.india.ngelinux.com: (10.99.161.244): 56 data bytes
64 bytes from 10.99.161.244: icmp_seq=0 ttl=250 time=1 ms
64 bytes from 10.99.161.244: icmp_seq=1 ttl=250 time=1 ms
--- ngetech.india.ngelinux.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 1/1/1 ms
ngeaix001-->

It is a very useful and quick fix whenever we have any issue with DNS cache i.e. any frequent change with DNS and we want it to reflect immediately.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments