How to specify host name in pg_hba.conf file of po

2019-05-16 13:11发布

问题:

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.

回答1:

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