Course ยท Reference
Cheat sheet
A reference for working on a domain: commands to look up records, a migration checklist and four rules to follow.
Looking up records
In the terminal on Mac and Linux:
dig example-bakery.nl A +short dig example-bakery.nl MX +short dig example-bakery.nl TXT +short dig _dmarc.example-bakery.nl TXT +short dig example-bakery.nl NS +short dig example-bakery.nl AAAA +short dig @ns1.dnsprovider.example example-bakery.nl A
The last command queries a nameserver directly. Replace the example name with your actual nameserver. Without +short, you also see the TTL and errors such as SERVFAIL.
On Windows:
nslookup -type=MX example-bakery.nl
Checklist: moving a client's website
Four rules to follow
- Register the domain in the client's name, not yours. You get access; the client remains the holder.
- Never delete a record you do not understand. Find out what it does first.
- Something not working? Compare the authoritative nameserver's answer with your resolver's answer. Check the old TTL too. Waiting will not fix a wrong record.
- Write down what you changed and when. In three months, you will not remember.