Questions tagged [dns]

DNS is the Domain Name System, a hierarchical, distributed database to map various information together, such as hostnames to IP addresses. The name is also used as a synonym for nameservers, the specific servers delivering the DNS feature.

This tag should be used for all issues about configuration of DNS systems or troubleshooting problems in names resolution.

DNS is the Domain Name System, a hierarchical, distributed database where the keys are domain names.

The primary references are:

  • RFC 1034 - Domain Names - Concepts and Facilities
  • RFC 1035 - Domain Names - Implementation and Specification

(but there is no comprehensive document handling an exhaustive list of features and specifications of the protocol; a newer attempt at that as a work in progress is available at https://powerdns.org/hello-dns/ for a technical audience)

The most common record types found in the DNS are:

  • A records - the mapping from a domain name to an IPv4 address
  • AAAA records - the mapping from a domain name to an IPv6 address
  • MX records - the mapping from a domain name to the host name of an SMTP server
  • NS records - used to delegate a portion of the hierarchy to specific DNS servers
  • PTR records - typically used (via in-addr.arpa.) to map an IP address back to a domain name
  • CNAME records - used to alias a domain name to its canonical version

DNS packets are conventionally transported over UDP and TCP port 53. UDP is more commonly used, but zone transfers require TCP (RFC 5966), as do larger DNS responses (when over the default of 512 bytes) if the EDNS extension is not used (or badly implemented), see RFC6891.

A specific extension called DNSSEC allows to cryptographically sign resource records to ensure their authenticity and integrity. It introduces the following new records for that: DS and DNSKEY records to store key materials, RRSIG to store signatures and NSEC or NSEC3 records to handle signaling of not existing records.

Newer versions support DNS over TLS (RFC7858) and DNS over HTTPS (in process of becoming an RFC).

By default, during a recursive walk, each nameserver is queried with the full name being resolved, not just the labels it would need. It is only for historical reason as there is no technical reason for this. A newest specification (RFC7816) mandates "QNAME minimization" for privacy reasons, and is in the process of being deployed in nameservers.

Partial list of known open source namesevers:

  • bind (sometimes also historically referenced as named): authoritative and recursive
  • nsd: authoritative, started by the .NL registry
  • unbound: recursive
  • Knot DNS: authoritative, started by the .CZ registry
  • powerdns: authoritative and recursive
  • yadifa: authoritative, started by the .EU registry
  • dnsmasq: recursive (with some authoritative features for local resolutions)
  • geodns: authoritative

This Wikipedia article provides an approachable introduction to DNS.

1316 questions
26
votes
1 answer

If I specify a wildcard DNS entry, will it override any specific values?

I have cheese.mycompany.com - 1.1.1.1 I want to go *.mycompany.com = 1.1.1.2 without effecting cheese? Will this work, just having two seprate DNS entries?
NimChimpsky
  • 556
  • 1
  • 5
  • 13
19
votes
3 answers

Is it okay to have no A records for a domain?

There is one domain I'm using for email only. MX records are set up and everything works. The A records for @ and www are pointing to a machine, which just redirects to google.com. I am now wondering if I could just delete the A records for @ and…
user13886
7
votes
4 answers

Wildcard DNS record point to multiple servers

I would like to give my users their own subdomain like jack.example.com, james.example.com, and is using wildcard DNS record to do that. But now I would like to separate users into multiple servers, like users A~J is on server A, and users K~S is on…
lisadraznin
5
votes
4 answers

Using local DNS and public DNS during site development

I'm a web designer and I often develop new sites for existing businesses. Sometimes I find it useful to point my DNS address (for my personal computer) to the development servers local DNS (instead of Googles 8.8.8.8 or the default isp's address). I…
ChrisFM
  • 71
  • 1
  • 4
5
votes
2 answers

DNS MX and NS entries

I was wondering about my domain and if next is afordable. First of all this is my "architecture": Domain registration at GoDaddy.com Hosting at Dreamhost mail at google apps Until now I setted up the google apps MX entries in my domain through…
unkown
4
votes
2 answers

Can I point a example.com/subdirectory to another IP address?

I have 2 servers and 1 domain name. Is there a way to point the domain at server 1 but then point example.com/subdirectory to server 2?
Jai
  • 165
  • 1
  • 3
  • 6
4
votes
1 answer

Service/Method for forwarding A record

I am setting up a WordPress multisite with numerous subsites. Some of these subsites will have a custom domain. I may end up switching hosting providers down the road and want to avoid having to get my clients to switch their records when I do…
Peter Breen
  • 185
  • 4
3
votes
1 answer

Should I use Reverse DNS (rDNS) with or without "www."?

If I set up a rDNS entry for my server, should I enter just the hostname or should I include www.? I assume that the A-Record for example.com and www.example.com point to the same server, of course. The site is running on www.example.com, if that…
3
votes
2 answers

How do you set DNS record so that www subdomain is set to root domain?

I don't want "www" in my domain. How do I set dns record so that when someone types www.mydomain.com it will just show up as mydomain.com? I just want www to foward to root domain? Tried searching but google only tells me how to make my domain "www"…
user3512967
  • 131
  • 2
3
votes
2 answers

Questions about ANAME DNS records

Shopify recently sent a link asking that I update DNS - They talk about ALIAS or ANAME records, and assert these are different to CNAME and A records. I understand what CNAME records are, and why you don't use them for the root of the domain - and…
davidgo
  • 7,904
  • 1
  • 18
  • 26
3
votes
2 answers

What does the domain registrar technically do?

Let's say that I buy example.com domain from GoDaddy who is authorized to sell domains under .com and I would like to use my own DNS servers for zone example.com. What does the GoDaddy technically do if they use BIND as a DNS server? Do they simply…
Martin
  • 289
  • 1
  • 8
3
votes
1 answer

Redirect an invalid subdomain to the main subdomain

I've just started hosting a master-server service for the game Crysis Wars, in order to replace the failed GameSpy service. The subdomain for the service is master.example.com, but I however want any requests for a subdomain under it to go to the…
AStopher
  • 233
  • 3
  • 15
3
votes
3 answers

Difference between domain reseller and domain registrar?

I have heard terms "domain reseller" and "domain registrar" and that "domain registrar" is better than "domain reseller". What is the difference between the two?
Martin
  • 289
  • 1
  • 8
3
votes
2 answers

2 domain names with 1 IP address in a server

I want to change my web site domain name but still want to use the same IP address of the website. I want to make the change that both old name and new name are accessible for 6 months. After 6 months, the web page is only accessible to the new…
Hung
  • 31
  • 2
3
votes
1 answer

Does a semicolon DNS record serve any purpose?

I'm helping my boss clean up our DNS records on Verizon and neither one of us is sure what to make of these. There are a couple records that consist solely of a semicolon. No record type, no address, no anything--it's just a semicolon. Do these…
Ant
  • 143
  • 4
1
2 3 4 5