1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to clear Tomato's DNS cache

Discussion in 'Tomato Firmware' started by jersully, Sep 24, 2008.

  1. jersully

    jersully LI Guru Member

    Is there a way to clear the DNS cache for Tomato through the GUI or do I need to drop to a command line?
     
  2. danix71

    danix71 LI Guru Member

    See Administration page-->Debugging.
     
  3. jersully

    jersully LI Guru Member

    Thank you. But I don't see anything DNS related there?
     
  4. danix71

    danix71 LI Guru Member

    I think ''Clear cookies'' will help you...:)
     
  5. mstombs

    mstombs Network Guru Member

    I suspect if you just press save on the dhcp/dns screen it will restart the dnsmasq dns caching daemon. From command line "service dnsmasq restart" should do the same.

    I think dani's cookies are a red herring (does that translate?)
     
  6. danix71

    danix71 LI Guru Member

    :) I took that for good for me, wasn't sure 100%...Sorry.
     
  7. jersully

    jersully LI Guru Member

    A "red herring" is something that's misleading. Clearing cookies didn't help, it looks like it just clears local .htm files?

    I'll try the Save on DHCP/DNS page trick. I'm pretty sure I restarted DNSmasq the other day and still had my DNS problem, but it's possible it was still cached on the client.
     
  8. danix71

    danix71 LI Guru Member

    Ok then, I'll never write here again. Blue or red, fish or not. Bye-bye.
     
  9. jersully

    jersully LI Guru Member

    I'm sure mstombs didn't mean to offend you. It's just that the Clear Cookies button looked promising but it's not what we were looking for.
     
  10. danix71

    danix71 LI Guru Member

    Off-Topic: Oke. Anyway I'll try not to try to give an answer if not known exactly.
     
  11. Beerhead

    Beerhead New Member Member

    It's possible via SSH:
    Code:
    #killall -1 dnsmasq
     
  12. KyleS

    KyleS Networkin' Nut Member

    If it's still cached by the OS that won't help unfortunately.
     
  13. Grimson

    Grimson Networkin' Nut Member

    Look at the date of the previous posts ;).
     
  14. Beerhead

    Beerhead New Member Member

    But no one asked that. The question was, how to do it on the router. The DNS probably cached at your ISP as well.

    This topic is the first result for me with google search, so I thought I post the actual answer.
     
  15. remlei

    remlei Networkin' Nut Member

    by default, tomato doesnt cache DNS entries, not unless you set the the variable local-ttl to something like local-ttl=120 means it caches all DNS request for 120seconds.

    so if you think that you didnt eneable or set local-ttl on dnsmasq then your router doesnt cache dns, it maybe your ISP dns caching it or your computer it self.
     
  16. jerrm

    jerrm Network Guru Member

    This is wrong.

    Tomato's dnsmasq will cache based on the ttl for the host.

    local-ttl is the value passed to clients for locally defined hosts, such as those from a hosts file or from dhcp hosts.
     
  17. KyleS

    KyleS Networkin' Nut Member

    Your router router runs an OS :(
     

Share This Page