LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to resolve windows host name inside a local network. (http://www.linuxquestions.org/questions/linux-networking-3/how-to-resolve-windows-host-name-inside-a-local-network-750404/)

not_found 08-26-2009 11:10 AM

How to resolve windows host name inside a local network.
 
Hello!,

I'am inside a local network, there are some Linux boxes and some MS Windows systems. How can I ping from Linux to a Windows machine (using IP address) so that I can see the Windows machine host name?.

Is there a Linux command for doing that?

Thanks in advance!
not_found

fordeck 08-26-2009 11:22 AM

What happens if you run this from a linux machine on the network:

nmblookup -A <ip-address_of_windows_pc>

Regards,

Fordeck

centosboy 08-26-2009 11:25 AM

Quote:

Originally Posted by not_found (Post 3658368)
Hello!,

I'am inside a local network, there are some Linux boxes and some MS Windows systems. How can I ping from Linux to a Windows machine (using IP address) so that I can see the Windows machine host name?.

Is there a Linux command for doing that?

Thanks in advance!
not_found

add the windows boxes to /etc/hosts on the linux box.

this is a good solution for a small number of hosts, say up to 10.
after that then you have to start considering things such as dnsmasq and even bind if there are many windows hosts

not_found 08-26-2009 11:36 AM

Quote:

Originally Posted by fordeck (Post 3658390)
What happens if you run this from a linux machine on the network:

nmblookup -A <ip-address_of_windows_pc>

Regards,

Fordeck

It works! thank you!


All times are GMT -5. The time now is 07:23 PM.