DNS: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 15: | Line 15: | ||
=== Reverse DNS lookup === |
=== Reverse DNS lookup === |
||
See [[Linux Commands#dig|dig]], [[Linux Commands#host|host]] and [[Linux Commands#nslookup|nslookup]]. |
See [[Linux Commands#dig|dig]], [[Linux Commands#host|host]] and [[Linux Commands#nslookup|nslookup]]. |
||
== Troubleshooting == |
|||
=== SERVFAIL === |
|||
<code>dig</code> (and <code>dig +notrace</code>) fails with a '''SERVFAIL''' error code but <code>dig +trace</code> works: |
|||
<source lang=bash> |
|||
dig +notrace miki.immie.org |
|||
# ; <<>> DiG 9.9.5-9+deb8u6-Debian <<>> +notrace miki.immie.org |
|||
# ;; global options: +cmd |
|||
# ;; Got answer: |
|||
# ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 29570 |
|||
# ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 |
|||
</source> |
|||
Using a different DNS server works too: |
|||
<source lang=bash> |
|||
dig @8.8.8.8 miki.immie.org |
|||
</source> |
|||
Other subdomains in that zone work though: |
|||
<source lang=bash> |
|||
dig +notrace kiwi.immie.org |
|||
dig +notrace mip.immie.org |
|||
</source> |
|||
;Solution |
|||
:Turns out that we had duplicate ''CNAME'' entries in the zone file. We delete one. |
|||
miki 10800 IN CNAME prime |
|||
miki 10800 IN CNAME prime |
Revision as of 09:48, 20 June 2016
References
- A DNS database consists of one or more zone files used by the DNS server. Each zone holds a collection of structured resource records, the following of which are supported by the DNS Server service.
- How DNS works.
- Detailed explanations on how DNS work, applied to Linux.
How-to
Reverse DNS lookup
Troubleshooting
SERVFAIL
dig
(and dig +notrace
) fails with a SERVFAIL error code but dig +trace
works:
dig +notrace miki.immie.org
# ; <<>> DiG 9.9.5-9+deb8u6-Debian <<>> +notrace miki.immie.org
# ;; global options: +cmd
# ;; Got answer:
# ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 29570
# ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
Using a different DNS server works too:
dig @8.8.8.8 miki.immie.org
Other subdomains in that zone work though:
dig +notrace kiwi.immie.org
dig +notrace mip.immie.org
- Solution
- Turns out that we had duplicate CNAME entries in the zone file. We delete one.
miki 10800 IN CNAME prime miki 10800 IN CNAME prime