25-Nov-2015
22:38
- last edited on
05-Jun-2023
14:21
by
JimmyPackets
I am trying to clear DNS cache using iControl REST apis, but i couldn't find any. I can get information about DNS cache using following REST api.
GET
https://localhost/mgmt/tm/ltm/dns/cache/resolver
GET https://localhost/mgmt/tm/ltm/dns/cache/transparent
GET https://localhost/mgmt/tm/ltm/dns/cache/validating-resolver
Using above apis, I can get information about the added DNS caches, but there is no way to clear these. On UI, we need to go to the statistics page to clear the cache, but again there is no way to check statistics using REST.
I have also figured out tmsh common for clearing DNS cache, which is delete
ltm dns cache records rrset cache
. Now I am trying to convert this command into REST api which is unfortunately not working. I tried following:
DELETE
https://localhost/mgmt/tm/ltm/dns/cache/records/rrset?options=cache+DNS_Cache_name
Could somebody help me out to clear DNS Cache using iControl REST?