#576093 error: No nameservers defined in the resolver

Package:
ldnsutils
Source:
ldns
Description:
ldns library for DNS programming - tools (includes drill tool)
Submitter:
Piotr Engelking
Date:
2026-04-16 15:35:02 UTC
Severity:
minor
Tags:
#576093#5
Date:
2010-03-31 20:52:09 UTC
From:
To:
If the 'nameserver' option is not present in /etc/resolv.conf, drill
refuses to run:

$ drill
error: No nameservers defined in the resolver
;; No packet received
$ cat /etc/resolv.conf
options ndots:0
$

According to resolv.conf(5), the 'nameserver' option is, however,
optional, and such a configuration is functionally identical to a
single 'nameserver 127.0.0.1' option.

Please change drill not to refuse to run in this situation.

#576093#10
Date:
2022-04-26 16:17:29 UTC
From:
To:
Control: severity -1 minor
Control: tag -1 + confirmed upstream
Control: found -1 1.8.1-1

Yeah, drill does not initialize a default nameserver of 127.0.0.1 in
case no nameserver line is present in resolv.conf.

Confirmed, marking this as a minor issue and tagging with "upstream".

Thanks,

/mjt