Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    DNS Forwarder - flushing cache doesn't work..

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 2 Posters 1.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      stimpy
      last edited by

      Hi there,

      I know, one simply needed to reload the dns forwarder service to clear its cache. But this doesn't work anymore.
      Then, I tried sending SIGHUP to the dnsmasq process via SSH. Didn't work, too..

      When running dnsmasq –help, I can see an option:

          --clear-on-reload                   Clear DNS cache when reloading /etc/resolv.conf.
      

      When checking the running process using "ps aux", I don't see this option being used:

      nobody 85657  0.0  1.1  5512  2548  ??  S    12:26PM   0:00.12 /usr/local/sbin/dnsmasq --all-servers --rebind-localhost-ok --stop-dns-rebind --dhcp-hostsfile=/var/etc/hosts --dns-forward-max=5000 --cache-size=10000 --local-ttl=1
      

      I checked, whether it works, or not, via ssh directly on the pfsense machine, so no more local caching can apply and I checked with the opendns (the only dns provider, I'm using with pfsense) website, my dns-update are already online.

      My system is pfsense-embedded 2.1-RELEASE (i386) on an alix board.

      Am I doing anything wrong or is it a bug? :)

      Thanks in advance,
        stimpy

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        You need to stop and restart, not reload, dnsmasq to clear its cache.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.