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.

1338 questions
243
votes
7 answers

If ICANN only charges 18¢ per domain name, why am I paying $10?

ICANN charges 18¢ per domain name registered regardless of its extension, but I pay $10 for a domain name per year with my registrar. What do domain name registrars do for its customers to justify this extra $9.82? Is there something that they do…
Indrajith Indraprastham
  • 2,476
  • 2
  • 16
  • 15
131
votes
4 answers

Using multiple A-records for my domain - do web browsers ever try more than one?

If I add multiple A-records for my domain, they are returned in a round robin order by DNS servers. Example: 192.0.2.1 A example.com 192.0.2.2 A example.com 192.0.2.3 A example.com But how does web browsers react if the first host (192.0.2.1) is…
Jonas
  • 1,940
  • 2
  • 16
  • 19
92
votes
4 answers

What does an asterisk/star in traceroute mean?

The below is a part of traceroute to my hosted server: 9 ae-2-2.ebr2.dallas1.level3.net (4.69.132.106) 19.433 ms 19.599 ms 19.275 ms 10 ae-72-72.csw2.dallas1.level3.net (4.69.151.141) 19.496 ms ae-82-82.csw3.dallas1.level3.net…
Chang
  • 1,131
  • 1
  • 8
  • 10
47
votes
4 answers

How to use Cloudflare and Namecheap email forwarding at the same time?

I want to use Cloudflare, and it requires that I use their nameservers. The problem is that I'm using some features from Namecheap like email forwarding, which will be disabled (if I didn't get it wrong) if I don't use Namecheap's nameservers. Any…
ChocoDeveloper
  • 589
  • 1
  • 5
  • 8
38
votes
7 answers

Forward naked domain with URL path for my Google Domain

I purchased a domain through Google Domains and I am hosting my app on Heroku. I would like users to be able to access my app through the naked domain, but Google Domains does not allow CNAME's to be set for the naked domain. They have an option…
Evan Appleby
  • 503
  • 1
  • 4
  • 8
37
votes
3 answers

What is the safest way to search for domain names availability?

I am victim of Domain name front running. I searched for domain names on some sites & I lost those names soon. Now, what is the safest way to search for availability of domain names? Using nslookup -type=ns domain.example is a way that I found,…
35
votes
2 answers

How to forward non-www to www. Using Godaddy DNS Manager

so I've set www.mydomain.com to point to ghs.google.com, which correctly loads my Google site, but if you go to mydomain.com, it doesn't redirect/forward to www.mydomain.com, it just hangs. is there a way to change this in the Godaddy DNS manager?
chrismarx
  • 453
  • 1
  • 4
  • 6
33
votes
4 answers

Can DNS point to specific port?

I got virtual machine on some server and my URL is something like this. 111.11.11.111:8002 Can I get DNS who will point to specific port ? One more thing. If I cant do that, can my virtual machine on server be sub-domain of that server DNS ?
Ivan Vulović
  • 433
  • 1
  • 4
  • 5
33
votes
5 answers

Does registering a domain for 10+ years help search rank?

I've heard that registering a domain name for a very long time, say 5 to 10+ years, can help with your search rank. This seems at least plausible to me, since a fly-by-night, massive domain name farm isn't going to bother registering their names for…
Jeff Atwood
  • 14,002
  • 18
  • 66
  • 79
30
votes
7 answers

Should I use a domain name registrar's free DNS hosting, or host DNS servers with another company?

Should I use my domain name registrar's free DNS hosting service, or host DNS servers with another company? (or both?) What are some advantages to using a DNS hosting company separate from the domain registrar?
Chris W. Rea
  • 3,773
  • 1
  • 36
  • 48
28
votes
3 answers

Should I have both example.com and www.example.com?

I used to have a website which could be addressed by both example.com and www.example.com leading to the same page. Now, I moved to another server and only the example.com works. I got an email from Googlebot complaining that it cannot access…
28
votes
7 answers

Registrar with good security, DNS hosting, and DNSSEC and IPv6 resolvers?

I'm looking to move my domains away from GoDaddy, but I'm having a tough time finding anyone with comparable features at a (even remotely) similar price. I've looked at the usual suggestions (NameCheap, Gandi.net, etc.), but they all seem to lack…
semenko
  • 383
  • 3
  • 5
28
votes
4 answers

Is there any way to redirect one domain to another via DNS settings keeping the path information?

For example, my domain is example.com and when someone navigates to example.com/sample/page.htm, I want it to redirect to test.com/sample/page.htm. I know that this can probably easily be done using a .htaccess file or a 404 page. However, I am…
Senseful
  • 825
  • 1
  • 9
  • 15
27
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
  • 566
  • 1
  • 5
  • 13
27
votes
6 answers

TXT vs SPF record for Google servers SPF record, either or both?

According to Google’s documentation, https://support.google.com/a/bin/answer.py?hl=en&answer=178723 It clearly says Create a TXT record containing this text: v=spf1 include:_spf.google.com ~all Why is this not a SPF record? RFC4408 defines SPF…
lavoiesl
  • 503
  • 1
  • 4
  • 8
1
2 3
89 90