Connection error when using the auto_discover_databases flag

Hi there,

I am finding that enabling the auto_discover_databases flag is throwing an error when trying to run queries against my database: (I have replaced the database name with for privacy reasons)

msg="Error opening connection to database (postgresql://<databasename>?host=/var/run/postgresql&user=postgres): dial tcp: lookup <databasename> on server misbehaving" source="postgres_exporter.go:1474"

I believe Port :53 is the Domain Name System port. Is this indicating an authentication error or something different?

Any help from those who have experienced this error would be greatly appreciated.

Thank you.