Re: Flushing the nameserver cache on AIX



Thanks you all for the help!

I ran a test program that used gethostbyname() to get the DNS entry and
when the program was running, I updated the entry on the DNS server. I
found that as soon as the entry was updated, the next call to
gethostbyname() fetched the updated record. Hence no caching was done
on the client side.

thanks again ..


Rick Jones wrote:
Jigs <jigar.jigar@xxxxxxxxx> wrote:
I was actually looking to flush the client side cache. It seems that
AIX does not cache nameserver entries on the client side. Is there a
way to confirm this? Can I run some tests to confirm?

After verifying you are not running a local caching-only name server
(ie cheching your resolv.conf file), write a little program that asks
for the same name a few times in a row. While that program is running
use tcpdump or the like to watch traffic to/from port 53. If you see
the DNS query for the same name more than once (ie as many times as
your program asks for the name) then there is no caching.

rick jones
--
No need to believe in either side, or any side. There is no cause.
There's only yourself. The belief is in your own precision. - Jobert
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...

.



Relevant Pages

  • Re: Event ID 4010
    ... entry because netlogon is not started when the DNS looks for the entry... ... > You may try a zone re-install. ... > _msdcs.augsburg01.awo-augsburg.de and restart the DNS server. ...
    (microsoft.public.windows.server.dns)
  • RE:
    ... in the HOSTS file and Lmhosts file, is there any record from static entry, ... > Here is the setup of DNS: ... > There is a mark in the "Append parent suffixes of the primary DNS Suffix". ... > The server points to it's own DNS Server; that is the primary DNS server ...
    (microsoft.public.windows.server.general)
  • Re: how to make a dns server
    ... >> I would like to make a dns server inside LAN pointing to ... By default MS DNS can cache these records in its cache for up to one day. ... You have to add this entry to increase the maximum cache TTL for MS DNS. ...
    (microsoft.public.windows.server.dns)
  • Re: Cant browse MSN or hotmail sites - DNS entry corrupts
    ... Are you using forwarders on your DNS server? ... When the entry gets corrupt, does it resolve an incorrect IP address? ... > The DNS entry for MSN-related sites keeps going bad. ...
    (microsoft.public.windows.server.sbs)
  • Re: DNS query
    ... >>the entry ... > mine has this line too (wish I had a clue what it means) ... When doing getHostByName() try files, then check dns. ...
    (Debian-User)