For some strange reason, nslookup seems to respect ndots whereas ping does not.
With ndots:2
$ ping host.name ping: host.name: Name or service not known
$ nslookup host.name Server: 127.0.1.1 Address: 127.0.1.1#53
Name: host.name.mycompany.com Address: 10.174.2.192
For some strange reason, nslookup seems to respect ndots whereas ping does not.
With ndots:2
$ ping host.name
ping: host.name: Name or service not known
$ nslookup host.name
Server: 127.0.1.1
Address: 127.0.1.1#53
Name: host.name. mycompany. com
Address: 10.174.2.192