How to find Hostname

There are different kinds of hosts like your local computer, ISP, web server etc. Here I’m going to tell you how to find hostname.

Local Hostname – To find localhost name, just open Command Prompt and type “hostname” to get the local hostname on you computer. Also, you will get the hostname by typing “ipconfig /all”.

IP or Domain Hostname – You can also fine IP/ Domain hostname from DOS. Just type “nslookup domain.com” to get host IP address. For example if we type “nslookup google.com” then the output will be as follows …

Similarly, you can find the domain hostname by typing “nslookup xxx.xxx.xxx.xxx
For example, if you type Google’s IP 74.125.67.100 then it will give you the output as below …

Now, if you try this command with your domain, it will give you the IP address. Next, you may get error [see the screenshot below] while trying to get the domain from IP lookup. It’s because your domain is on a shared IP. :) It’s only possible if your domain is on a dedicated IP Address.

Also there is another way to get hostname from IP address is as follows

Just type “ping –a xxx.xxx.xxx.xxx” If you run the above command with one of Google’s IP 74.125.67.100 it will give the out put like this …

For the reverse action, same thing applies for shared IP.

Related posts:

  1. Reverse DNS A Reverse DNS Lookup is the process of looking up...
  2. Change Hostname Here are some simple instructions on changing your computer’s local...
  3. What is Hostname Hostname is used on internet to give the name to...
  4. Know WhoIS info of site with DOS prompt Here I’m going to tell you one very interesting way...
  5. FQDN An FQDN (Fully qualified domain name) is a domain name...


Liked this post ? Subscribe to MWolk Blog via RSS Feed or via Email and receive free daily Tech and Money making tips.

4 Responses to “How to find Hostname”

  1. 1Alexis on Aug 13, 2010 :

    1) How do you find the password for your host name.
    2) How do you find the username to your Host Name.

    Please write back as soon as you can, i really need to figure this out.

  2. 2Darsih on Oct 4, 2010 :

    Please don’t laugh - I’m not a techie. Above you wrote:
    Local Hostname – To find localhost name, just open Command Prompt and type “hostname” to get the local hostname on you computer. Also, you will get the hostname by typing “ipconfig /all”.

    How to I find Command Prompt?

    We are fighting with yahoo about putting us on spammer list - it’s ridiculous - two accounts and one with virtually NO activity per month.

    thank you
    Darsi

  3. 3Daren on Feb 12, 2011 :

    To find the command prompt press the shortcut key “windows logo” + the letter “r” on your keyboard.

    A dialog box will pop up. Type the letters “cmd” and press “enter” on your keyboard or click “ok”.

  4. 4MBH on Apr 17, 2011 :

    I have a computer connecting to my network, that appears to be setup with a static connection, it isn’t appearing in my DHCP list, only in arp.
    How can I find the hostname of a computer on my local network? I have tried using nslookup and tracert, but did not get a name back.

Leave a Reply

Name Email Website URI