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

    Flush pfSense DNS Cache

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 3 Posters 52.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
      sinac
      last edited by

      I'm really embaressed to have to ask this, but anyway:
      My pfSense has an IPSec Tunnel to another site which has a dynamic IP address and a dyndns domain. The ip changed and the dynamic domain is updated, but pfsense won't resolve the new ip address. I guess it's cached within pfSense but I don't know how to flush the DNS Cache on pfSense. I already restarted dnsmasq but it still resolves to the old IP. Any ideas?

      1 Reply Last reply Reply Quote 0
      • D
        digininja
        last edited by

        I just had to work out the same thing, not sure if there is a better way but if you send a HUP to the dnsmasq process then it will reload it.

        ssh to the pfSense box then

        
        ps aux | grep dns
        
        

        to get the process id

        
        kill -HUP 
        

        to trigger the reload.

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

          Or just go to Status > Services, and click the restart button on dnsmasq. Much easier, and it flushes the cache when restarting.

          It's also documented here:
          http://doc.pfsense.org/index.php/How_do_I_clear_the_DNS_Forwarder_cache%3F

          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
          • D
            digininja
            last edited by

            Well there you go sinac, you've got two answers now! Jimps is much easier than mine so I'd go with that.

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