Dnsmasq take very long time to renew the ip address of DDNS

Discussion in 'Tomato Firmware' started by ShinichiYao, Mar 18, 2014.

  1. ShinichiYao

    ShinichiYao Reformed Router Member

    I'm using dnsmasq as my local DNS server, and setup a VPN connection to the other side through DDNS. With dnsmasq off, it takes a very little while to get the new ip address after DDNS update and establish VPN connection, but with dnsmasq on, it takes about one hour or more to renew the ip address. I think must be the cache of dnsmasq. So, is there a way to ignore a certain domain in dnsmasq's cache?
  2. koitsu

    koitsu Network Guru Member

    What's the FQDN being used through your DDNS provider? Yes, I am asking you what your dynamic DNS hostname is. Please don't hide it, I really do need to see it to examine some public DNS data. My gut feeling is that the TTL on the A record through your DDNS provider is too high (too long), possibly something like 3600 seconds. If that's the case: dnsmasq is doing the right thing by respecting TTL, and your DDNS provider should allow you to adjust the TTL yourself. If they don't, pick a different DDNS provider who does.

    If you want to clear dnsmasq's DNS cache, you can send it a SIGHUP signal, per the dnsmasq docs. The way you'd do this is kill -HUP `pidof dnsmasq`.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice