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
0821-062 ping: host name 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
PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=250 time=1 ms
64 bytes from icmp_seq=1 ttl=250 time=1 ms
--- ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 1/1/1 ms

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
Notify of

Inline Feedbacks
View all comments