"우분투 DNS 변경"의 두 판 사이의 차이

잔글 (로봇: 자동으로 텍스트 교체 (-<source lang='dos'> +<source lang='cli'>))
2번째 줄: 2번째 줄:


==확인==
==확인==
<source lang='dos'>
<source lang='cli'>
root@Ubuntu12:~# nslookup server  
root@Ubuntu12:~# nslookup server  
Server: 8.8.4.4
Server: 8.8.4.4
9번째 줄: 9번째 줄:
** server can't find server: NXDOMAIN
** server can't find server: NXDOMAIN
</source>
</source>
<source lang='dos'>
<source lang='cli'>
root@Ubuntu12:~# cat /etc/resolv.conf
root@Ubuntu12:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
17번째 줄: 17번째 줄:


==변경==
==변경==
<source lang='dos'>
<source lang='cli'>
root@Ubuntu12:~# cat /etc/network/interfaces
root@Ubuntu12:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# This file describes the network interfaces available on your system
33번째 줄: 33번째 줄:
gateway 192.168.0.1
gateway 192.168.0.1
</source>
</source>
<source lang='dos'>
<source lang='cli'>
root@Ubuntu12:~# echo "nameserver 8.8.8.8" | resolvconf -a eth0.inet
root@Ubuntu12:~# echo "nameserver 8.8.8.8" | resolvconf -a eth0.inet
</source>
</source>


==확인 2==
==확인 2==
<source lang='dos'>
<source lang='cli'>
root@Ubuntu12:~# nslookup server
root@Ubuntu12:~# nslookup server
Server: 8.8.8.8
Server: 8.8.8.8
45번째 줄: 45번째 줄:
** server can't find server: NXDOMAIN
** server can't find server: NXDOMAIN
</source>
</source>
<source lang='dos'>
<source lang='cli'>
root@Ubuntu12:~# cat /etc/resolv.conf
root@Ubuntu12:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)

2015년 2월 6일 (금) 04:45 판

우분투 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 }}