Skip to content

resolved: let's preferably route reverse lookups for local subnets to… - #18613

Merged
poettering merged 1 commit into
systemd:mainfrom
poettering:resolved-by-subnet
Feb 16, 2021
Merged

poettering merged 1 commit into
systemd:mainfrom
poettering:resolved-by-subnet

Conversation

@poettering

Copy link
Copy Markdown
Member

… matching interfaces

Let's preferably route traffic for reverse lookups to LLMNR/mDNS/DNS on
the matching interface if the IP address is in the local subnet. Also,
if looking up an IP address of our own host, let's avoid doing
LLMNR/mDNS at all.

This is useful if "~." is a routing domain to DNS, as it means, local
reverse lookups still go to LLMNR/mDNS, too.

Fixes: #16243 #10081

@poettering

Copy link
Copy Markdown
Member Author

Split out of #17535

Comment thread src/resolve/resolved-dns-scope.c Resolved
Comment thread src/resolve/resolved-dns-scope.c Resolved
Comment thread src/resolve/resolved-dns-scope.c Resolved

@bluca bluca left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, just a couple minor nits.

… matching interfaces

Let's preferably route traffic for reverse lookups to LLMNR/mDNS/DNS on
the matching interface if the IP address is in the local subnet. Also,
if looking up an IP address of our own host, let's avoid doing
LLMNR/mDNS at all.

This is useful if "~." is a routing domain to DNS, as it means, local
reverse lookups still go to LLMNR/mDNS, too.

Fixes: systemd#16243 systemd#10081
@poettering

Copy link
Copy Markdown
Member Author

Force pushed a new version, rebased and addressing @bluca's points. (Thanks so much for all the reviews!)

@poettering poettering added good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed and removed good-to-merge/with-minor-suggestions labels Feb 16, 2021
@poettering
poettering merged commit 13eb76e into systemd:main Feb 16, 2021
@keszybz keszybz removed the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

Local IP address reverse lookup is slow when LLMNR=resolve

3 participants