Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    How to clear DNS cache so dig shows real results?


    i changed PTR record for an IP address,

    Service like shows new record ok, but in linux command line i did "dig +x myserverip" before PTR change.

    Now it still shows old PTR results, so it must be cached somewhere. I have Centos 5.x, and tried command service nscd restart; nscd -i hosts

    but dig still shows old result

    when i do command "dig -x myserverip +trace" ... it shows updated result (new ptr)

    where it is cached and how to delete it most simply on centos?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Did you restart the DNS service? If you didn't, then changes to the DNS configuration will not be seen.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts