DNS Resource Records
In this post I am laying some concepts on the DNS resource records. DNS Resource Record RR A name server contains one or more Resource Records (RR). When a DNS server is queried, it may answer with one or more resource records, depending on the type of the query. A resource record is in the following format: Name, TTL, Class, Type, rdata Name : the domain name TTL : Time to Live: the amount of time the RR can exist in a DNS server cache. This is similar to the concept of IP TTL field but not to be confused with. Class : you will almost always find this field equal to “IN”, which means INternet Type : defines the type of the RR. The most common types are: A, NS, CNAME and MX. The Type field defines what “Name” and “rdata” will be. rdata : also known as Value in some other documentation. This is the record data. Some DNS Resource Record Types We said that resource records are in the format: Name, TTL, Class, Type, rdata. If Type = A, the...