Bug 22953 - dig/nslookup don't seem to use resolv.conf properly
Summary: dig/nslookup don't seem to use resolv.conf properly
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: bind
Version: 7.1
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: Need Real Name
URL:
Whiteboard: Florence Gold
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-12-28 17:29 UTC by Wade Minter
Modified: 2005-10-31 22:00 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-01-26 14:36:31 UTC
Embargoed:


Attachments (Terms of Use)

Description Wade Minter 2000-12-28 17:29:48 UTC
My /etc/resolv.conf is set up as so:

[minter@squirtle minter]$ cat /etc/resolv.conf 
search raleigh.netraverse.com netraverse.com
nameserver 216.5.103.195
[minter@squirtle minter]$ 

I'm trying to do a dig on host "zephyr.raleigh.netraverse.com".  Running
"dig zephyr" gives:

[minter@squirtle minter]$ dig zephyr

; <<>> DiG 9.1.0b1 <<>> zephyr
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 32164
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;zephyr.                                IN      A

;; AUTHORITY SECTION:
.                       9781    IN      SOA     A.ROOT-SERVERS.NET.
hostmaster.nsiregistry.NET. 2000122701 1800 900 604800 86400

;; Query time: 11 msec
;; SERVER: 216.5.103.195#53(216.5.103.195)
;; WHEN: Thu Dec 28 12:32:42 2000
;; MSG SIZE  rcvd: 100


Running "dig zephyr.raleigh.netraverse.com" gives:
[minter@squirtle minter]$ dig zephyr.raleigh.netraverse.com

; <<>> DiG 9.1.0b1 <<>> zephyr.raleigh.netraverse.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27929
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 3

;; QUESTION SECTION:
;zephyr.raleigh.netraverse.com. IN      A

;; ANSWER SECTION:
zephyr.raleigh.netraverse.com. 432000 IN A      216.5.103.194

;; AUTHORITY SECTION:
raleigh.netraverse.com. 432000  IN      NS      ns1.netraverse.com.
raleigh.netraverse.com. 432000  IN      NS      ns2.netraverse.com.
raleigh.netraverse.com. 432000  IN      NS      ns3.netraverse.com.

;; ADDITIONAL SECTION:
ns1.netraverse.com.     432000  IN      A       216.5.96.90
ns2.netraverse.com.     432000  IN      A       216.5.96.85
ns3.netraverse.com.     432000  IN      A       216.5.103.195

;; Query time: 13 msec
;; SERVER: 216.5.103.195#53(216.5.103.195)
;; WHEN: Thu Dec 28 12:33:30 2000
;; MSG SIZE  rcvd: 187

nslookup does the same type thing.  It appears that dig/nslookup aren't
using the search path from resolv.conf.

Comment 1 Daniel Roesen 2000-12-29 12:33:06 UTC
dig is not supposed to append domains out of /etc/resolv.conf, but nslookup is.

Comment 2 Bernhard Rosenkraenzer 2001-01-10 23:13:16 UTC
Still present in 0.b3.1

Comment 3 Glen Foster 2001-01-11 21:06:05 UTC
This defect is considered MUST-FIX for Florence Gold release

Comment 4 Karsten Hopp 2001-01-26 13:49:59 UTC
I failed to reproduce this problem with bind-utils-9.1.0-2. 
nslookup and host use the search entry in /resolv.conf and the 
domain part of the hostname.
dig isn't supposed to use the search entry in resolv.conf, it uses only
the DNS information from that file.
I suggest to close this report as 'not a bug'

Comment 5 Wade Minter 2001-01-26 14:36:27 UTC
Confirmed to be working with bind-utils-9.1.0-1.


Note You need to log in before you can comment on or make changes to this bug.