Skip to content

fix: Refresh of A and AAAA records#441

Merged
keepsimple1 merged 1 commit intokeepsimple1:mainfrom
hrzlgnm:fix/a-and-aaaa-records-not-refreshed
Mar 11, 2026
Merged

fix: Refresh of A and AAAA records#441
keepsimple1 merged 1 commit intokeepsimple1:mainfrom
hrzlgnm:fix/a-and-aaaa-records-not-refreshed

Conversation

@hrzlgnm
Copy link
Copy Markdown
Contributor

@hrzlgnm hrzlgnm commented Mar 10, 2026

I was observing random flapping for services when browsing for a longer time. I did some debugging and digging. The root cause: when looking for address records to refresh we didn't normalize the host-name to lowercase, but we store those records keyed by the host-name in lowercase.

In a query example one could observe the following:

At 247.012365348s: ** service removed **: _test._tcp.local.: MyTestService._test._tcp.local.
At 247.512825108s: Resolved a new service: MyTestService._test._tcp.local.
 host: MyHostName.local.
 port: 3000
 Address: 192.168.178.95
 Property: dis=and
 Property: dat=

I've tracked it down to A / AAAA records not being refreshed, due to the root cause described above.

I was observing random flapping for services when browsing for a longer
time. I did some debugging and digging. The root cause: when looking for
the addr records we didn't normalize the hostname to lowercase, but
store the records keyed by the hostname in lowercase.
@hrzlgnm
Copy link
Copy Markdown
Contributor Author

hrzlgnm commented Mar 10, 2026

I guess it went unnoticed so far, due to actual host-names being lowercase most of the time.

Copy link
Copy Markdown
Owner

@keepsimple1 keepsimple1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your fix!

@keepsimple1 keepsimple1 merged commit ec1e733 into keepsimple1:main Mar 11, 2026
3 checks passed
@hrzlgnm hrzlgnm deleted the fix/a-and-aaaa-records-not-refreshed branch March 11, 2026 04:49
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