Domains and DNS
How to register a domain name
Learn how to register a domain name: choose a registrar, give accurate contact details, and understand renewal, free domain and transfer rules.
· Mateo Cardenas
There is no formal definition of "DNS server", but RFCs generally assume it is an Internet server that listens for queries and sends responses using the DNS protocol.1, source 1 Authoritative servers and recursive resolvers are both often called DNS servers and name servers, even though they serve different roles.1, source 1
DNS (Domain Name System) is a hierarchical and decentralized naming system for Internet-connected resources.2, source 2 The most prominent function of DNS is translating human-friendly domain names, such as mozilla.org, to a numeric IP address, and this mapping is known as a DNS lookup.2, source 2 In past RFCs, DNS servers are sometimes called name servers, nameservers, or just servers.1, source 1 The terms DNS server and name server require context to understand which services are being provided.1, source 1
Name servers are server programs that hold information about the domain tree's structure and set information.3, source 3 Resolvers are programs that extract information from name servers in response to client requests.3, source 3 In general, a particular name server has complete information about a subset of the domain space, plus pointers to other name servers that can lead to information from any part of the domain tree.3, source 3 Nameservers are DNS servers that answer DNS queries about the domains they are authoritative for.4, source 4
A recursive resolver is a resolver that acts in recursive mode.1, source 1 Systems that operate in recursive mode are commonly called recursive servers, and sometimes recursive resolvers.1, source 1 A server in recursive mode either answers queries from a local cache or sends queries to other servers to get the final answers to the original queries.1, source 1 A recursive query is a query with the Recursion Desired (RD) bit set to 1 in the header.1, source 1
In recursive resolution, the first server pursues the query on behalf of the client at another server.1, source 1 In iterative resolution, the client repeatedly makes non-recursive queries and follows referrals and aliases.1, source 1 The time a resolver takes to complete a lookup can vary from milliseconds to several seconds, because it may consult several name servers or answer from its cache.3, source 3
In general, a recursive resolver is expected to cache the answers it receives, which would make it a full-service resolver, though some recursive resolvers might not cache.1, source 1 A resolver aims to eliminate network delay and name server load from most requests by answering them from its cache of prior results.3, source 3 Caches shared by multiple processes, people or machines are more efficient than non-shared caches.3, source 3
A record's TTL is the time interval that the record may be cached before the source of the information should again be consulted.1, source 1 A name server can distribute a negative result such as a name error with a TTL, and a resolver may assume that the name does not exist during that TTL period without consulting authoritative data.3, source 3
A forwarder is a nameserver used to resolve queries instead of directly using the authoritative nameserver chain.1, source 1 An open resolver is a full-service resolver that accepts and processes queries from any, or nearly any, client, and it is sometimes called a public resolver.1, source 1 The term public resolver is used more for open resolvers that are meant to be open, while the vast majority of open resolvers are probably misconfigured to be open.1, source 1
An authoritative server knows the content of a DNS zone from local knowledge, so it can answer queries about that zone without needing to query other servers.1, source 1 An authoritative server is a server that has authority over one or more DNS zones.1, source 1 Authoritative information is organized into units called zones, and zones can be automatically distributed to the name servers that provide redundant service for the data in a zone.3, source 3 DNS records are instructions that live in the authoritative DNS servers and provide information about a zone.5, source 5
An authoritative server is named in the NS ("name server") record of a zone.1, source 1 Authoritative servers also provide referrals, usually to child zones delegated from them.1, source 1 An authoritative-only server only serves authoritative data and ignores requests for recursion.1, source 1 When a resolver has both authoritative data and cached data for a name, it always prefers the authoritative data.3, source 3
Each organization responsible for a set of domains is expected to provide redundant name servers, on its own hosts or on other hosts it arranges to use.3, source 3 If authoritative DNS is slow or unreachable, visitors may not be able to reach your site.5, source 5 A company can use more than one DNS provider to make a domain more resilient: if one provider has an outage, the other provider's nameservers will most likely still be available.5, source 5
In the general model of automatic zone transfer, one of a zone's name servers is the primary, or master, where changes are coordinated, typically by editing a master file for the zone.3, source 3 A secondary server is an authoritative server that uses zone transfer to retrieve the zone.1, source 1 Secondary servers detect changes by checking the SERIAL field of the zone's SOA record.3, source 3 The AXFR mechanism copies a full zone, and the IXFR mechanism copies only the parts of the zone that have changed.1, source 1
The authoritative name servers that serve the DNS root zone are often known simply as the root servers.6, source 6 The root servers are configured in the DNS root zone as 13 named authorities.6, source 6 The 13 root name servers are operated by 12 independent organizations.7, source 7 Together, they are a network of servers in many countries around the world.6, source 6
Policies for administering the root zone are determined by the names operational community, which convenes itself in ICANN.1, source 1 To operate in recursive mode, a resolver needs to know the address of at least one root server.1, source 1 For many pieces of software, the list of root servers comes built into the software.6, source 6
A top-level domain (TLD) is a zone that is one layer below the root, such as "com" or "jp".1, source 1 TLDs are often divided into sub-groups such as country code top-level domains (ccTLDs) and generic top-level domains (gTLDs).1, source 1 Delegation happens when NS records for a child zone are added in the parent zone.1, source 1
To find a name server to ask, a resolver looks for locally available NS records starting at the name being searched, then its parent domain, the grandparent, and so on toward the root.3, source 3 The root servers provide eventual access to all of the domain space.3, source 3 When a response shows a valid delegation, the resolver should cache the NS delegation records and any address records for the servers.3, source 3 After a valid delegation, the resolver enters the name servers in its list of servers to ask and restarts the search.3, source 3
A stub resolver is a resolver that cannot perform all resolution itself.1, source 1 Stub resolvers generally depend on a recursive resolver to undertake the actual resolution function.1, source 1 A stub resolver needs only a list of the name server addresses that will perform the recursive requests.3, source 3
One option for a resolver is to move the resolution function out of the local machine and into a name server that supports recursive queries.3, source 3 Using a recursive name server in this way can centralize the cache for a whole local network or organization.3, source 3 A name server is free to refuse to perform recursive services for any or all clients.3, source 3
On Windows, the DNS Client service is included in all client and server versions of the operating system and runs by default after installation.8, source 8 On Windows, all network connections are configured with the IP address of at least one DNS server.8, source 8 On Windows, when you configure a TCP/IP network connection with the IP address of a DNS server, the DNS Client queries that server to discover domain controllers and to resolve computer names to IP addresses.8, source 8 Windows Server DNS supports forwarding, which resolves names outside the local network by forwarding queries.8, source 8
A stub resolver generally has no idea whether upstream resolvers implement policy or, if they do, the exact policy about what changes will be made.1, source 1 In some cases, people using a stub resolver have chosen a policy-implementing resolver on purpose.1, source 1 Split DNS, or split-horizon DNS, describes DNS servers that are authoritative for a set of domains and give partly or completely different answers depending on the source of the query.1, source 1 Views are often used to provide more names or different addresses to queries from inside a protected network than to those outside it.1, source 1
A registrar is a service provider that acts as a go-between for registrants and registries.1, source 1 A registrant is an individual or organization on whose behalf a name in a zone is registered by the registry.1, source 1 Very often the same company that offers domain registration also offers web hosting and DNS management.5, source 5 For a zone's authoritative servers, the registrant may act as their own DNS operator, their registrar may do it on their behalf, or they may use a third-party operator.1, source 1
To make a delegation effective, the delegation NS records and glue records should be added to the parent zone.3, source 3 Glue records are only necessary if the name server's name is below the cut, and are only used as part of a referral response.1, source 1
To use Cloudflare DNS as an authoritative DNS provider, in a primary (full) or secondary setup, your domain's nameservers must point to nameservers that you get from your Cloudflare account.9, source 9 Unless your account has a specific DNS zone defaults configuration, Cloudflare automatically assigns two standard nameservers to a domain you add in either setup.4, source 4 With Cloudflare custom nameservers, you provide fully qualified domain names, such as ns1.example.com, for your nameservers.4, source 4 For a domain bought through Cloudflare Registrar, using a different DNS provider requires transferring the domain away from Cloudflare.4, source 4
When you point a domain to Cloudflare, you update the nameservers at your registrar if you bought the domain from a registrar other than Cloudflare Registrar and it has not been delegated.9, source 9 You can use a Whois search, such as ICANN Lookup, when you do not know who your registrar is.9, source 9 Some services, such as website builders, are not registrars but act as resellers, and in that case you may have to update your nameservers in the reseller's platform instead of at a registrar.9, source 9
For a subdomain that the parent domain delegates with its own NS records, you update the NS records in the parent domain and not at the registrar.9, source 9 Some providers act as registrars but do not expose nameserver settings.9, source 9
Switching from custom nameservers to Namecheap's default ones, or the other way round, does not automatically add the host records to the nameservers you switch to.10, source 10 Note the records you need before you switch, so you can add them again. At Namecheap, .CA domains must have at least 2 nameservers and at most 6.10, source 10 Namecheap says that after a nameserver change, it may take up to 24 hours, and more in rare cases, for local ISPs to update their DNS caches.10, source 10
An Internet server that answers DNS queries is a DNS server. Authoritative servers and recursive resolvers are both often called DNS servers, even though they serve different roles.
A recursive resolver looks answers up and is expected to cache them. An authoritative server knows a zone's content from local knowledge, so it can answer queries without needing to query other servers.
There are 13 named authorities configured in the DNS root zone. These 13 root name servers are operated by 12 independent organizations, and together they are a network of servers in many countries around the world.
It is the recursive resolver a stub resolver generally depends on. A stub resolver needs only a list of name server addresses that will perform the recursive requests. On Windows, all network connections are configured with the IP address of at least one DNS server to resolve computer names to IP addresses.
At your registrar, though some registrars do not expose nameserver settings. If you bought the domain through a reseller, such as a website builder, you may have to update them in the reseller's platform. For a delegated subdomain, you update the NS records in the parent domain.
Namecheap says up to 24 hours, and more in rare cases. That is how long local ISPs may take to update their DNS caches after a nameserver change at Namecheap.
Every fact on this page comes from one of these, checked before it goes live.
Domains and DNS
Learn how to register a domain name: choose a registrar, give accurate contact details, and understand renewal, free domain and transfer rules.
· Mateo Cardenas
Domains and DNS
Run a check on domain name availability with a Whois or RDAP lookup, then read the status codes that show when a deleted domain can be registered again.
· Mateo Cardenas
Domains and DNS
Pick a domain name whose labels meet the character and length rules, then check its top-level domain and whether it could infringe someone else's rights.
· Mateo Cardenas
Domains and DNS
Learn how to do a DNS lookup with nslookup, Resolve-DnsName, dig and host. Understand DNS record types, view your settings and read the query results.
· Mateo Cardenas