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

Use /etc/hosts for postgres internal DNS resolving #1195

Merged
merged 1 commit into from Feb 12, 2024
Merged

Conversation

byucesoy
Copy link
Member

@byucesoy byucesoy commented Feb 6, 2024

This has 3 primary benefits;

  • It is faster than making DNS queries
  • It is faster and swift (no TTL) to update
  • It allows setting up standbys that uses fully qualified domain names even when there is no DNS server (i.e. development environments)

@byucesoy byucesoy requested a review from a team February 6, 2024 12:12
@byucesoy byucesoy self-assigned this Feb 6, 2024
@furkansahin
Copy link
Contributor

I like this and it's alright to merge it. However, soon, after this PR #1196, we may also start configuring dnsmasq for these operations. This way, we will also be able to assign private hostnames.

This has 3 primary benefits;
- It is faster than making DNS queries
- It is faster and swift (no TTL) to update
- It allows setting up standbys that uses fully qualified domain names even
when there is no DNS server (i.e. development environments)
@byucesoy byucesoy merged commit 6cc8608 into main Feb 12, 2024
5 checks passed
@byucesoy byucesoy deleted the pg-etc-host branch February 12, 2024 11:20
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.

None yet

2 participants