Re: [DNSOP] Status of "let localhost be localhost"?

Ted Lemon <> Wed, 02 August 2017 12:48 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 47A1A131CD7 for <>; Wed, 2 Aug 2017 05:48:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: (amavisd-new); dkim=pass (2048-bit key)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id 7q3Qp8d-WYUH for <>; Wed, 2 Aug 2017 05:48:28 -0700 (PDT)
Received: from ( [IPv6:2607:f8b0:400d:c0d::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id AD037132070 for <>; Wed, 2 Aug 2017 05:48:28 -0700 (PDT)
Received: by with SMTP id v29so26048591qtv.3 for <>; Wed, 02 Aug 2017 05:48:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=Z4nZrf59xhkcvSkFMGNYVVauCdZuJQ0pNTRKZF36Te4=; b=rqhcN2FEZ9Lz5cwPuQCnUTlj7xLAKC3w6hYpYQX/fcnabHTyy+fIgCqFPc3sg38nBj xzdIPMdQfULpeXGG0cv6sPBQnAuvNFD+QUXSWWjt/BQMB1hGCQH/uJlcAz7JneztKAAU 8ODWc61nA0GIIup6F6jFUU9gTI4C45NDWBJVavIvVs9lw7zc/VdSbMNEQRkSPu2hLgsa xzmCTsXM1HjvJ0ddOO4uLPSabXtifH4UdJOwNshFYOLdUmiAMhH9hKtyg93xjtSCl1q7 pBJh5+qF9W4G7Zmll1yqfEDwFLY3f3ZyitB0OOVV5n9jYmGIftHKlHEg16QZ07/fZsy9 kzkQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=Z4nZrf59xhkcvSkFMGNYVVauCdZuJQ0pNTRKZF36Te4=; b=ZIbUDWZAjTks6iKY1HrXE/MiEEnSk0k6xkFCsWimrI4bsdSWNOyxTUPPEravwVcQ3O 19ZsfuZHUALvQO/i/52R5ROK1xXUplS0s0QOsDI3DayvCn1vIAVDgJOiQyFUjHChxLmL RMq513m7TAlepD8/Nfnq5WIazQ2CpwcEEMdSnDpi6HS2VD0C+HWhQSWSOLBpd7+sBUQh djlzZ8iYZQoOko+6m8jBE1vHDz7dH5RXVvwEw2wsTKpc7/y9lYVKGanRzIU0iYijFc6O hmq5BQ87g4o64JUeWazHSmXiz8LdtthAR0kHokW55rRfLw9g9GXy/CXyNZzPhGAIEp6p 5NFQ==
X-Gm-Message-State: AIVw1125BRHL6yjb1qI129WmM00W01ddkQYDalwVBFpuPJYwjYmS2yHc 5ugpY+Hn4qjdSQUs3aaNGw==
X-Received: by with SMTP id e6mr23463004qtd.125.1501678107654; Wed, 02 Aug 2017 05:48:27 -0700 (PDT)
Received: from [] ( []) by with ESMTPSA id s32sm15432589qth.71.2017. (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Aug 2017 05:48:26 -0700 (PDT)
From: Ted Lemon <>
Message-Id: <>
Content-Type: multipart/alternative; boundary="Apple-Mail=_9A199776-7AAA-4E81-BE0D-F3CAB6CA2C39"
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
Date: Wed, 2 Aug 2017 08:48:24 -0400
In-Reply-To: <>
Cc: william manning <>, dnsop <>, Jacob Hoffman-Andrews <>
To: Richard Barnes <>
References: <> <> <> <> <>
X-Mailer: Apple Mail (2.3273)
Archived-At: <>
Subject: Re: [DNSOP] Status of "let localhost be localhost"?
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: IETF DNSOP WG mailing list <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Wed, 02 Aug 2017 12:48:30 -0000

On Aug 2, 2017, at 8:40 AM, Richard Barnes <> wrote:
> The underlying need here is that application software would like to make use of the fact that it is connecting to "localhost" (vs. other domain names) to make security decisions based on whether traffic is going to leave the host.  So if the network layer remaps localhost to something other than a loopback interface without telling the applications, then you're going to have security problems.
> The point of this document is to avoid this disconnect by discouraging the sorts of remappings you're talking about.

Of course, arguably this is the wrong approach.   Perhaps the right approach is to understand that the security characteristics of "localhost" are not the ones that we want when our goal is to be sure we are connecting to the local host.   Apps don't control the name resolution software that's running on the local host.   If they want to be sure they are connecting locally, perhaps they should be using ::1 instead of localhost as their explicit destination identifier.