Wednesday, December 15, 2010

Determining DNS

Up here actually been connected to the internet, but only
get a connection by using IP-IP only, while not yet
certainly can surf the internet by way of writing the names of
domains or Web sites (website) which is used on the internet.
It is necessary to enter the IP-IP control that have been obtained to the
in a file called "resolv.conf" located in the directory "/ etc".
Usually this file is still empty.
root @ hostname: ~ # cat / etc / resolv.conf
And to add content to it can use the command
"Echo".
root @ hostname: ~ # echo "nameserver 202.155.19.2"> / etc / resolve.conf
root @ hostname: ~ # echo "nameserver 202.155.19.4">> / etc / resolv.conf
After plus two records, the contents of the file
/ Etc / resolv.conf:
2:05-bash # cat / etc / resolv.conf
search stikom.edu
nameserver 202.155.19.2
nameserver 202.155.19.4
Then can use the command "ping" to check whether
the connections properly.
root @ hostname: ~ # ping-c 5 www.indosat.net.id

No comments:

Post a Comment