Bug 15907

Summary: nslookup fails with IPv6 name server in resolv.conf the has a comment
Product: Busybox Reporter: Oscar <heyscar>
Component: NetworkingAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.35.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: packet capture. 3 frames. 1 & 2 are what should be, 3 is nslookup

Description Oscar 2024-01-04 20:28:33 UTC
Created attachment 9691 [details]
packet capture.  3 frames. 1 & 2 are what should be, 3 is nslookup

the nslookup client seems to not parse the resolv.conf entry correctly when the name server entry has a # comment in the string 
for example: nameserver 2001:1868:209:fff7:2185:39d8:332c:3eed # vlan1

When you try to perform nslookup google.com  for example,  the DNS lookup frame will contain a Queries entry for the name server instead of the string "google.com"

2001:1868:209:fff7:2185:39d8:332c:3eed # vlan1.scar.scarnet.com: type AAAA, class IN