Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#1067 - misleading output from busybox nslookup applet (lede variant) where no query type is provided #6003

Open
openwrt-bot opened this issue Oct 16, 2017 · 0 comments
Labels

Comments

@openwrt-bot
Copy link

val-kulkov:

LEDE_BOARD="bcm53xx/generic"
LEDE_ARCH="arm_cortex-a9"
LEDE_TAINTS="no-all busybox"
LEDE_RELEASE="LEDE Reboot SNAPSHOT r5032-9e9696a"

Description: where no query type is provided to nslookup busybox applet, nslookup assumes A + AAAA queries (if the domain argument cannot be converted into a ptr). Then, if the A query succeeds but AAAA fails (for example, no record for an IPv6 address for the given hostname), nslookup returns "Can't find hostname: No answer". The "no answer" response looks puzzling. One has to review the the nslookup applet's source code to understand that there is nothing wrong with the DNS server.

For example:

root@LEDE:~# nslookup cam1 localhost
Server: localhost
Address: ::1#53

Name: cam1
Address 1: 192.168.21.14
*** Can't find cam1: No answer

Suggested fix: either add type information in the response, like "type A: X.X.X.X, type AAAA: can't find hostname: no answer", or omit the AAAA response if only A record is found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant