Toy 2 · five minutes

DNS, with your own hands.

You have a zone of your own, numele-tau.ro. Ask for a name and follow the question's way; change a record and see how long the resolver remembers the old answer.

The question

Your zone: numele-tau.ro

  • numele-tau.ro 3600 A 203.0.113.10
  • www.numele-tau.ro 3600 CNAME numele-tau.ro
  • numele-tau.ro 3600 MX 10 mx.posta-exemplu.ro

The resolver

Type a name and press Ask. Try desenele-sarei.ro too, or a name that doesn't exist.

DNS, with your own hands

The resolver doesn't know anyone's address in advance. It asks in turn: the root sends it to the .ro registry, the .ro registry sends it to the domain's nameservers, and they give the answer. A CNAME sends it on to another name, and it starts again.

The answer is remembered for as long as the TTL says. That's why a change in your zone isn't seen everywhere at once: whoever asked recently keeps the old answer until its TTL runs out. Try it: ask, change the record, ask again, then let an hour pass.

  • NXDOMAIN: the name doesn't exist at all.
  • No data: the name exists, but has no records of the type asked for.

More in the course

In the terminal

# ask like a resolver, step by step$ dig +trace your-name.ro# your zone, at weird$ weird dns records your-name.ro$ weird dns set your-name.ro blog A 203.0.113.30
Every command and its flags, in the documentation

Tell your assistant

„I changed my domain's A record, but some friends still see the old site. Why, and how long will it take?”