Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The tinydns and dnscache services are running and I have in my resolv.conf:

root@ubuntu:~# cat /etc/resolv.conf 
domain localdomain
search localdomain

root@ubuntu:~# sv status /etc/service/*
run: /etc/service/dnscache: (pid 927) 22s; run: log: (pid 663) 517s
run: /etc/service/tinydns: (pid 898) 418s; run: log: (pid 660) 517s

root@ubuntu:~# cat /etc/service/dnscache/env/IP

root@ubuntu:~# dig @

; <<>> DiG 9.7.1-P2 <<>> @
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35794
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;           IN  A

;; ANSWER SECTION:        300 IN  A


Why would I get "WARNING: recursion requested but not available" when running dig. I believe it should be able to recurse using dnscache.

share|improve this question

Which ports and IP addresses are the two servers bound to?

It looks like you might have tinydns (authoritative) on the address, and dnscache (recursive) only on the loopback interface.

If so, you need to use dig @ to talk to the recursive cache, or even just omit the IP address from the dig command line, at which point it'll default to using whatever's in /etc/resolv.conf

share|improve this answer
Correct, tinydns:, dnscache: What you suggest works properly. I have another tinydns installation (not dbndns) that does not give me this warning. Seeing how dbndns/tinydns aren't recursive DNS servers shouldn't they always return "WARNING: recursion requested but not available"? – joe Oct 29 '10 at 14:51
Yup, a DNS server that's only authoritative must send back an answer with the RA bit clear. Similarly the RD bit must be copied from the request to the response. If the server fails to copy the RD bit you won't see that warning. – Alnitak Oct 29 '10 at 16:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.