DNS in practice operates with a set of defined resource record types. They allow for different kinds of DNS resolutions to take place.
The most common resource record.
A record is used to point to certain domain name at a certain IPv4 address.
it is very similar to an A record except that it returns in IPv6 address instead of an IPv4 address.
This record is used to redirect traffic from one domain to another.
MX stands for mail exchange and this resource record is used in order to deliver e-mail to the correct server.
SRV stands for service record, and it's used to define the location of various specific services.
While MX record is only for mail services, an SRC record can be defined to return the specifics of many different service types.
TXT stands for text and was originally intended to be used only for associating some descriptive text with a domain name for human consumption.
TXT record is often used to communicate configuration preferences about network services that you've entrusted other organizations to handle for your domain.
TLD or Top Level Domain ex) .com, .org etc..
There are only a certain restricted number of defined TLDs available. Administaration and definition of TLDs is handled bt a non-profit organization known as ICANN, or the Internet Corporation for Assigned Names and Numbers.
Domain ex) facebook, google, instagran etc...
Domains are used to demarcate where control moves from a TLD name serverm, to an authoritative name server.
Subdomain ex) www
It sometimes refers to as a host name if it's been assigned to only one host.
An authoritative server is actually responsible for a specific DNS zones.
Zoens are configured through what are known as zone files, simple configuration files that declare all resource records for a particular zone.
So a zonefile has to contain an SOA.
SOA stands for Start of Authority.
This record declares the zone and the name of the name server that is authoritative for it.
You can find NS record along SOA record.
Indicates other name servers that may aolso be responsible for this zone.
These let DNS resolvers ask for an IP , and get the FQDN associated with it returned. These files are the same as zonwe files except, instead of A and quad A records, which resolve names to IPs.
PTR stands for Pointer Record, it resolves an IP to a name.