How to get the hostname using terminal command-line?

thanmai

I have used arp-scan in terminal to get the ipaddress as well as mac address, is there anyway i can get to know the hostname of the ipaddress that are there in the terminal? for example there are A-pc and B-pc and C-pc connected to the same router. I need to get the hostname the same way i got the result in arp-scan. Is there any command? please reply to this. Thank you.

PS: I dont want to use wireshark or any other s/w. It would be helpful if there was a terminal command.

user91632

try nslookup

Note: All tools require a DNS that have a reverse lookup zone. (the default is forward lookup zone only). This is why it will work on most external domains (internet) because they are registered in DNS all over the internet. for internal network you need an internal DNS reverse lookup server. check the following link

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to get the hostname using terminal command-line?

From Dev

How to get the hostname using Qt?

From Dev

linux - command line to get version of terminal

From Dev

Xcode command line tool - how to run in terminal?

From Dev

How to install Dart to be used in the terminal? (command line)

From Dev

how to push to git from Terminal / Command Line

From Dev

How to configure the ANSI colors of the command line terminal

From Dev

colorize hostname in command line prompt

From Dev

Command to get the hostname of remote server using IP address

From Dev

Command to get the hostname of remote server using IP address

From Dev

How do terminal size changes get sent to command line applications though ssh or telnet?

From Dev

How can I get the name of the current terminal from command-line?

From Dev

How to get command-line arguments using a text file?

From Java

How to get a list of user accounts using the command line in MySQL?

From Dev

How to get current timestamp with CQL while using Command Line?

From Dev

How to get date and time using command line interface?

From Dev

How to get current timestamp with CQL while using Command Line?

From Dev

How to get date and time using command line interface?

From Dev

How to get a list of applications associated with a file using command line

From Dev

How to get factor of integer number using command-line?

From Dev

How do I get a specific line of a file using 'cat' command?

From Dev

How can I get a count of files in a directory using the command line?

From Dev

How can I get the monitor resolution using the command line?

From Dev

How do I get a list of running applications by using the command line?

From Dev

Gnome (Ubuntu): how to bring a program window to the front using a command line from the terminal?

From Dev

how do you enable command line editing with vim keys using mac terminal?

From Dev

How to hide the hostname on the terminal on linux?

From Dev

Get the path when run from terminal or command line

From Dev

How to get out of "sudo -s" command in Terminal?

Related Related

  1. 1

    How to get the hostname using terminal command-line?

  2. 2

    How to get the hostname using Qt?

  3. 3

    linux - command line to get version of terminal

  4. 4

    Xcode command line tool - how to run in terminal?

  5. 5

    How to install Dart to be used in the terminal? (command line)

  6. 6

    how to push to git from Terminal / Command Line

  7. 7

    How to configure the ANSI colors of the command line terminal

  8. 8

    colorize hostname in command line prompt

  9. 9

    Command to get the hostname of remote server using IP address

  10. 10

    Command to get the hostname of remote server using IP address

  11. 11

    How do terminal size changes get sent to command line applications though ssh or telnet?

  12. 12

    How can I get the name of the current terminal from command-line?

  13. 13

    How to get command-line arguments using a text file?

  14. 14

    How to get a list of user accounts using the command line in MySQL?

  15. 15

    How to get current timestamp with CQL while using Command Line?

  16. 16

    How to get date and time using command line interface?

  17. 17

    How to get current timestamp with CQL while using Command Line?

  18. 18

    How to get date and time using command line interface?

  19. 19

    How to get a list of applications associated with a file using command line

  20. 20

    How to get factor of integer number using command-line?

  21. 21

    How do I get a specific line of a file using 'cat' command?

  22. 22

    How can I get a count of files in a directory using the command line?

  23. 23

    How can I get the monitor resolution using the command line?

  24. 24

    How do I get a list of running applications by using the command line?

  25. 25

    Gnome (Ubuntu): how to bring a program window to the front using a command line from the terminal?

  26. 26

    how do you enable command line editing with vim keys using mac terminal?

  27. 27

    How to hide the hostname on the terminal on linux?

  28. 28

    Get the path when run from terminal or command line

  29. 29

    How to get out of "sudo -s" command in Terminal?

HotTag

Archive