tech:notes_serveur_dns_unbound
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:notes_serveur_dns_unbound [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:notes_serveur_dns_unbound [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Notes serveur DNS Unbound | ||
| + | |||
| + | Voir : | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | Voir aussi : | ||
| + | * [CoreDNS](https:// | ||
| + | |||
| + | |||
| + | Exemple sur RedHat | ||
| + | |||
| + | Fix Unbound is very slow to start | ||
| + | |||
| + | `/ | ||
| + | ~~~bash | ||
| + | DISABLE_UNBOUND_ANCHOR=yes | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Conf Unbound en resolveur avec Cache DNS | ||
| + | |||
| + | `/ | ||
| + | ~~~yaml | ||
| + | server: | ||
| + | #verbosity: 1 | ||
| + | # | ||
| + | # | ||
| + | |||
| + | interface: 127.0.0.53 | ||
| + | #interface: ::0 | ||
| + | |||
| + | # | ||
| + | # | ||
| + | do-ip4: yes | ||
| + | do-ip6: no | ||
| + | #do-tcp: yes | ||
| + | |||
| + | access-control: | ||
| + | # | ||
| + | # | ||
| + | cache-max-negative-ttl: | ||
| + | #prefetch: yes | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | |||
| + | forward-zone: | ||
| + | name: " | ||
| + | forward-addr: | ||
| + | forward-addr: | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | unbound-checkconf | ||
| + | systemctl enable --now unbound.service | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Conf autres | ||
| + | |||
| + | no-aaaa | ||
| + | |||
| + | Voir : https:// | ||
| + | |||
| + | |||
| + | ## Administration | ||
| + | |||
| + | Source : https:// | ||
| + | |||
| + | Verify configuration | ||
| + | ~~~bash | ||
| + | unbound-checkconf | ||
| + | ~~~ | ||
| + | |||
| + | Unbound Status | ||
| + | ~~~bash | ||
| + | unbound-control status | ||
| + | ~~~ | ||
| + | |||
| + | List Forwards | ||
| + | ~~~bash | ||
| + | unbound-control list_forwards | ||
| + | ~~~ | ||
| + | |||
| + | Lookup on Cache | ||
| + | ~~~bash | ||
| + | unbound-control lookup youtube.com | ||
| + | ~~~ | ||
| + | |||
| + | Dump Cache | ||
| + | ~~~bash | ||
| + | unbound-control dump_cache > dns-cache.txt | ||
| + | ~~~ | ||
| + | |||
| + | Restore Cache | ||
| + | ~~~bash | ||
| + | unbound-control load_cache < dns-cache.txt | ||
| + | ~~~ | ||
| + | |||
| + | Flush Cache | ||
| + | ~~~bash | ||
| + | # Flush Specific Host | ||
| + | unbound-control flush www.youtube.com | ||
| + | |||
| + | # Flush everything | ||
| + | unbound-control flush_zone . | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ### Diag | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | Increase logged verbosity only runtime | ||
| + | ~~~bash | ||
| + | unbound-control verbosity 3 | ||
| + | ~~~ | ||
| + | |||
| + | Print operational statistics numbers. | ||
| + | ~~~bash | ||
| + | unbound-control stats | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | Print used root server hints | ||
| + | ~~~bash | ||
| + | unbound-control list_stubs | ||
| + | ~~~ | ||
| + | |||
| + | Print contacted servers details. Useful to read how fast they respond and what features they support. | ||
| + | ~~~bash | ||
| + | unbound-control dump_infra | ||
| + | ~~~ | ||
| + | |||
| + | Test DNSSEC status of host | ||
| + | ~~~bash | ||
| + | unbound-host -rv example.net -D | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Autres | ||
| + | |||
| + | |||
| + | Essaie de surcharger la conf / | ||
| + | |||
| + | `/ | ||
| + | ~~~yaml | ||
| + | server: | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | #prefetch: no | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | ~~~ | ||
| + | |||
