[Bug 12541] New: nslookup: incorrectly returns failure with search domains

bugzilla at busybox.net bugzilla at busybox.net
Tue Feb 4 11:01:13 UTC 2020


https://bugs.busybox.net/show_bug.cgi?id=12541

            Bug ID: 12541
           Summary: nslookup: incorrectly returns failure with search
                    domains
           Product: Busybox
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Networking
          Assignee: unassigned at busybox.net
          Reporter: ncopa at alpinelinux.org
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

nslookup (with FEATURE_NSLOOKUP_BIG) incorrectly returns EXIT_FAILURE if any of
the search domains returns failure, even if one of them returns success.

To reproduce:

$ cat /etc/resolv.conf 
nameserver 1.1.1.1
search busybox.net net

$ busybox nslookup busybox; echo $?
Server:         1.1.1.1
Address:        1.1.1.1:53

** server can't find busybox.busybox.net: NXDOMAIN

Non-authoritative answer:
Name:   busybox.net
Address: 140.211.167.122

Non-authoritative answer:

** server can't find busybox.busybox.net: NXDOMAIN

1


Compare to bind's nslookup:

$ nslookup busybox; echo $?
Server:         1.1.1.1
Address:        1.1.1.1#53

Non-authoritative answer:
Name:   busybox.net
Address: 140.211.167.122

0


Downstream report:
https://github.com/gliderlabs/docker-alpine/issues/539

Related to https://bugs.busybox.net/show_bug.cgi?id=11161

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list