LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   nmblookup ? (https://www.linuxquestions.org/questions/linux-networking-3/nmblookup-184388/)

Menestrel 05-22-2004 02:43 AM

nmblookup ?
 
how can I find the name of a computer if I know it's IP address ? is it with nmblookup ? if so could you give me the complete command to do this ?

maxut 05-22-2004 02:49 AM

why dont u look at the man page of nmblookup "man nmblookup" or u dont type "nmblookup --help" ?
if u did one of those u would see the answer.

Menestrel 05-22-2004 02:56 AM

well to my understanding I should use nmblookup -T ip_address, but it says name query failed :scratch:

maxut 05-22-2004 03:20 AM

when u do nmblookup --help, u will see:
-A, --lookup-by-ip Do a node status on <name> as an IP

so try:
nmblookup -A ip_address

Menestrel 05-22-2004 03:51 AM

10x man, that did the trick, I'm so stupid :D, could I ask you one more question. Is there a way I could scan my entire network and write in a file the IP addresses of each workstation and near that IP address the name of the workstation ? (like in a hosts file)

maxut 05-22-2004 03:55 AM

yeah. u can write a shell script file to do that. i cant help u about shell script. cos im busy now. sorry.


All times are GMT -5. The time now is 11:00 PM.