cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
106
Views
0
Helpful
1
Replies

DNS entry for configuration server gets cached or looked-up again?

aeisenac
Cisco Employee
Cisco Employee

Team,

When an ISR gets its information about the configuration server via bootstrap as a DNS name, but the resolved name leads to a non-responding configuration server, will the retries of the ISR include new DNS lookups or will it cache the first lookup and try the same IP address again and again.

Background: Is there a chance that an updated DNS entry for a configuration server will get resolved within an time-output, or will it never be reachable since the the first resolve gets cached?

Cheers,

    Andreas

1 Reply 1

Philip D'Ath
VIP Alumni
VIP Alumni

If this is an IOS router, then "show hosts" will show you the current resolver cache.

I don't know the answer. However you can be reasonably confident that the resolver wont cache an entry beyond the TTL in the DNS response.  So lower the TTL in the record you are worried about on your DNS server to be equal to the time you would like the router to repeat the DNS lookups.

For example, if you make the DNS TTL of your entry 60s,then no matter what the router should look it up every 60s.

From my memory, the IOS resolver flushes the cache on a scheduled interval, so it is never exactly equal to the TTL, but it is close enough.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card