X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 35906475AE5 for ; Fri, 9 May 2003 09:51:31 -0400 (EDT) Received: from imf54bis.bellsouth.net (mail129.mail.bellsouth.net [205.152.58.69]) by postgresql.org (Postfix) with ESMTP id 4F0A1475A80 for ; Fri, 9 May 2003 09:51:30 -0400 (EDT) Received: from [209.214.27.15] by imf54bis.bellsouth.net (InterMail vM.5.01.04.25 201-253-122-122-125-20020815) with ESMTP id <20030509135342.RYOZ2173.imf54bis.bellsouth.net@[209.214.27.15]>; Fri, 9 May 2003 09:53:42 -0400 User-Agent: Microsoft-Entourage/10.1.1.2418 Date: Fri, 09 May 2003 09:51:54 -0400 Subject: Re: Pg_hba and dynamic dns From: Randall Perry To: Hans Spaans , Message-ID: In-Reply-To: <20030509002340.GA17686@sch01r01.nexit.nl> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Spam-Status: No, hits=-24.5 required=5.0 tests=BAYES_01,IN_REP_TO,QUOTED_EMAIL_TEXT,SIGNATURE_LONG_SPARSE, USER_AGENT_ENTOURAGE autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/120 X-Sequence-Number: 8682 Ok, those are valid points. What I'm trying to do is get access to the db for clients who are on the road using connections with dynamic IPs, from a PC running an MS Access db app. Dynamic DNS would have been an easy solution. Any ideas how to achieve this in other ways? > 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. -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Development/Promotion Mac Consulting/Sales http://www.systame.com/