Skip to content

Conversation

@RaimoNiskanen
Copy link
Contributor

Closes #10494.

Make the build in DNS resolver inet_res do a final request assuming that the given Name to resolve is an absolute name, by having an implicit top domain entry last in the domain search list.

@RaimoNiskanen RaimoNiskanen added this to the 28.4 milestone Jan 21, 2026
@RaimoNiskanen RaimoNiskanen self-assigned this Jan 21, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 21, 2026

CT Test Results

    2 files     72 suites   1h 6m 21s ⏱️
1 685 tests 1 340 ✅ 344 💤 1 ❌
1 937 runs  1 534 ✅ 402 💤 1 ❌

For more details on these failures, see this check.

Results for commit a55e31b.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@RaimoNiskanen RaimoNiskanen marked this pull request as draft January 22, 2026 15:06
This is what all OS resolvers we know of does, and it has been
on a future improvement list since at least R13B01, in a comment
in inet_res.erl.

So, when the name to look up has been tried with all domain
search list entries, do a final attempt as if the top domain
is an invisible last domain search list entry.

This only applies to names without a dot (implicit ndots=1),
since for names with at least one dot they are tried as
absolute names *before* starting with the search list,
as before this change.
@RaimoNiskanen RaimoNiskanen force-pushed the raimo/kernel/inet_res-final-absolute/OTP-19937 branch from 23b9147 to 2230292 Compare January 23, 2026 14:40
@RaimoNiskanen RaimoNiskanen marked this pull request as ready for review January 23, 2026 14:41
@RaimoNiskanen RaimoNiskanen added team:PS Assigned to OTP team PS testing currently being tested, tag is used by OTP internal CI in progress priority:medium and removed testing currently being tested, tag is used by OTP internal CI labels Jan 23, 2026
@RaimoNiskanen RaimoNiskanen force-pushed the raimo/kernel/inet_res-final-absolute/OTP-19937 branch from db92d1e to bfa8bae Compare January 23, 2026 16:53
@RaimoNiskanen RaimoNiskanen force-pushed the raimo/kernel/inet_res-final-absolute/OTP-19937 branch from bfa8bae to a55e31b Compare January 26, 2026 10:31
@RaimoNiskanen
Copy link
Contributor Author

Ready for review. Awaiting, hopefully, comments from issue #10494 reporter..., and from someone with repository write access.

@RaimoNiskanen
Copy link
Contributor Author

Issue #10494 reporter has verified this fix. Now this PR only waiting for approval from @bjorng or/and @jhogberg...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Difference in search domain resolution behavior: native resolver vs inet_res

1 participant