Are dns CNAME's allowed or useable in pg_hba.conf hostname specification - Mailing list pgsql-admin

From dennisr@visi.com
Subject Are dns CNAME's allowed or useable in pg_hba.conf hostname specification
Date
Msg-id 712E05C9-E2D7-49CD-834E-26BA911C8D8A@visi.com
Whole thread Raw
Responses Re: Are dns CNAME's allowed or useable in pg_hba.conf hostname specification  (Scott Whitney <scott@journyx.com>)
List pgsql-admin
From reading the doc’s it looks like a CNAME will not in general work as a hostname specification in pg_hba.conf.  Is
thata correct interpretation of the the documentation? 

From the doc’s (https://www.postgresql.org/docs/current/static/auth-pg-hba-conf.html

If a host name is specified (anything that is not an IP address range or a special key word is treated as a host name),
thatname is compared with the result of a reverse name resolution of the client's IP address (e.g., reverse DNS lookup,
ifDNS is used). Host name comparisons are case insensitive. If there is a match, then a forward name resolution (e.g.,
forwardDNS lookup) is performed on the host name to check whether any of the addresses it resolves to are equal to the
client'sIP address. If both directions match, then the entry is considered to match. (The host name that is used in
pg_hba.confshould be the one that address-to-name resolution of the client's IP address returns, otherwise the line
won'tbe matched. Some host name databases allow associating an IP address with multiple host names, but the operating
systemwill only return one host name when asked to resolve an IP address.) 



pgsql-admin by date:

Previous
From: John Scalia
Date:
Subject: Re: Req. for some help with resolving the error "pg_basebackup: could not get WAL end position from server: FATAL: requested WAL segment"
Next
From: Scott Whitney
Date:
Subject: Re: Are dns CNAME's allowed or useable in pg_hba.conf hostname specification