Lijit Ad Wijit

Buy Sell Today

Affiliate Banner

Access Ad

Elite Ad

Showing posts with label cmd. Show all posts
Showing posts with label cmd. Show all posts

How to find Hostname

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 [CMD] 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.

How to find Subnet Mask

How to find Subnet Mask
If you want to find your subnet mask of the network or if you are in the network but want to know what is my subnet mask, here is a handy article for you. Subnet mask helps to identify which section of an IP address is reserved for network and which part is available for the use of host. Subnet mask is also known as netmask. Now I’m going to tell you how to find subnet mask on your local network.

Windows Vista/ XP/NT/2003 – On Windows Vista, XP or other NT versions you can follow simple steps below.
[1] Go to Start Menu -> Run
[2] Type “cmd” and press enter to open the command prompt window.
[3] Now type “ipconfig /all” [without quotes]

You will get the subnet mask on your local network like the following screenshot.

Also you get the same information from the properties of Local Area Network. Just go to Start Menu -> Settings -> Network Connections and double click the Local Area Network icon. Then just click on the support tab at the top of the window.



Linux/ Unix – On Linux or Unix system just type following commands on shell to get the subnet mask.

$ ifconfig

or

$ /sbin/ifconfig

or

$ /sbin/ifconfig interface-name

The output will be as follows…

lnc0: flags=108843 mtu 1500
inet 72.122.61.51 netmask 0xfffffff8 broadcast 72.122.61.55
ether 00:0c:29:32:8a:8c
plip0: flags=108810 mtu 1500
lo0: flags=8049 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0×3
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000

The netmask is the subnet mask and displayed in hexadecimal format.

Lijit Ad Wijit

Access Elite


Access eLite's







Powered by Access eLite's