DNS 세팅 windows linux

*windows

DNSSetting

*linux

root@localhost:~# cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 211.181.141.122
netmask 255.255.255.0
gateway 211.181.141.1
dns-nameservers 8.8.8.8 8.8.4.4

Recommnad dns-nameservers : google DNS // 8.8.8.8 8.8.4.4

Reference:
http://answers.microsoft.com/en-us/windows/wiki/windows8_1-networking/how-to-change-ipv4-dns-server-address-to-public/56548e8d-eb9c-4fc5-807c-eefca5d278d0

centos5 와 6 모두 DNS정보가 /etc/resolv.conf 에 포함되어있지만

centos6은 /etc/sysconfig/network-scripts/ifcfg-eth0에도 포함되어있어 ifcfg-eth0에 정보가 남아있을경우에는

resolv.conf 파일이 삭제되어도 다시 정보그대로 생성된다.

/etc/init.d/network restart

* 확인
>nslookup
Default Server: dns.google.com
Address: 8.8.8.8

> set q=a
> naver.com
Server: dns.google.com
Address: 8.8.8.8

Non-authoritative answer:
Name: naver.com
Addresses: 202.179.177.21, 202.179.177.22, 125.209.222.142, 125.209.222.141

> set q=mx
> naver.com
Server: dns.google.com
Address: 8.8.8.8

Non-authoritative answer:
naver.com MX preference = 10, mail exchanger = mx1.naver.com
naver.com MX preference = 10, mail exchanger = mx4.naver.com
naver.com MX preference = 10, mail exchanger = mx3.naver.com
>