pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hans Spaans <pgsql-admin@lists.hansspaans.nl>
To: pgsql-admin@postgresql.org
Subject: Re: Pg_hba and dynamic dns
Date: Fri, 9 May 2003 02:23:40 +0200
Message-ID: <20030509002340.GA17686@sch01r01.nexit.nl> (raw)
In-Reply-To: <BAE0550E.414C8%rgp@systame.com>
References: <BAE0550E.414C8%rgp@systame.com>

On Thu, May 08, 2003 at 06:40:14PM -0400, Randall Perry wrote:
> I've discovered I can use URLs for an IP address in pg_hba.conf, and
> everything works ok if the host can be resolved.
> 
> If it can't be resolved I get the error:
> psql: FATAL:  Missing or erroneous pg_hba.conf file, see postmaster log for
> details
> 
> And then all tcp/ip is denied.
> 
> That sucks -- means I can't use dynamic DNS. Anyone else think tcp/ip access
> shouldn't break if a URL can't be resolved?

IMHO support for fqdn should be removed.

1. FQDN's are mostly resolved when the configuration is being loaded.
So that data isn't going to change when the program is running or
would you like to do a dns query for every connection you get?

2. How are you going to handle forward and reversed dns? Think about
multiple A-records, fake or no reversed DNS, etc.

3. If fqdn is being checked when the db gets a connection people can
break in when you only check reversed dns.

4. Who is going to ensure me that dns isn't compromised somewhere down
the line?

This are just a few things, but I'm wondering.

-- 
Hans




view thread (7+ messages)  latest in thread

Message-ID: <20030509002340.GA17686@sch01r01.nexit.nl>
Permalink:  ../20030509002340.GA17686@sch01r01.nexit.nl/
Also on:    postgresql.org/message-id/20030509002340.GA17686@sch01r01.nexit.nl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: pgsql-admin@lists.hansspaans.nl
  Subject: Re: Pg_hba and dynamic dns
  In-Reply-To: <20030509002340.GA17686@sch01r01.nexit.nl>
  References: <BAE0550E.414C8%rgp@systame.com> <20030509002340.GA17686@sch01r01.nexit.nl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox