About 3,520,000 results
Open links in new tab
  1. host command in Linux with examples - GeeksforGeeks

    May 21, 2019 · host command in Linux system is used for DNS (Domain Name System) lookup operations. In simple words, this command is used to find the IP address of a particular …

  2. How to get hostname from IP (Linux)? - Stack Overflow

    To find a hostname in your local network by IP address you can use nmblookup from the samba suite: nmblookup -A <ip> To find a hostname on the internet you could use the host program: …

  3. How to get the hostname using terminal command-line?

    The simplest way is to use the “host” utility . Just run… # host 64.233.187.99 output is: #99.187.233.64.in-addr.arpa domain name pointer jc-in-f99.google.com.

  4. Command to Check IP address in linux - GeeksforGeeks

    Feb 20, 2025 · ip addr command is the most consistent and up-to-date way to inspect your IP address. It forms part of iproute2, which is by default included with most Linux releases. Enter …

  5. The “host” Command in Linux [10 Practical Examples] - LinuxSimply

    Apr 30, 2024 · To specify the query type for a hostname, you can use the host command along with option-t in Linux. In this example, I will show you how to retrieve the name server records …

  6. Linux Find Out My Machine Name/Hostname - nixCraft

    Feb 25, 2025 · How to check what is the hostname of the Linux system? You need to use the hostname command or hostnamectl command. You can also type cat /etc/hostname to view …

  7. Linux host Command with Examples | phoenixNAP KB

    Oct 24, 2023 · The host command is a command-line tool that performs DNS (Domain Name System) lookups. The tool can find a hostname when provided with an IP address. However, …

  8. How to get the hostname from /etc/hostname & DNS domain …

    To avoid your server returning a long string that combines your IPv4 and IPv6 addresses, use this programmatically in a bash script: LOCALIP=$(hostname -I | awk '{print $1}') Or type this on …

  9. Test if a port on a remote system is reachable (without telnet)

    Feb 12, 2016 · Using option "-w2" could be the solution. Use -u option for UDP ports. On version 6.4 of ncat -z is not recognized.

  10. Get the Hostname From an IP Address in Linux - Baeldung

    Mar 18, 2024 · In this tutorial, we’ve learned how to get the hostname from an IP address in Linux using different commands like host or dig when the host has a public IP address and a valid …

Refresh