Re: PgAdmin cannot locate my server

From: Erik Wienhold <ewie(at)ewie(dot)name>
To: John Scalia <jayknowsunix(at)gmail(dot)com>, Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: PgAdmin cannot locate my server
Date: 2023-04-17 18:30:27
Message-ID: 567877725.428539.1681756227883@office.mailbox.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> On 17/04/2023 19:44 CEST John Scalia <jayknowsunix(at)gmail(dot)com> wrote:
>
> I’ve got something really weird going on. My laptop can easily find my PLE
> production (production like environment) using a normal nslookup, but PgAdmin
> emits an error saying could not translate host name “ple.mydomain.com” host to
> address: Unknown host
>
> So where is PgAdmin looking regarding DNS entries?

I can't find message "Unknown host" in the pgAdmin source. I'd have to check
but I assume pgAdmin delegates all connection management to psycopg.

> I would think that if the laptop can find it, that any app running on it
> should be able to do so.

How do you run pgAdmin? From the top of my head there's the desktop version,
server version, and Docker container version. In case of the server version
it's plausible that the server uses different DNS settings than your laptop.
Docker containers should inherit the DNS settings of the host but that can be
changed as well.

--
Erik

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Sbob 2023-04-19 16:24:17 PostgreSQL Logical Replication Questions
Previous Message John Scalia 2023-04-17 17:44:50 PgAdmin cannot locate my server