In the last post we talked about some common DNS records. There’s more DNS records to talk about but we’re going to only talk about the common ones. This is a good thing, because there’s 39 of them. We could be talking about more DNS records for quite some time.
Suppose you have a domain, let’s call it rhodey.example.com. We know that rhodey.example.com is always going to do what the domain tonystark.example.com does. So if we change tonystark.example.com’s IP address, we have to and change the IP address for rhodey.example.com.
We’re lazy though, we don’t want to have to do that every time. Plus, fumble fingers me could get the IP address wrong for rhodey.example.com. Instead, I’ll use the CNAME record. That’s the record that let’s one domain say ‘hey, what that domain over there is doing, I want to do.’
There’s no rule that a CNAME record has to exist. We can find them using:
Alpha:~ computerlamp$ host -t CNAME google.com google.com has no CNAME record
There’s nothing there! Well, I said there’s no rule that something had to be there, and nothing’s there. You should try it with some of your favorite domains and see if they have a CNAME.
The next record we’re going to talk about (and the final one, for now) is the TXT record. That’s read as ‘text’. It was meant for human readable information to be stored in DNS, but these days it’s most often used for machine readable information. Which is kind of boring.
Let’s try one out:
Alpha:~ computerlamp$ host -t TXT akamaihd.net akamaihd.net descriptive text "This" "is" "not" "the" "nameserver" "you" "are" "looking" "for."
Aww, and I was looking for Artoo Detoo.
TXT records aren’t required either. Look what happens when I try:
Alpha:~ computerlamp$ host -t TXT theavengers.com theavengers.com has no TXT record