Missing documentation of Google DNS fallback 8.8.8.8 and 8.8.4.4

Aperta Adatta ai principianti
#22,945 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
78/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
docker
Ambito
documentation

Direzione di ricerca

Inizia dalla sezione sui servizi DNS del capitolo relativo al networking nella posizione della documentazione collegata e verifica la copertura esistente del comportamento DNS. Aggiungi una nota che spieghi il fallback a 8.8.8.8 e 8.8.4.4 quando non è configurato alcun DNS diverso da localhost, quindi verifica la documentazione renderizzata e la formulazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area/engine area/networking status/confirmed
Is this a docs issue?
  • My issue is about the documentation content or website
Type of issue

I can't find what I'm looking for

Description
Summary

Add a note to the documentation indicating that Docker falls back to Google DNS if no non-localhost DNS is defined.

Details

In one of my projects, I started a Docker container on a device without internet access and with no configured DNS other than localhost.
Inside the container, some DNS requests timed out after a long delay. I expected the DNS requests to fail immediately.

Upon checking the dockerd log, I found the following line during startup:

No non-localhost DNS nameservers are left in resolv.conf. Using default external servers: [nameserver 8.8.8.8 nameserver 8.8.4.4]

I reviewed the DNS section of the networking chapter, but found no mention of this behavior. I only discovered it referenced in another issue: https://github.com/moby/moby/issues/23910

Am I missing something?

Edit: Tested with Docker version 24.0.5, build ced0996

Location

https://docs.docker.com/engine/network/#dns-services

Suggestion

Maybe add a simple sentence to the chapter:

In case no non-localhost DNS is defined in the `/etc/resolve.conf`, a fallback to `8.8.8.8` and `8.8.4.4` will be added.

Exact formulation and placement is of course open for discussion.

Lingua principale
Markdown
Stelle
4.7k
Fork
8.5k
Merge medio
2g 12h
PR unite (30g)
104

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di docker/docs

Tutte le issue di docker/docs

Issue simili

Altre issue su Documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.