Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

RESOLV::lookup not updating to new ip address

awan_m
Cirrus
Cirrus

Hi - 

My irule is usong the resolv statement to resolve a name - 

set hostIP [lindex [RESOLV::lookup @$static::dns_vs inet -a $hostname] 0]
we are experiencing issue when a DNS record is updated - the resolver does not resolve to the new ip address
i tried clearing the cache aswell but that did not help .
tmsh delete ltm dns cache records rrset owner www.xyz.com cache default_resolver_cache
tmsh delete ltm dns cache records msg qname www.xyz.com cache default_resolver_cache
 
Any Suggestions 
Thanks 
 
 
 
4 REPLIES 4

Paulius
MVP
MVP

@awan_m Would you mind sharing the entire iRule that this resides in? Based on the information you have provided the DNS record should follow the TTL of the DNS record that was returned to it, so if your TTL for the record is lets say 5 hours then it could take up to 5 hours for the F5 to receive some other response.

i understand the TTL part - but is there no way to clear cache and force a new resolution ?

@awan_m You clear it the same way I believe you have been clearing it. I think the issue you are experiencing is that the cacheing NS still has the old record and not the new record and that is the issue you're running into. You should be able to double check this by logging into the CLI in bash and doing a "dig @<configured_dns_IP> <FQDN>" which will query the DNS server you have specified, which should be the same as the DNS server that the F5 has configured for DNS queries.

mplaksin0
Cirrus
Cirrus

Check the TTL of the domain you're looking at. Check if using the dig www.domain.com command within the F5 CLI you receive the desired input.