如何在postgresql的pg_hba.conf文件中指定主机名? [英] How to specify host name in pg_hba.conf file of postgresql?

查看:216
本文介绍了如何在postgresql的pg_hba.conf文件中指定主机名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们要创建这样的一行:
将所有vs1.nsdp.ir md5
托管在pg_hba.conf文件中。
但是它不理解这个主机名。 Ip为192.168.1.60,使用IP地址就可以了。

We want to create a line like this : host all all vs1.nsdp.ir md5 in pg_hba.conf file. But it doesn't understand this host name. It's Ip is 192.168.1.60 and when we use ip address that's fine. But it won't work with host name.

推荐答案

我们在dns服务器中创建了反向dns查找,因此它可以反向查找我们域的ip即可解决问题

We created a reverse dns lookup in our dns server so it can be able to reverse lookup the ip of our domain and the problem is solved

这篇关于如何在postgresql的pg_hba.conf文件中指定主机名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆