Skip to content

Conversation

@maqeel75
Copy link
Contributor

This PR fixes domain name issue as follows

  1. Try DNS resolution to get FQDN, then extract domain
  2. Read from /etc/resolv.conf (domain or search directive)
  3. Fallback to getdomainname() with validation

…etc/resolv.conf and finally fallback to getdomainname() with validation
@dpage
Copy link
Contributor

dpage commented Nov 17, 2025

Nice! The current implementation will get the NIS/YP domain name, which is usually not something people use these days.

@neel5481
Copy link
Contributor

LGTM, Committed, Thank you @maqeel75

@neel5481 neel5481 merged commit 22b1c8c into EnterpriseDB:master Nov 27, 2025
@maqeel75 maqeel75 deleted the DNS-name branch November 27, 2025 08:25
@maqeel75
Copy link
Contributor Author

LGTM, Committed, Thank you @maqeel75

Thanks Neel

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.

3 participants