问题
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
来源:https://stackoverflow.com/questions/22374768/how-to-specify-host-name-in-pg-hba-conf-file-of-postgresql