Re: Thinking differently about the site local problem (was: RE: site local addresses (was Re: Fw: Welcome to the InterNAT...))

Keith Moore <moore@cs.utk.edu> Mon, 31 March 2003 22:01 UTC

Received: from ran.ietf.org (ran.ietf.org [10.27.6.60]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA27091; Mon, 31 Mar 2003 17:01:03 -0500 (EST)
Received: from majordomo by ran.ietf.org with local (Exim 4.10) id 1907X6-0002yn-00 for ietf-list@ran.ietf.org; Mon, 31 Mar 2003 17:13:36 -0500
Received: from odin.ietf.org ([10.27.2.28] helo=ietf.org) by ran.ietf.org with esmtp (Exim 4.10) id 1907Tv-0002nl-00 for ietf@ran.ietf.org; Mon, 31 Mar 2003 17:10:19 -0500
Received: from astro.cs.utk.edu (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA26856 for <ietf@ietf.org>; Mon, 31 Mar 2003 16:53:53 -0500 (EST)
Received: from astro.cs.utk.edu (localhost [127.0.0.1]) by astro.cs.utk.edu (cf 8.9.3) with SMTP id h2VLuHA06303; Mon, 31 Mar 2003 16:56:17 -0500 (EST)
Date: Mon, 31 Mar 2003 16:56:17 -0500
From: Keith Moore <moore@cs.utk.edu>
To: Jeroen Massar <jeroen@unfix.org>
Cc: moore@cs.utk.edu, huitema@windows.microsoft.com, ietf@ietf.org
Subject: Re: Thinking differently about the site local problem (was: RE: site local addresses (was Re: Fw: Welcome to the InterNAT...))
Message-Id: <20030331165617.1398541e.moore@cs.utk.edu>
In-Reply-To: <002301c2f7ce$d2c625c0$210d640a@unfix.org>
References: <20030331162356.52a63c86.moore@cs.utk.edu> <002301c2f7ce$d2c625c0$210d640a@unfix.org>
X-Mailer: Sylpheed version 0.8.9 (GTK+ 1.2.10; i386--netbsdelf)
Mime-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: owner-ietf@ietf.org
Precedence: bulk
Content-Transfer-Encoding: 7bit

> > > Indeed, correctly coded applications will use a getaddrinfo()
> > > and then a connect() in a loop until succesful. 
> > 
> > it's perfectly reasonable to connect to an address without first
> > doing a DNS lookup.
> 
> I think nobody can't help you if you are using hardcoded IP's.
> The only case you have an IP without DNS is when you get it
> passed from another layer/entity (eg in a FTP from the server).

uh, no.   you can get IP addresses from any number of sources other than
DNS, including from other processes that exist on other nodes.  It's a
perfectly reasonable thing to do.

> Can you identify those so that getaddrinfo() can be expanded
> to fix these cases?

getaddrinfo() cannot be fixed.  it's major premise - that the host has
the knowledge to make decisions about which of several addresses is best
to use - is fundamentally flawed, except in a few corner cases.