Bug 13441

Summary: nslookup does not append items in search
Product: Busybox Reporter: zhiguo.lee
Component: NetworkingAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.32.x   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description zhiguo.lee 2021-01-11 03:37:10 UTC
1. Create a pod with busybox:1.32.0-musl
2. Enter the pod , and do nslookup commond ,such as nslookup google.com 
3. Coredns' log shows only google.com. is send.
4 .Run commond nslookup google  
5. Coredns' log shows each search item is appended. 

Also busybox:1.32.0-glic follows the same process. 


The /etc/resolv.conf in pod as bellow:
nameserver 172.16.253.163
search default.svc.cluster.local svc.cluster.local cluster.local
options ndots:5


According the definations for search and ndots in /etc/resolv.conf , the nslookup should append each item before do the last reqeust nslookup google.com.