tech:notes_client_dns
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:notes_client_dns [2025/04/26 11:09] – Jean-Baptiste | tech: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 / | ||
| Ligne 141: | Ligne 144: | ||
| - | <code ini / | + | '' |
| + | <code ini> | ||
| DNS=1.1.1.1 1.0.0.1 | DNS=1.1.1.1 1.0.0.1 | ||
| </ | </ | ||
| Ligne 151: | Ligne 155: | ||
| </ | </ | ||
| - | <code bash / | + | '' |
| + | <code bash> | ||
| nameserver 127.0.0.53 | nameserver 127.0.0.53 | ||
| options edns0 | options edns0 | ||
| Ligne 168: | Ligne 173: | ||
| </ | </ | ||
| - | === 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 / | + | '' |
| + | <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:// | Source : https:// | ||
| - | <code bash / | + | '' |
| + | <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 | ||
| </ | </ | ||
| + | |||
| ==== 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 - / | + | '' |
| + | <code -> | ||
| # | # | ||
| hosts: | hosts: | ||
| Ligne 347: | Ligne 358: | ||
| </ | </ | ||
| - | <code ini / | + | '' |
| + | <code ini> | ||
| [main] | [main] | ||
| dns=default | dns=default | ||
| Ligne 359: | Ligne 371: | ||
| DHCP DNS ? | DHCP DNS ? | ||
| - | <code ini / | + | '' |
| + | <code ini> | ||
| [DHCP] | [DHCP] | ||
| UseDNS=true | UseDNS=true | ||
| Ligne 369: | Ligne 382: | ||
| </ | </ | ||
| - | === Diag port ? | ||
| - | <code python | + | === Diag port ? |
| + | |||
| + | '' | ||
| + | <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
