LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 08-26-2009, 11:10 AM   #1
not_found
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
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
 
Old 08-26-2009, 11:22 AM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

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

nmblookup -A <ip-address_of_windows_pc>

Regards,

Fordeck
 
Old 08-26-2009, 11:25 AM   #3
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by not_found View Post
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
 
Old 08-26-2009, 11:36 AM   #4
not_found
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by fordeck View Post
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!
 
  


Reply

Tags
hostname, linux, ping, resolve, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help me setup Local Area Network. I cannot ping Windows XP host from Ubuntu 9 avarashnon Linux - Newbie 1 05-10-2009 08:59 PM
FC4: cannot resolve hostnames on local network pyepye Linux - Networking 12 04-05-2006 01:29 PM
NETGEAR network adapter takes ALOT to resolve host, Please HELP! phiqtion Linux - Networking 4 06-02-2004 07:31 AM
Cannot resolve local addresses on local network danielgrenyer Linux - Networking 6 01-14-2004 12:03 PM
Sendmail can't resolve names outside local network beng Linux - Networking 4 12-01-2003 01:09 PM


All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration