Hi I'm new to osx and trying to resolve the netbios name of a windows machine. When I try to ping it I get the error cannot resolve hostname. When I use the command smbutil lookup %hostname% it will resolve.
When I ping the ip directly it works fine and this was working on a previous mac which I had to return and replace with my new one. I am able to resolve it from another windows machine on my network.
Essentially I just want to be able to ping my windows machine. Any help would be greatly appreciated.
Best Answer
As you mentioned,
smbutil lookup
will resolve the name to an IP address:We can extract the IP address from this output:
Then we can use that in our argument to ping: