This article explains how Dynamic hostname address book entries refresh periodically for SRX series Gateways.
Prior to Junos 10.2R1, adding a hostname in the address book entry but not matching the same in policy would not resolve the DNS IP address for the hostname. However, on matching the address book entry to a policy, a commit would resolve the current DNS IP address.
Viewing the cached entry for the policy, we see the following details:
root@SRX> show security policies detail--------------------------------------------------------------------------Default policy: deny-allPolicy: 1, action-type: permit, State: enabled, Index: 4Sequence number: 1From zone: trust, To zone: untrustSource addresses:radius: 1.20.30.40/32 Destination addresses:any: 0.0.0.0/0Application: anyIP protocol: 0, ALG: 0, Inactivity timeout: 0Source port range: [0-0]Destination port range: [0-0]
A new feature was introduced in Junos 10.2R1 version and above:
When the SRX running on the above version, receives the DNS response after the query, a TTL field is associated with this. This field indicates how long after which the entry should be refreshed in the policy cache and with the querying device. Once the TTL value expires, the SRX will auto refresh the DNS entry for the address book entry.
2024-09-03: Minor non tech changes2020-09-25: Archived.