If you have a web hosting account, you’ve probably come across mentions of nameservers. Nameservers are provided by web hosts, and they’re key to your website being visible on the web.
What Is a Nameserver?
Every website in existence has an IP address, which is how computers look them up. But to make it easier on us humans, we can get to websites by using domain names instead.
Nameservers are part of DNS, which stands for “Domain Name System.” The DNS is a database that works like a phone book for computers: it converts a domain name, such as “www.example.com,” to a machine-readable IP address, such as “x.x.x.x” The DNS is maintained by several organizations, including IANA (Internet Assigned Numbers Authority) and ICANN (Internet Corporation for Assigned Names and Numbers).
Whenever you type a domain into your browser, nameservers provide the IP address of the domain to your browser. If the DNS didn’t exist, you’d have to memorize strings of numbers for every website you wanted to visit.
In a nutshell, a nameserver is any server that has DNS software installed on it. But usually, “nameserver” refers to a server owned by a web host that is specifically used to manage the domain names associated with their web hosting customers.
When it comes to your own domain, your domain’s nameservers are used to point any traffic that types in your domain name to a specific web server at a specific web host.
Here’s how it would work when you visit your own website, let’s say www.example.com:
- You type “www.example.com” into your browser.
- Your browser uses DNS to look up the nameservers for www.example.com.
- The nameservers ns1.yourhostdomain.com and ns2.yourhostdomain.com are retrieved.
- Your browser uses the nameservers to look up the IP address for www.example.com.
- Your browser gets the response: “x.x.x.x”
- Your browser sends a request to x.x.x.x, including the specific page you’re trying to reach.
- The web server hosting your website sends the requested page to your browser.