If you’ve ever had to configure a domain name or move a website from one hosting provider to another, you’ve probably come across nameservers. You may have wondered: ‘What exactly are they? How do they work? And how do I know if everything is configured correctly?’ Don’t worry, here at Hostingfy we’ll explain everything in a simple and practical way. We’ll look at what a nameserver is, how it works, what it’s used for, and how you can check that it’s working properly.
What is a nameserver?
Nameservers are a fundamental part of how the Internet works, but they often go unnoticed or are confused with other parts.
Definition
A nameserver is a type of DNS (Domain Name System) server that translates domain names (such as www.tuosito.it
) into IP addresses, which are the numerical identifiers of machines connected to the Internet. In practice, every time you type a URL into your browser, your computer contacts a nameserver to find out which IP address corresponds to that name.
What are they used for
Their purpose is to allow users to reach a website by typing in an easy-to-remember name, instead of having to enter a long string of numbers. The nameserver therefore represents the link between the domain and the hosting, i.e. the space where your website is hosted.
Where are they located
Usually, nameservers are managed by the hosting provider (such as Hostingfy) or by the domain registrar. Each domain has one or more nameservers (usually at least two) that work in pairs to ensure reliability and continuity of service.
How a nameserver works in DNS
Now that we’ve seen what a nameserver is, let’s get to the heart of the matter: how does it work? Let’s see how it fits into the domain name resolution process.
Its role in the DNS system
The Domain Name System (DNS) is like a giant phone book for the Internet. When you type www.google.com
, your device queries the DNS to find out which IP address it needs to connect to. Nameservers participate in this communication chain and are responsible for managing the DNS zones associated with a specific domain.
DNS resolution step by step
Here’s a quick overview of what happens when you browse a website:
- The browser asks the DNS system for the domain’s IP address.
- The DNS resolver (usually provided by your Internet service provider) contacts a root server.
- The root server points to an authoritative nameserver for the top-level domain (such as
.it
or.com
). - This points to the nameservers for the specific domain.
- The nameserver responds with the correct IP address.
- The browser connects to the website via that address.
All this happens in a fraction of a second and no one notices.
Authoritative vs non-authoritative nameservers
Another important concept is the distinction between authoritative and non-authoritative nameservers. The former are those that directly manage DNS information for a specific domain, while the latter are more like “messengers” that collect and transmit information from other sources.
How to check a domain’s nameservers
Let’s get to the practical part: do you want to know which nameservers are associated with your domain, or do you want to check if the configuration is correct? There are several ways to do this, even without being a programming expert.
Why check
Checking your nameservers allows you to:
- Understand if the domain is active and correctly pointed to the hosting.
- Diagnose connection or DNS propagation problems.
- Manage a site migration without interruption.
- Ensure that everything is configured according to your provider’s best practices.
How to check them online
The easiest way to check is to use one of the many free online tools. Here are some reliable ones:
- Whois Lookup (such as
whois.domaintools.com
orwhois.net
): shows the nameservers currently assigned to a domain. - DNS Checker (dnschecker.org): useful for seeing if the configuration has propagated correctly worldwide.
- IntoDNS (intodns.com): provides a comprehensive technical overview, including errors and warnings.
- MXToolbox: also useful for advanced checks, such as MX and SPF records.
Just enter your domain and the tool will return the active nameservers, their response, and other useful details.
Check them from the terminal
If you are more familiar with using a PC, you can also use your PC’s terminal. Here are two useful commands:
- On Windows: nslookup -type=NS yourdomain.it
- On macOS/Linux: dig NS yourdomain.it
These commands show the nameservers configured for the domain. This is useful if you don’t want to use online tools.
What to do if the nameservers are incorrect
If you notice that the nameservers are incorrect, or if your website is not accessible, you probably need to take action. Here’s how to proceed:
- Log in to the control panel of your registrar (where you registered the domain)
- Go to the ‘DNS Management’ or ‘Nameserver’ section.
- Replace the nameservers with the correct ones provided by your hosting provider (such as Hostingfy)
- Save the changes and wait for the DNS propagation (which can take from a few hours to 48 hours). Waiting for propagation means waiting for the DNS to update on all servers around the world.
More to know
Some additional information about nameservers.
How many nameservers do you need to set up?
Usually, you set up at least two nameservers: one primary and one secondary. This is to ensure redundancy and stability. If the first one does not respond, the second one takes over. Some providers also offer 3 or 4 nameservers.
Custom nameservers: what are they?
Some hosting providers (especially for brands or more advanced projects) allow you to set up custom nameservers, such as ns1.yourdomain.it
. This gives you more control and can help build a professional identity.
DNS propagation
Every time you change nameservers, you need to consider the propagation time. This process can take from a few hours to a couple of days, depending on your provider and your local DNS cache. During this time, your website may not be visible everywhere.
Conclusions
At this point, you should have a clear idea of what a nameserver is, how it works and how to check it. Although it may seem like a technical topic at first glance, it is actually a fundamental element for the visibility of your website.
Knowing how to check and configure them correctly enables you to avoid downtime, manage migrations with peace of mind and resolve any DNS issues without having to rely entirely on technical support. If you have a website or manage multiple domains, learning how to perform these checks will save you time… and problems!
Still have questions about nameservers? Contact Hostingfy for support.