DNS reference for records, resolvers, authoritative servers, delegation, caching and Active Directory zones.
Record types
IPv4 address for a hostname.
IPv6 address for a hostname.
A CNAME points to a name, not directly to an IP address.
Lower numeric preference is tried first.
Other useful records
Windows commands
Resolve-DnsName exemple.frShows answers, type, TTL and resolver.
Resolve-DnsName exemple.fr -Server 1.1.1.1Compares answers without changing NIC settings.
Resolve-DnsName exemple.fr -Type MXChecks mail targets and preferences.
Resolve-DnsName exemple.fr -Type TXTUseful for SPF, SaaS validations and policies.
Linux / macOS commands
dig +short exemple.fr AMinimal output for scripts or quick comparisons.
dig exemple.fr AShows flags, authority, additional records and timing.
dig @8.8.8.8 exemple.fr AQueries a specific resolver.
dig +trace exemple.frFollows root, TLD and authoritative servers to diagnose delegation.
Authority, SOA & delegation
Resolve-DnsName exemple.fr -Type SOAShows primary server, serial and zone timers.
dig +short exemple.fr NSCompare with the authoritative servers actually answering.
A secondary with an older serial may serve stale data.
Required when a nameserver is inside the delegated domain.
Cache, TTL & propagation
High TTL delays visibility of a published change.
A fix may remain hidden until negative cache expires.
ipconfig /flushdnsOnly clears the local client cache.
sudo resolvectl flush-cachesUse on systems running systemd-resolved.
Active Directory DNS
AD clients must resolve domain SRV records.
Resolve-DnsName _ldap._tcp.dc._msdcs.exemple.local -Type SRVChecks DC LDAP SRV registration.
nltest /dsregdnsAsks a DC to register its DNS records again.
dcdiag /test:dns /vRuns AD DNS diagnostics; output can be long.
Common symptoms
Check spelling, zone, delegation and negative cache.
Check DNSSEC, authoritative timeouts, loops or zone errors.
Compare resolvers and query authoritative servers directly.
Check UDP/TCP 53, firewall, routing and DNS server health.
Key points
- Avoid changing multiple critical records at once; lower TTL ahead of planned migrations.
- A domain may work for HTTP while delegation or mail DNS is still wrong.
- DNSSEC adds a validation chain; expired signatures can cause SERVFAIL.
- In Active Directory, check DNS and time before Kerberos or secure-channel troubleshooting.