Score:-1

How to test DNS change on Mac before go live?

cn flag

I need to test DNS changes before updating real DNS I need to set up A records and CNAME

Any Mac software that let me do it and possibly easily switch ON / OFF?

Patrick Mevzek avatar
cn flag
Any good online tool, like DNSViz or Zonemaster, can do an "undelegated" check, that is checking any specific domain on any set of nameservers, irrespective to the current delegation.
Score:1
km flag

In general people test locally if services run correctly on their new IP-addresses by overriding the current DNS records with entries in their hosts file

That doesn't allow you to set up CNAME records of course, you will have to map all records you want to test to the IP-addresses the CNAME records would eventually resolve to, before you can enter them in a hosts file.

Don't forget to remove those entries after you're done testing.


In general I don't think people run test name servers to test DNS changes and usually simply make them in their authoritative DNS server(s) at the time they are needed, but the procedure for that would be:

  • Install the same DNS server software you would be running in production on a test server (or your workstation).
  • Configure it and copy the master zone file/data from production to your test name server.
  • Make DNS changes.
  • Test if they are effective with a DNS query, i.e. dig changed.example.com. @IP-address-of-test-nameserver.
  • Change the network settings for your OS to use the IP-address-of-test-nameserver as the preferred/only name server.
  • Test you application(s).
  • When successful:
    Make the same change(s) in production or copy the zone file to production.

Homebrew provides the Bind DNS server https://formulae.brew.sh/formula/bind , Unbound https://formulae.brew.sh/formula/unbound and others for an easy install on your Mac.

al404IT avatar
cn flag
I usually use file hosts but I did like to get something with the same exact configuration of DNS. I end up installing a small software for windows on my virtual machine.
Score:0
us flag

You could point to a non auth DNS server like Unbound, and put there some CNAMES or A records. This way you would get a 'view' of your DNS domain, then update production as needed.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.