DNS stands for Domain Name System. This system ensures that all domain names are converted to IP addresses and vice versa. (From IP address to domain name.) You can think of hostnames, subdomains and domain names. But DNS actually does much more than just converting. The DNS also stores a lot of data about the domain name such as IP addresses and the names of mail servers, for example. These are also called records. Below is an overview of the DNS of a domain name:
The A record is actually a reference from an internet address to an IP address. For example, if you created 'DangerHost' as an A record, then dangerhost.yourdomain.com will point to the entered IP address.
The AAAA record has the same operation as an A record, however it relates to an IPV6 address. An A record relates to IPV4.
NS stands for Nameserver and with this record you specify the nameservers of your domain name. Each domain has at least two NS records. These NS records should match the nameservers used for the domain in the customer panel of the hosting provider.
In the special TXT record it is possible to add an informative value which is often very important for email. You can think of certain information about a domain name, contact information or hosting provider. Often the sending party of email is validated and this party may send email via @domainname.com.
MX stands for Mail Exchanger and these records tell where mail traffic should be delivered. You don't enter an IP address here but a hostname, or for example an A record. These records can refer to the same server as the web server but it can also be an exchange server of a company. In our case, often the MX record mail is created. Then there also exists an A record called mail, which again points to the IP address of the web server.