Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test address refetch after TTL expire. #18

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Test address refetch after TTL expire. #18

merged 1 commit into from
Nov 16, 2023

Conversation

bluhm
Copy link
Contributor

@bluhm bluhm commented Nov 15, 2023

Create zone file with A and AAAA records in zone regress. Start nsd with zone file with TTL 2 seconds and listening on 127.0.0.1. Write hosts of regress zone into pfresolved config. Start pfresolved with nsd as resolver.
Wait until pfresolved creates table regress-pfresolved. Write new zone file with all adresses changed.
Wait until TTL has expired and pfresolved has renewed adresses. Read IP addresses from pf table with pfctl.
Check that pfresolved added IPv4 and IPv6 addresses. Check that pf table contains new IPv4 and IPv6 addresses with short TTL. Check that pf table contains old IPv4 and IPv6 addresses with default TTL. Check that pfresolved removed IPv4 and IPv6 addresses with short TTL.

Create zone file with A and AAAA records in zone regress.
Start nsd with zone file with TTL 2 seconds and listening on 127.0.0.1.
Write hosts of regress zone into pfresolved config.
Start pfresolved with nsd as resolver.
Wait until pfresolved creates table regress-pfresolved.
Write new zone file with all adresses changed.
Wait until TTL has expired and pfresolved has renewed adresses.
Read IP addresses from pf table with pfctl.
Check that pfresolved added IPv4 and IPv6 addresses.
Check that pf table contains new IPv4 and IPv6 addresses with short TTL.
Check that pf table contains old IPv4 and IPv6 addresses with default TTL.
Check that pfresolved removed IPv4 and IPv6 addresses with short TTL.
@CaBeckmann CaBeckmann merged commit 3192cb4 into master Nov 16, 2023
@CaBeckmann CaBeckmann deleted the regress-ttl branch November 16, 2023 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants