Questions tagged [nameserver]

A nameserver is a specific server that is able to use the DNS (Domain Name System) protocol to answer queries about hostnames to reply back with IP addresses, among other mappings.

A nameserver implements the DNS protocol (RFC1034, RFC1035 and numerous others). The DNS protocol allows, among other things, to map hostnames as used by humans (for example in an URL) to IP addresses as used by computers to find a server on the internet. A DNS query to one nameserver is often the first step that will happen for any activity online.

A nameserver can have two very different roles:

  • authoritative: it holds all information about a given zone, and is the final authority on everything in the zone; it is publicly accessible and will only respond positively to requests about names in the zones it manages; each domain name has a small fixed set of nameservers, typically between 2 to 5, sometimes more, and all of them will be queried getting on average the same number of queries each (load balancing); a domain name lists the name of its authoritative nameservers.
  • recursive: it is able to resolve any name by following a recursive algorithm starting from the root, to find authoritative nameservers at each label of the name being queried; it can be installed on each client computer (in that case it only replies to queries from the host), or the host can use the ones provided by its ISP (that will reply only to queries from clients of the ISP), or some big open ones (like those offered by Google, CloudFlare, Quad9, etc.); a given computer typically uses only one recursive nameserver, sometimes two for failover (second one will only be used if first one does not reply at all); it is configured with the IP address of the recursive nameserver it wants to use.

Some software (ex: bind) is able to be configured in both roles at the same time, or either one, where other software are only for recursive nameservers (ex: unbound) or only authoritative (ex: knot).

For security reasons, it is better not to have the same software doing both roles at the same time.

209 questions
33
votes
2 answers

Can I use different nameservers for different subdomains?

Suppose I have example.com and the nameserver I'm using is the one from the hosting server where I'm hosting the main site, say mainhosting.com. Now suppose I add a new subdomain e.g. bla.example.com which I'm hosting somewhere else, say at…
RocketNuts
  • 564
  • 1
  • 5
  • 12
17
votes
6 answers

How do shared hosting providers know you own a domain when you point the DNS to their server?

I recently set a server up on Digital Ocean. The process of pointing the domain to Digital Ocean name servers was as easy as updating them on the registrar's website, and just adding them to my server. How did Digital Ocean verify I owned the…
Mav
  • 273
  • 2
  • 5
15
votes
1 answer

Why do I need at least two nameservers?

I own several domains, all hosted with Northhosts, but however I register my domains at GoDaddy (since they're cheaper). When I receive my 'New Account Information' email from Northosts, they always supply two domains, and GoDaddy always wants me to…
AStopher
  • 233
  • 3
  • 15
14
votes
3 answers

How does DNS detect changes in nameserver IP address?

Suppose I have a domain such as example.com and I configure the domain's primary and secondary nameserver to be ns1.example2.com and ns2.example2.com. Questions: Does the IP address of the nameservers get retrieved and stored in the registry's…
neodymium
  • 317
  • 3
  • 7
10
votes
2 answers

How long does propagation of newly registered private name servers typically take?

I have an account with Hostgator, and have registered private name servers (ns1.mydomain.com and ns2.mydomain.com). How long should I expect to wait for those changes to take place? Should my website be unavailable during that time?
Travis Northcutt
  • 1,576
  • 2
  • 16
  • 27
10
votes
3 answers

How the name server is resolved if its from the same domain?

My understanding is, if I browse to example.com, first my computer will ask the root nameservers about the .com TLD nameservers, and it will be given the IP address of the .com TLD nameservers. Once it has the .com TLD nameservers, then it asks one…
9
votes
3 answers

What nameservers should I use for GitHub Pages when using a custom domain?

I am using a custom domain for a GitHub Pages site. They said to set CNAME or A record. But what nameservers should I use? What is the default, or should I leave it blank?
Hein Zaw Htet
  • 91
  • 1
  • 1
  • 2
9
votes
3 answers

What is the recommend procedure for changing nameservers with DNSSEC enabled?

Do I need to disable the DNSSEC DS record and DNSSEC, let that propagate, and then change nameservers only after that has well propagated?
dyasta
  • 251
  • 2
  • 8
6
votes
3 answers

Which is better between changing Nameservers and changing DNS "A" Records?

I have my hosting on Godaddy and domain on another server. So I was thinking which would be a better option to point the domain to Godaddy hosting Change the name server to that of godaddy. Change the DNS "A" Record on the site where I have bought…
javangelo
6
votes
2 answers

Using one IP for Nameserver like NS1 and NS2

Please I like to know why I can't use my one IP on my nameserver like: ns1.mydomain.com = 67.111.78.12 ns2.mydomain.com = (but the IP could be assigned here)
Luis Yang
  • 81
  • 1
  • 1
  • 2
6
votes
1 answer

Nameserver problem

I recently bought a new VPS, and I was trying to set private nameservers in my domain cPanel. I went ahead and added 4 A records: ns1.mydomain.com - points to my IP ns2.mydomain.com - points to my IP www.mydomain.com - points to my IP mydomain.com…
CrazyCodeZ
  • 61
  • 1
  • 3
6
votes
3 answers

Will Changing My Websites Static IP Address cause any DNS issues?

I've decided to downgrade my hosted server since migrated my eCommerce website to Shopify. Nothing important is actually hosted on the server. The only critical thing would be the domain DNS records pointing to the Shopify site. Due to the server…
Wisco84
  • 61
  • 3
5
votes
4 answers

Nameservers and DNS - Appropriate Steps to Move to A VPS?

I bought a VPS and I am trying to transfer my domain over to the new server, I took two steps so far, but I don't think I did it quite right as its been 24 hours and most all DNS check sites still indicate errors with my name-servers. Here is what I…
Necro.
  • 151
  • 1
  • 3
5
votes
2 answers

Are webhosts that require NS instead of a CNAME common?

I've just signed up with a webhost (which I prefer not to name) and I'm reasonably happy with it. The only nit was when I was ready to put a site online and I asked the support line to what name I should point my 'www' CNAME to. They responded that…
billpg
  • 323
  • 2
  • 7
5
votes
2 answers

Changing hosting for a domain but keeping email

I’m a web designer with minimal knowledge about DNS records etc. I have a client who currently has a domain registered with LCN. They also have their email provided by LCN and they currently have a wordpress.com website. They now want a new website…
mallo82
  • 51
  • 1
  • 1
  • 2
1
2 3
13 14