X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 57F06475B99 for ; Thu, 8 May 2003 20:23:41 -0400 (EDT) Received: from army.dyndns.org (3eea6682.cable.wanadoo.nl [62.234.102.130]) by postgresql.org (Postfix) with ESMTP id 53729474E4F for ; Thu, 8 May 2003 20:23:40 -0400 (EDT) Received: from army.dyndns.org (localhost [127.0.0.1]) by army.dyndns.org (8.12.6/8.12.6/Debian-6Woody) with ESMTP id h490NfLC019462 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=FAIL) for ; Fri, 9 May 2003 02:23:42 +0200 Received: (from hspaans@localhost) by army.dyndns.org (8.12.6/8.12.6/Debian-6Woody) id h490NeLY019460 for pgsql-admin@postgresql.org; Fri, 9 May 2003 02:23:40 +0200 X-Authentication-Warning: army.dyndns.org: hspaans set sender to pgsql-admin@lists.hansspaans.nl using -f Date: Fri, 9 May 2003 02:23:40 +0200 From: Hans Spaans To: pgsql-admin@postgresql.org Subject: Re: Pg_hba and dynamic dns Message-ID: <20030509002340.GA17686@sch01r01.nexit.nl> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i X-Spam-Status: No, hits=-39.4 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT,X_AUTH_WARNING 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/110 X-Sequence-Number: 8672 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