LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-21-2007, 01:20 PM   #1
guy_ripper
Member
 
Registered: Oct 2006
Posts: 80

Rep: Reputation: 15
How to check hostnames


Hi Experts,

Is there available commands in linux like nbtstat in windows? Currently, I'm having a problem with duplicates IP addresses in our network. I want to know hostname and MAC address of the workstations who used the IP.

Thanks in advanced.
 
Old 06-21-2007, 01:38 PM   #2
LightningCrash
LQ Newbie
 
Registered: Jun 2007
Posts: 23

Rep: Reputation: 15
nbtstat works on the premise that NetBIOS reports hostnames.
Samba in linux gives us NetBIOS capabilities but doesn't do a whole lot for your problem.

however, the arp command may be of help to you

http://www.softpanorama.org/Net/troubleshooting.shtml

Read the section titled "Using arp as a Troubleshooting Tool"


edit:
using
Code:
smbclient -L ipaddress
will give you a list of shares on that ip address, just replace ipaddress with the ip of the box you're trying to query. assuming it isn't passworded/firewalled up you should get a list of the goods.

Last edited by LightningCrash; 06-21-2007 at 01:42 PM.
 
  


Reply


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
Resolve hostnames to IP veeruk101 Linux - Networking 2 04-15-2007 12:40 AM
Partition check, check double check Vincentius Linux - General 0 12-25-2004 06:47 AM
hostnames thenewguy05 Linux - Networking 1 07-12-2004 06:08 PM
Boot disk; check. CD in drive; check. Doesn't work; check. Hal DamnSmallLinux 7 02-04-2004 03:10 AM
Hostnames glj Linux - Networking 3 02-12-2002 11:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:08 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
Open Source Consulting | Domain Registration