postgresql 接受动态 dns 主机吗?

发布于 2024-12-11 08:31:30 字数 1459 浏览 6 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

落日海湾 2024-12-18 08:31:30

这不起作用,因为 pg_hba.conf 中的 DNS 名称需要与您的 IP 地址的反向 DNS-IP-to-name- 查找结果相匹配:这是由您的连接提供商分配的,并且ddns 不触及它(只是提供额外的名称到 IP 的转发条目)。

This won't work, because the DNS name in pg_hba.conf needs to match the reverse DNS- IP-to-name- lookup result for your IP address: this is assigned by your connectivity provider, and ddns doesn't touch it (just provides an extra forward- name-to-IP- entry).

北城挽邺 2024-12-18 08:31:30

我相信此功能是在 v9.1 中引入的: http://www.postgresql.org/docs/9.1/interactive/auth-pg-hba-conf.html

如果您使用的是之前的版本,您可以编写一个 cron - 触发 shell 脚本执行 DNS 查找并动态创建 pg_hba.conf 文件。 (更改后您可能需要执行 HUP,但我不确定。)

I believe this functionality was introduced in v9.1: http://www.postgresql.org/docs/9.1/interactive/auth-pg-hba-conf.html

If you're using a version prior to that, you could write a cron-fired shell script that does the DNS lookup and dynamically creates the pg_hba.conf file. (You might have to do a HUP after changing it, not sure off the top of my head.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文