A nameserver is a server that holds the DNS records for your domain and answers lookups for it — in effect, it tells the internet which server your domain points to. When you connect a domain to your hosting, you usually do it by setting the domain’s nameservers to your host’s nameservers, which is what directs visitors of your domain to your hosting server. Nameservers are a key part of how DNS works, and understanding them makes the common task of ‘pointing your domain to your host’ clear. They sound technical but the idea is simple.
This guide explains what a nameserver is, how it fits into DNS, why you set them when connecting a domain to hosting, and how to change them.
Did you know?
Setting your domain’s nameservers to your host’s is the single step that connects a domain and hosting bought separately — it is the ‘point your domain at your host’ instruction, demystified.
What a nameserver is
A nameserver is a specialised server that stores the DNS records for a domain and responds to requests asking where that domain should point. When someone’s browser looks up your domain, the query ultimately reaches the domain’s nameservers, which provide the answer — the IP address of the server hosting the site.
So a nameserver is the authority for a domain’s DNS information. Every domain has nameservers assigned to it, and those nameservers hold the records that determine where the domain and its email are directed. They are a core piece of the DNS system that connects domain names to actual servers.
How nameservers fit into DNS
DNS (the Domain Name System) is the internet’s address book, translating domain names into server IP addresses. Nameservers are the part of DNS that actually holds and serves a specific domain’s records. When a lookup happens for your domain, DNS directs the query to your domain’s nameservers, which return the relevant record.
So the relationship is: DNS is the overall system, and nameservers are the servers within it that are responsible for your particular domain. Whoever controls your domain’s nameservers controls where the domain points, which is why setting the right nameservers is how you connect your domain to your hosting.
Why you set nameservers for hosting
When you register a domain and get hosting, you need to connect them so that your domain points to your hosting server. The most common way to do this is to set your domain’s nameservers to your host’s nameservers. This hands DNS control for the domain to your host, so its nameservers direct visitors to your hosting server.
This is exactly what the setup instruction to ‘point your domain to your host’ usually means: change the domain’s nameservers to the ones your host provides. Once set (and after DNS propagation), your domain resolves to your hosting, and your site loads. If your domain and hosting come from the same provider, this is typically done for you automatically.
What nameservers look like
Nameservers are usually given as addresses like ns1.yourhost.com and ns2.yourhost.com — hosts typically provide at least two for redundancy. Your host will tell you its nameservers, and you enter these where your domain is managed (at your domain registrar) to point the domain at that host.
You do not need to understand the technical details of what the nameserver addresses mean — you simply copy the ones your host gives you into your domain’s settings. The pair (or more) of nameserver addresses is all you need to make the connection. It is a copy-and-paste task rather than anything you have to configure deeply.
Pro Tip
Your host provides its nameservers (usually two, like ns1 and ns2). To connect your domain, log in where the domain is registered, find the nameserver setting, and replace what is there with your host’s nameservers — then wait for DNS to propagate.
How to change nameservers
Changing nameservers is done at your domain registrar — the company where the domain is registered, which may or may not be the same as your host. You log in to the domain’s management area, find the nameserver settings, and replace the existing nameservers with the ones your host provided.
After saving, the change goes through DNS propagation, which can take from minutes to about a day to take full effect everywhere. Once complete, your domain points to your host. So the process is straightforward: get your host’s nameservers, enter them at your registrar, and wait for propagation. It is the standard way to connect or move a domain to a host.
Nameservers and moving hosts
Nameservers are also central to moving your site to a new host. Once your site is set up on the new host, you point the domain to the new host by changing its nameservers to the new host’s, and after propagation, visitors reach the new server. This nameserver switch is the final step that makes a migration go live.
So whether you are connecting a domain for the first time or moving to a new host, nameservers are the mechanism that directs your domain to the right server. Understanding that nameservers hold your domain’s DNS and determine where it points makes both setup and migration clear: you are simply telling the domain which server, via its nameservers, to send visitors to.
Ready to put the theory into practice?
Hostinger makes the technical side simple — one-click WordPress, free SSL and domain, a clean control panel, and 24/7 support — so you can build without wrestling with the jargon. From a few dollars a month; use code PROTIPS for the reader discount.
FAQs
What is a nameserver?
A nameserver is a server that holds the DNS records for your domain and answers lookups for it, telling the internet which server your domain points to. Every domain has nameservers assigned, and they hold the records that determine where the domain and its email are directed. They are a core part of DNS.
How do nameservers fit into DNS?
DNS is the internet’s overall address book, and nameservers are the servers within it responsible for a specific domain’s records. When a lookup happens for your domain, DNS directs it to your domain’s nameservers, which return the answer. Whoever controls the nameservers controls where the domain points.
Why do I set nameservers for hosting?
To connect your domain to your hosting server. Setting your domain’s nameservers to your host’s hands DNS control to the host, so its nameservers direct visitors to your hosting. This is what ‘point your domain to your host’ usually means. If domain and hosting come from one provider, it is often done for you.
What do nameservers look like?
They are usually addresses like ns1.yourhost.com and ns2.yourhost.com — hosts typically provide at least two for redundancy. Your host tells you its nameservers, and you enter them where your domain is managed. You just copy the ones your host gives you; it is a copy-and-paste task.
How do I change my nameservers?
At your domain registrar (where the domain is registered). Log in to the domain’s management area, find the nameserver settings, and replace the existing ones with those your host provided. After saving, DNS propagation takes from minutes to about a day for the change to take full effect.
Do nameservers matter when moving hosts?
Yes — switching nameservers is usually the final step of a migration. Once your site is set up on the new host, you point the domain to it by changing its nameservers to the new host’s. After propagation, visitors reach the new server. It is the mechanism that makes a host move go live.
The bottom line
A nameserver is a server that holds your domain’s DNS records and answers lookups, telling the internet which server your domain points to. It is the part of DNS responsible for your specific domain, and whoever controls it controls where the domain leads — which is why setting the right nameservers is how you connect a domain to hosting.
In practice, connecting or moving a domain means getting your host’s nameservers (usually a pair like ns1 and ns2), entering them at your domain registrar, and waiting for DNS to propagate. That is the whole of the ‘point your domain to your host’ step. Understand that nameservers direct your domain to the right server, and both setting up and migrating a site become simple, clear tasks.
When you are ready, you can start with Hostinger and use code PROTIPS for the reader discount. A nameserver holds your domain’s DNS and points it to your server — set your host’s nameservers to connect the two.