Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify host name in pg_hba.conf file of postgresql?

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.

like image 332
Obtice Avatar asked Nov 01 '25 01:11

Obtice


1 Answers

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

like image 188
Obtice Avatar answered Nov 03 '25 10:11

Obtice