Switching

last person joined: yesterday 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  clear or flush dns cache on EX switches

    Posted 06-01-2011 14:43

    Is there a way to clear or flush the DNS cache on EX switches?

     

    I am moving to new DNS servers and would like to make sure the switches are resolving addresses correctly.

     

    -Mike



  • 2.  RE: clear or flush dns cache on EX switches

    Posted 06-01-2011 19:32

    try "clear system services dns-proxy cache"

     

    or go to bsd shell and do "ndc restart"

     

    or reboot the switch ...

     

    regards



  • 3.  RE: clear or flush dns cache on EX switches

    Posted 06-02-2011 07:04

    "clear system services dns-proxy cache"

     --- there is no option for dns-proxy, I only have clear system dhcp

     

    or go to bsd shell and do "ndc restart"

     --- Command not found.

     

    or reboot the switch ...

     --- not a great option, but is this my only option?

     



  • 4.  RE: clear or flush dns cache on EX switches

    Posted 06-03-2011 08:23

    Strange - I can't find any command either.  Do you know that the EX caches DNS responses?



  • 5.  RE: clear or flush dns cache on EX switches

    Posted 06-06-2011 08:16

    It looks like edit mode cli ping is resolving correctly without a reboot, but BSD shell is not.



  • 6.  RE: clear or flush dns cache on EX switches
    Best Answer

    Posted 06-06-2011 13:21

    The only thing that I can find an entry for on the Juniper KB for DNS cache is for Netscreen and SRX firewalls which can perform a DNS proxy function.

     

    It doesn't make sense that a switch would perform DNS caching when you think about it.

     

    You should be able to point the switch at the new DNS server(s) without a reboot and the switch will resolve anything you ask of it against these new servers.

     

    The /etc/resolv.conf file handles DNS resolution in the BSD shell and on my test EX systems the values here match what my switch is configured to do as far as the DNS domain name to add, DNS servers, etc.



  • 7.  RE: clear or flush dns cache on EX switches

    Posted 06-07-2011 07:36

    I did some more testing and it looks like the switch isn't caching after all.

     

    Thanks,

    Mike