우분투 DNS 변경

Jmnote bot (토론 | 기여)님의 2015년 2월 6일 (금) 04:45 판 (로봇: 자동으로 텍스트 교체 (-<source lang='dos'> +<source lang='cli'>))
우분투 DNS 변경

1 확인

root@Ubuntu12:~# nslookup server 
Server:		8.8.4.4
Address:	8.8.4.4#53

** server can't find server: NXDOMAIN
root@Ubuntu12:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.4.4

2 변경

root@Ubuntu12:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.9
netmask 255.255.255.0
gateway 192.168.0.1
root@Ubuntu12:~# echo "nameserver 8.8.8.8" | resolvconf -a eth0.inet

3 확인 2

root@Ubuntu12:~# nslookup server
Server:		8.8.8.8
Address:	8.8.8.8#53

** server can't find server: NXDOMAIN
root@Ubuntu12:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8

4 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}