Tag Archives: hosts


host – DNS lookup utility
host [-aCdlnrsTwv] [-c class] [-N ndots] [-R number] [-t type] [-W wait] [-m flag] [-4] [-6] {name} [server]


hostname – show or set the system’s host name
dnsdomainname – show the system’s DNS domain name
hostname [-v] [-a] [--alias] [-d] [--domain] [-f] [--fqdn] [-i] [--ip- address] [--long] [-s] [--short] [-y] [--yp] [--nis]
hostname [-v] [-F filename] [--file filename] [hostname]

How to testing your website before switching DNS servers on domain record

You can test everything by editing the hosts file on your PC. In Unix system there is /etc/hosts.
The hosts file contains lines of text consisting of an IP address in the first text field followed by one or more hostnames, each field separated by white space (blanks or tabulation characters). Comment lines may be included; they are indicated by a hash character (#) in the first position of such lines. Entirely blank lines in the file are ignored.

If you want testing your website on server, add line on /etc/hosts with server IP (IP.SE.RV.ER) and domain name about your website. Open /etc/hosts file:
nano /etc/hosts
add this line:
IP.SE.RV.ER www.mywebsite.net
and save file. Now if you ping hostname about your website:
ping www.mywebsite.net
It pings on IP.SE.RV.ER!

Reference: wikipedia.org