search
is used to specify default search domains if the DNS query does not include a domain name
Without it
nslookup news.yahoo.com
will work.
nslookup news
will fail
If you put the search term in, then the resolver will automatically try news.yahoo.com
when you only provide news
and the second command above will not fail.
1 Like