Bug#801362: /lib/x86_64-linux-gnu/libnss_dns.so.2: Host names ending in ".localhost" do not return the loopback address as specified by RFC6761.
control: severity -1 wishlist
On 2015-10-08 22:30, y.st. wrote:
> Package: libc6
> Version: 2.19-18+deb8u1
>
> Dear Maintainer,
>
> * What led up to the situation?
>
> I was testing virtual hosts locally in Apache and set up a host that
> responds
> with a different site depending on the host name it recieves.
>
> * What exactly did you do (or not do) that was effective (or
> ineffective)?
>
> I tried loading <https://host0.localhost/> in the Web browser.
>
> * What was the outcome of this action?
>
> My machine quiried my ISP's name server and returned an advertizement
> page.
>
> * What outcome did you expect instead?
>
> My machine should have returned the loopback address without querying my
> ISP's
> name server, then loaded the website from my local machine as specified
> by
> RFC6761:
>
> <http://tools.ietf.org/html/rfc6761>
> 6.3. Domain Name Reservation Considerations for "localhost."
>
> The domain "localhost." and any names falling within
> ".localhost."
> are special in the following ways:
>
> 3. Name resolution APIs and libraries SHOULD recognize
> localhost
> names as special and SHOULD always return the IP
> loopback
> address
> for address queries and negative responses for all other
> query
> types. Name resolution APIs SHOULD NOT send queries for
> localhost names to their configured caching DNS
> server(s).
This RFC is relatively new and almost nobody implemented it yet. I am
therefore downgrading this bug as a wishlist.
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://www.aurel32.net
Reply to: