DNS settings on Linux

For the DNS settings you can go to:

root @ axshell: / # vi / etc / resolv.conf

nameserver 202.159.32.2

nameserver 202.159.33.2 # address control in the match with the ISP you use

After that we restart our network with the command:

root @ axshell: / etc / init.d / networking restart

# We check your configuration is the way or not
root @ axshell: / # ifconfig
eth0 Link encap: Ethernet HWaddr 00:02:44:91:47:83
inet addr: 202.159.3.67 Bcast: 202.159.3.95 Mask: 255,255,255,224
UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric: 1
RX packets: 169988 errors: 67 dropped: 0 overruns: 0 frame: 0
TX packets: 6082 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 1528 txqueuelen: 1000
RX bytes: 141935582 (135.3 MiB) TX bytes: 812217 (793.1 KiB)
Interrupt: 5

lo Link encap: Local Loopback
inet addr: 127.0.0.1 Mask: 255.0.0.0
Loopback UP RUNNING MTU: 16436 Metric: 1
RX packets: 48 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 48 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 0
RX bytes: 3753 (3.6 KiB) TX bytes: 3753 (3.6 KiB)
root @ axshell: / # ping google.com
PING google.com (64.233.167.99) 56 (84) bytes of data.
64 bytes from py-in-f99.google.com (64.233.167.99): icmp_seq = 1 ttl = 237 time = 420 ms
64 bytes from py-in-f99.google.com (64.233.167.99): icmp_seq = 2 ttl = 237 time = 330 ms
64 bytes from py-in-f99.google.com (64.233.167.99): icmp_seq = 3 ttl = 237 time = 545 ms
64 bytes from py-in-f99.google.com (64.233.167.99): icmp_seq = 4 ttl = 237 time = 429 ms
64 bytes from py-in-f99.google.com (64.233.167.99): icmp_seq = 5 ttl = 237 time = 329 ms

- Google.com ping statistics –
5 packets transmitted, 5 received, 0% packet loss, time 4010ms
rtt min / avg / max / mdev = 329.664/411.183/545.187/79.429 ms
root @ axshell: / #

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.