GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Resolving localhost subdomains · Issue #16744 · netty/netty

Resolving localhost subdomains #16744

New issue
Copy link
New issue
Copy link
Closed
#16749
kelta-io/kelta
#1970
kelta-io/kelta#1970
Closed
Resolving localhost subdomains#16744
#16749
kelta-io/kelta
#1970
Copy link

Description

@JulianVennen
JulianVennen
opened on May 4, 2026
Issue body actions

When you try to resolve a domain within localhost (e.g. example.localhost) netty currently queries checks the hosts file and queries the DNS server if it isn't defined there. If the DNS server does not resolve the record then netty throws an unknown host exception. This was tested on MacOS with Netty 4.2.12.Final.

The correct behaviour is defined in RFC 6761 Section 6.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).

There already is an exception for resolving localhost specifically on Windows because it isn't in the hosts file (see #5410). Expanding that to apply to all subdomains of localhost on all systems would solve this issue.

Activity

  1. normanmaurer commented on May 5, 2026

    @normanmaurer
    normanmaurer
    on May 5, 2026
    Member
    More actions

    @JulianVennen PRs welcome...

    Reacted by Julian Vennen and its-me20
  2. normanmaurer
    added a commit that references this issue on May 18, 2026

    Resolve all localhost addresses without querying DNS servers (#16749)

    This issue will close once commit a6aeb6d is merged into the '4.2' branch.
    a6aeb6d
  3. normanmaurer
    closed this as completedin #16749on May 18, 2026
  4. normanmaurer
    added 2 commits that reference this issue on May 18, 2026

    Auto-port 5.0: Resolve all localhost addresses without querying DNS s…

    This issue will close once commit df9f928 is merged into the '4.2' branch.
    df9f928

    Resolve all localhost addresses without querying DNS servers (#16749) (…

    This issue will close once commit bb458bd is merged into the '4.2' branch.
    bb458bd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.