Outils pour utilisateurs

Outils du site


tech:notes_client_dns

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:notes_client_dns [2025/04/26 11:09] Jean-Baptistetech:notes_client_dns [2025/11/06 17:35] (Version actuelle) Jean-Baptiste
Ligne 29: Ligne 29:
   *     Total number of characters for all search domains is 256. (avant glibc 2.26)   *     Total number of characters for all search domains is 256. (avant glibc 2.26)
   *     Note: You should use only tab or space to separate host names in the search domain list.   *     Note: You should use only tab or space to separate host names in the search domain list.
 +
 +
 +Si plus de 3 serveurs dans /etc/resolv.conf : "Nameserver limits were exceeded, some nameservers have been omitted..."
  
  
Ligne 141: Ligne 144:
  
  
-<code ini /etc/systemd/resolved.conf>+''/etc/systemd/resolved.conf'' 
 +<code ini>
 DNS=1.1.1.1 1.0.0.1 DNS=1.1.1.1 1.0.0.1
 </code> </code>
Ligne 151: Ligne 155:
 </code> </code>
  
-<code bash /etc/resolv.conf>+''/etc/resolv.conf'' 
 +<code bash>
 nameserver 127.0.0.53 nameserver 127.0.0.53
 options edns0 options edns0
Ligne 168: Ligne 173:
 </code> </code>
  
-=== Flush DNS / Clear cache 
  
 +
 +=== Flush DNS / Clear cache
  
  
Ligne 212: Ligne 218:
  
 no-tld-query (since glibc 2.14) no-tld-query (since glibc 2.14)
 +
  
 == Pb == Pb
Ligne 217: Ligne 224:
 === Pb Résolution noms courts === Pb Résolution noms courts
  
-<code bash /etc/resolv.conf>+''/etc/resolv.conf'' 
 +<code bash>
 # options rotate timeout:1 retries:1 # options rotate timeout:1 retries:1
 # options rotate timeout:2 attempts: 1 # options rotate timeout:2 attempts: 1
Ligne 250: Ligne 258:
 Source : https://man7.org/linux/man-pages/man5/resolv.conf.5.html Source : https://man7.org/linux/man-pages/man5/resolv.conf.5.html
  
-<code bash /etc/resolv.conf>+''/etc/resolv.conf'' 
 +<code bash>
 options rotate timeout:1 retries:1 options rotate timeout:1 retries:1
 # options rotate timeout:2 attempts: 1 # options rotate timeout:2 attempts: 1
Ligne 280: Ligne 289:
 192.168.21.25 192.168.21.25
 </code> </code>
 +
  
 ==== Solution ==== Solution
Ligne 285: Ligne 295:
 Vérif avec dig / nslookup et si OK le pb est ailleurs, par exemple dans la conf **libc** Vérif avec dig / nslookup et si OK le pb est ailleurs, par exemple dans la conf **libc**
  
-<code - /etc/nsswitch.conf>+''/etc/nsswitch.conf'' 
 +<code ->
 #hosts:          files mdns4_minimal [NOTFOUND=return] dns myhostname #hosts:          files mdns4_minimal [NOTFOUND=return] dns myhostname
 hosts:          files dns myhostname hosts:          files dns myhostname
Ligne 347: Ligne 358:
 </code> </code>
  
-<code ini /etc/NetworkManager/NetworkManager.conf>+''/etc/NetworkManager/NetworkManager.conf'' 
 +<code ini>
 [main] [main]
 dns=default dns=default
Ligne 359: Ligne 371:
 DHCP DNS ? DHCP DNS ?
  
-<code ini /etc/systemd/network/enp0s31f6.network>+''/etc/systemd/network/enp0s31f6.network'' 
 +<code ini>
 [DHCP] [DHCP]
 UseDNS=true UseDNS=true
Ligne 369: Ligne 382:
 </code> </code>
  
-=== Diag port ? 
  
  
-<code python resolv.py>+=== Diag port ? 
 + 
 +''resolv.py'' 
 +<code python>
 import socket import socket
 for x in range(5): for x in range(5):
tech/notes_client_dns.1745658597.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki