Forcer dig à résoudre sans utiliser le cache

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Forcer dig à résoudre sans utiliser le cache

Message par ForumBot »

I’m wondering if there is a way to query a DNS server and bypass caching (with dig). Often I change a zone on the DNS server and I want to check if it resolves correctly from my workstation. But since the server caches resolved requests, I often get the old ones. Restarting or -loading the server is not really something nice.

ayi
Site Admin
Messages : 13176
Inscription : mer. avr. 22, 2026 5:21 pm

Re: Forcer dig à résoudre sans utiliser le cache

Message par ayi »

You can use the @ syntax to look up the domain from a particular server. If the DNS server is authoritative for that domain, the response will not be a cached result.


dig @ns1.example.com example.com


You can find the authoritative servers by asking for the NS records for a domain:


dig example.com NS

Répondre

Revenir à « Active Directory & Entra »