Because you just want your site on the internet.
Here’s a list of thing you might want to do with DNS and how to accomplish them.
You’ve ~~impulse purchased~~ bought a domain from one of the infinite registrars on the internet, congrats! Now you’ve got to point it to something interesting and, no, the default parked page with ads all over it does not count.
The registrar you bought the domain name from probably manages DNS as well, so that’s nice and convenient.
When you’re entering these values, you may or may not need the extra
. at the end. There’s a reason you technically need it, but most interfaces will put it there for you regardless. Start with the dot and remove it if the service complains.
I have an IP address!
You’ve spun up a server somewhere on the internet and your hosting provider gave you an IP address. Nice!
I’m old and I like www.example.com
Have you ever thought about the fact that “world wide web” takes 3 syllables to say, but everyone says “double-yew double-yew double-yew” (9 syllables) regardless?
Now that you’re appalled at the inefficiency of saying “www”, here’s how you point
www.example.com to your IP address.
A record pointing
Then create a
example.com. A my.ip.addr.ess
www.example.com. CNAME example.com.
Congrats, you did the thing.