DNS & nameservers simply explained | Make the right settings & avoid problems
DNS is the abbreviation for Domain Name System. DNS is one of the most important components of the Internet for us humans. It is used to register domains. Connect domains with hosting- and email servers.
Without the DNS, you or every visitor would have to enter the IP address of your server (e.g. 126.96.36.199) to access your website. With the help of the DNS, you can also reach the website via the domain name (e.g. alldomains.hosting).
We'll show you how to make the right settings
Table of Contents:
Understanding Domain Name System:
- Why do we need the DNS?
- Domain Name System - the phone book of the Internet?
- The components of DNS
- The exact procedure when calling a website
Manage DNS settings:
- What are the settings? Which ones should I make?
- The most important DNS entries explained
- Order nameserver services
- Edit nameservers & DNS records at alldomains.hosting
- How do I fix errors at DNS settings
- Automatically use alldomains.hosting nameservers
- What are the alldomains.hosting nameservers
- Where can I find the IP address of my hosting package?
- How long does it take for the changes to the nameserver settings to become active?
- Operate externally registered domain with hosting package from alldomains.hosting
Why do we need the DNS?
Every device connected to the Internet is assigned its own address, similar to houses. With the so-called IP addresses, computers, smartphones and also the servers on which websites & e-mails are operated, can communicate with each other.
For example, if you want to call a website with your computer, you must dial the IP address of the responsible server. You can reach our website at the following address: 188.8.131.52
For humans, names are easier to remember than sequences of numbers. That is why domain names were invented. These make it possible to call up a website not only by IP address, but also by name. But how does a computer know which IP address is behind which domain? This is where the DNS comes into play.
Domain Name System - the phone book of the internet
For simplicity, you can think of the DNS as a worldwide directory assistance:
- You make a request [with the browser] to this directory assistance [at the DNS].
- This directory assistance has access to a collection of all telephone directories [the DNS servers] distributed worldwide.
- The respective names [domains] with the corresponding data [DNS entries] are stored in the individual telephone directories.
- The respective telephone numbers [IP addresses] are stored in the entries.
- The directory assistance transmits you [your browser] the searched phone number [IP address] and you can reach the desired person [website] with it.
The components of the DNS
The DNS is made up of name servers & the DNS records. The responsibilities are as follows:
- First you define which name servers should be responsible for your domain.
- Then you enter the DNS entries in the name server.
- With the DNS entries you specify, for example, which web server and mail server should be responsible for your domain.
What are name servers?
The DNS is made up of name servers (also known as DNS servers) distributed around the world. As a website owner, you have to enter your domain in a nameserver in order to use it for websites and e-mails.
You can use any nameserver you like. Usually, the nameservers of the respective provider are automatically entered when you register your domain.
However, your website will not work with the nameservers alone. You must specify the DNS entries in the nameserver. These contain the information relevant for your website and e-mails.
What are DNS records?
DNS entries are similar to entries in the telephone book. Usually, there are several entries for a domain. These entries contain, for example:
- the IP address of the web server where the web page associated with the domain name is stored.
- the IP address of the mail server responsible.
When you enter a domain, the DNS returns the IP address of the web server. Your browser can then access the website with this address.
There are several different types of DNS entries. Each type is responsible for a different task. All DNS record types are described below.
The exact process of calling a website
In principle, the DNS works in such a way that when a domain is called up, the DNS record is searched, which returns the IP address of the responsible web server.
- So you enter a domain name in the browser.
- Then the browser checks if it has called the page before and has the corresponding DNS record locally in the cache.
- If this is not the case, the browser makes a request to the DNS server(also called name server) of your ISP. If this DNS server has the IP address stored, it returns the IP address to your browser and it can access the website.
- It is also possible that your ISP's DNS server has not saved the entry. Since there are so many websites, not every server can store all entries. The DNS server then makes a request to another of the DNS servers distributed around the world. This continues until one DNS server has stored the entry.
- Then the entry is returned in the same order. Each DNS server that made a query in this process stores the record.
- Finally, the IP address is passed to your browser and it can access the desired web page.
What are the settings? Which ones should I make?
In general, DNS settings are relevant for website & email operators. You typically make the first settings when you register a domain name.
You can't do anything with the domain name alone. To run websites or emails, you also need a hosting package that provides you with storage space and computing power on a server.
To connect the domain and the hosting now the DNS comes into play. First you define the responsible name servers. Then, in the DNS entries, enter the IP address of your hosting package.
Note: If you want to register domain & Hosting with the same provider, usually the DNS settings are made automatically.
At alldomains.hosting this is the default case. The settings then look like described in the next step.
Make default DNS settings:
1. set the nameservers
The nameservers belong first.
If you manage your domain at alldomains.hosting you can automatically load our nameservers. The settings will then look like the screenshot below.
But you can also enter any nameservers from other providers.
2. Create DNS records
For the basic setup, you usually need to create 4 DNS records. 2 for the website and 2 for your emails.
Before you get started you need to find out the IP address of your hosting package
Create 2 entries for the website:
Create 2 entries for the emails:
It will look like this (the IP address in this example is 184.108.40.206):
The most important DNS records explained:
There are different types of DNS records. Each type is responsible for a different task.
The most important ones are:
Type A Record
In order to use your domain for a website, you need to set a Type A Record. This points your domain to the server of your hosting package. To do this, simply enter the IPv4 address of your hosting server. You can easily find out the IP address of your server.
Examples of A entries:
An A entry that points the main domain "example.tld" to the IP address 220.127.116.11. The "@" serves as a wildcard:
An A entry that points the subdomain "www.beispiel.tld" to IP address 18.104.22.168:
An A entry that points the subdomain "store.example.tld" to IP address 22.214.171.124:
An A entry that points every subdomain ("wildcard") for which no separate entry exists to the IP address 126.96.36.199:
Type AAAA Record
This type is often called "quad-record". It has the same purpose as the A record. The only difference is that the AAAA record is used for hosting servers with IPv6 addresses.
Example AAAA entries:
An AAAA entry that points the main domain "example.tld" to the IPv6 address fd1e:9fad:b2c1:6771::1. The "@" serves as a wildcard:
Type MX Record
If you want to run email with your domain, you need to use the MX Record.
With the MX record you specify the address of your mail server. Additionally you need an A record which resolves the address to the correct IP address. You can easily find out the IP address of your server..
Example of an MX Record:
An MX record that points the domain to the mail server "mail.example.tld". One usually sets the priority as 10:
|@||MX||Target: mail. example.tld|
In addition, you need the A entry that points the mail server address "mail.example.tld" to the correct IP address e.g. 188.8.131.52:
Type CNAME record
CNAME records are used for domain forwarding. You specify a different domain as a value, this will be redirected to this domain. If a CNAME record is set, only TXT records are allowed in the remaining DNS records.
Example of CNAME records:
A CNAME record that points the main domain "www.beispiel.tld" to the domain "example2.tld".
Type TXT record
The TXT Record can be used to store any text in the DNS zone. In practice, it is mostly used to:
- provide sender policy framework (SPF) information .
- confirm domain ownership in order to use it with external services (e.g. Google Search Console)
Example TXT entries:
A TXT record to use your domain in Google Search Console. The "Site Verification Code" is provided to you in the Google Search Console. You simply enter this into the TXT record:
Time to Live (TTL)
When a request is made for a domain, each name server that has been searched for the DNS record up to that point stores the particular record. For future queries, this can then respond directly.
The Time to Live is the time (in seconds), how long the entry is cached. If a DNS entry is edited, one must wait thus the TTL, until the changes are taken over on all name servers.
Order nameserver services
At alldomains.hosting you can order free nameserver services for every domain. First log in to your customer center. Then select the menu item "Order" and then "order new zone only".
Edit nameserver & DNS records at alldomains.hosting
You can edit the domain's nameservers in the Customer Center. So log in to your customer center first.
Select the menu item "Services". Then filter left for "Domains" and move the mouse over the domain name. After that, select the "Change Nameservers" link in the side menu to edit them.
Edit DNS records:
You can edit the DNS records of the domain in the customer center. So log in to your Customer Center first.
Select the menu item "Services". Then filter on the left for "Name server services" and move the mouse over the desired service. After that, select the "Edit Zone Entries" link in the side menu.
How do I troubleshoot DNS settings?
If your site is unreachable, it could be due to DNS settings. If you want to fix a DNS settings error, the easiest way is to check all your DNS entries for errors and reset incorrect entries.
Which entries must be correct in the basic setting we have explained above in the item "Which settings are there and which ones should I make?".
Make sure you set the entries correctly right away, as it can take up to 24h for the changes to be applied by all nameservers worldwide.
Check current DNS entries
The DNS lookup allows you to query the current DNS entries and check whether changes to the DNS entries have already been adopted:
Check DNS records for correctness using the Domains module
If you get your hosting package from alldomains.hosting you can easily check the DNS settings for correctness.
Log in to the Control Panel and open the "Domains" module. Then select "Action" -> "DNS Check" for the desired domain.
Here you can see if the entries are correct and which server IP address you have to use:
If the DNS configuration is incorrect/absent, the errors will be highlighted and the settings you need to set instead will be displayed:
Automatically use alldomains.hosting nameserver
When you register a new domain and order a hosting package, the alldomains.hosting nameservers are automatically entered and the correct DNS records are set.
In case of a domain transfer you can choose if you want to use the alldomains.hosting nameservers after the transfer.
What are the alldomains.hosting nameservers?
The alldomains.hosting nameservers are:
Where can I find the IP address of my hosting package?
You can find the IP address of your hosting package in the Customer Center. In the first step log in to the Customer Center.
Select the menu item "Services". Then filter on the left for "Storage packages" and move the mouse over the desired package. Then select the "View details" link in the side menu.
At the bottom you can see the nameservers & IP addresses for web & mail servers:
How long does it take for the name server settings changes to become active?
At alldomains.hosting the DNS changes are applied in a few minutes. However, it can take up to 24 hours for the changes to become active on all nameservers worldwide.
Tip: if the changes are not yet active with your current Internet connection, you can check, for example, via the mobile data on your smartphone, and whether the changes are already effective at the DNS server queried there.
Operate externally registered domain with hosting package from alldomains.hosting
First, in the alldomains.hosting customer zone, find the IP address of your hosting package.
Next, in the DNS administration from your domain registrar, enter the basic settings for website hosting and/or email hosting.