Questions tagged [dns]

For questions pertaining to Domain Name System (DNS), a service that provides the resolution of host names to IP addresses. Use this tag when you are troubleshooting DNS issues, configuring a DNS resolver or server, or are trying to understand DNS's involvement in your situation.

Introduction

The Domain Name System (DNS) is a hierarchical decentralized naming system for computers, services, or any resource connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities. Most prominently, it translates more readily memorized domain names to the numerical IP addresses needed for the purpose of locating and identifying computer services and devices with the underlying network protocols. By providing a worldwide, distributed directory service, the Domain Name System is an essential component of the functionality of the Internet.

The Domain Name System delegates the responsibility of assigning domain names and mapping those names to Internet resources by designating authoritative name servers for each domain. Network administrators may delegate authority over sub-domains of their allocated name space to other name servers. This mechanism provides distributed and fault tolerant service and was designed to avoid a single large central database.

The Domain Name System also specifies the technical functionality of the database service which is at its core. It defines the DNS protocol, a detailed specification of the data structures and data communication exchanges used in the DNS, as part of the Internet Protocol Suite. Historically, other directory services preceding DNS were not scalable to large or global directories as they were originally based on text files, prominently the HOSTS.TXT resolver. The Domain Name System has been in use since the 1980s.

Examples

IP addresses are hard to remember, especially in IPv6. DNS creates looks like a telephone book and converts text names to IP addresses. For example one can type on a browser www.luc.edu instead of 147.126.1.230.

One thing that DNS makes possible is changing the IP address while not changing the name. This allows moving the site to another provider, without requiring users to learn anything new. It is also possible to have several different DNS names resolve to the same IP address, and have the same http web server at that IP address handle the different names as different websites.

As already stated, DNS is hierarchical and distributed system. In looking up cs.luc.edu four different DNS servers may be required: for the so-called "DNS root zone", for edu, for luc.edu and cs.luc.edu. Searching hierarchy can be cumbersome, so DNS search results are usually cached locally.

Further reading

How can I resolve a hostname to an IP address in a Bash script?

How do I set my DNS when resolv.conf is being overwritten?

What DNS servers am I using?

External References

An Introduction to Computer Networks Peter L Dordal

DNS on Wikipedia

1513 questions
15
votes
2 answers

What is a "recursive DNS query"?

Can someone explain in short what "recursive DNS query" means and how it can be considered bad?
LanceBaynes
  • 40,135
  • 97
  • 255
  • 351
14
votes
1 answer

Can I Mix Multiple Nameserver Sources in resolv.conf

In the list of nameservers in resolv.conf, can I use different nameservers (one from ISP, one from Google, etc..) in each line or does it all have to be from same source? Example: nameserver 123.12.12.123 <-- ISP nameserver 8.8.8.8 <--…
Neel
  • 263
12
votes
2 answers

How can I check if my DNS server is working?

This case scenario is for a router with embedded linux, but I think the answer could be the same for any Linux system. This is my DNS check: ~ $ cat /etc/resolv.conf nameserver 80.58.61.250 nameserver 80.58.61.254 ~ $ ping 80.58.61.250 PING…
11
votes
1 answer

To get domain name from ip in Reverse DNS Dig

dig www.ksu.edu.tw +short 120.114.100.101 We get ip address :120.114.100.101 ,whose domain name is www.ksu.edu.tw . To get domain name from ip in Reverse DNS Dig dig -x 120.114.100.101 +short www.ksu.edu.tw. We get domain name : www.ksu.edu.tw…
showkey
  • 323
10
votes
1 answer

Can a domain be configured to only have secondary DNS nameserver records?

I'm asking if someone can verify if my DNS hosting idea is possible or has any flaws. We would host our own primary DNS server for all zones and configure it to allow zone transfers to a set of IPs which will host the same data as secondary dns. At…
10
votes
2 answers

How does DNS name resolution work, in principle?

Right now I'm taking an online course for Linux sysadmin and I was asked a question I just generally don't understand. I know how to search for a name server, if I'm correct at least it's using the dig command to find the addressed in the additional…
linux8807
  • 205
9
votes
1 answer

How to understand TTL values in dig command output?

I am reading about how DNS works in general. From the wiki entry of TTL, I understand TTL (Time to Live) occur in the Domain Name System (DNS), where they are set by an authoritative name server for a particular resource record. When a caching…
Ramesh
  • 39,297
8
votes
1 answer

why do queries with status "refused" get answers?

I'm wondering about why would that be. It's even stranger if you simply "dig +short" the record - you get the response, but clients can't make use of that. I've had a quick look at the RFC, but I was unable to find the reason for this…
7
votes
2 answers

How to configure system to use a custom DNS server for a particular domain?

The hosts file allows us to configure the system to override the whole DNS servers system and resolve a particular DNS name into a prtcular IP address. But what if I just want it to use a particular DNS server for this?
Ivan
  • 17,708
5
votes
1 answer

Adding multiple sites at once to forward-zone of Unbound?

The usual format for Unbound forward-zone is forward-zone: name: "imap.gmail.com" forward-addr: 8.8.8.8 #googleDNS forward-addr: 8.8.4.4 #googleDNS for example. Is it possible to add multiple sites in a list to the `name' field? I've tried comma…
fpghost
  • 727
5
votes
2 answers

Can't resolve CentOS 6.2 server by name from OS X

I just set up a new AirPort Extreme and CentOS 6.2 server - the server is meant to be a general-purpose storage machine, and so I've set up Samba and Avahi on it. I can easily access the server by IP address from my MacBook Pro running OS X Lion,…
Tim
  • 151
5
votes
1 answer

PowerDNS not resolving host computer

I just finished setting up PowerDNS to avoid having to remember all my IP addresses and it seems to work pretty fine, most host names resolve just fine but not the one running PowerDNS (named musicbox, IP 192.168.1.22). When I try to ping it from…
Zarkov
  • 61
  • 4
4
votes
2 answers

Using a secondary DNS when lookup fails in primary?

I use a VPN to connect my development machine to my school's CS dept. The development machine is Ubuntu as we do C programming in Unix. I used vpnc to do that. The school uses some DNS entries that only resolve on their DNS servers, i.e.,…
Huckle
  • 1,005
4
votes
1 answer

Overriding DNS entries per process

I'm trying to have local tests working without running consul as DNS server. Which means I'm trying to map web.service.consul to localhost. I've tried creating HOSTALIASES file but it seems it doesn't support dot in the alias name. I also tried…
4
votes
1 answer

Can I replicate DNS records throgh AXFR if pdns recursor is in front of the pdns authoritative

I have an PDNS recursor and authoritative servers setup as picture below suggests (DNS1). I have tried to setup a second DNS server in the same way the first is setup, but I am not getting any records on DNS2 from DNS1 (all I am getting is a…
GoodDog
  • 43
1
2 3 4 5 6