Reload a CoreDNS Corefile safely and verify the new DNS answer
A small Corefile edit can change the answer a resolver gives to every client that uses it. The risky part is not typing one more host record. It is deciding whether the new configuration is valid, whether the running process actually adopted it, and whether clients are receiving the intended answer rather than an answer held in a cache.
This guide uses CoreDNS 1.14.6 to serve a small internal-style name from the hosts plugin, enable the CoreDNS reload plugin, and prove a Corefile change with a direct DNS query. The completed result is a resolver that changes app.example.test from 192.0.2.20 to 198.51.100.20 after a Corefile edit, without a manual signal or service restart. Use the documentation address ranges in this example only as placeholders; replace the name and address with values approved for the DNS zone you administer.