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

(새 문서: ;우분투 DNS 변경 ==확인== <source lang='dos'> root@Ubuntu12:~# cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT...)
 
잔글 (봇: 자동으로 텍스트 교체 (-<source lang='cli'> +<source lang='console'>))
 
(사용자 2명의 중간 판 4개는 보이지 않습니다)
2번째 줄: 2번째 줄:


==확인==
==확인==
<source lang='dos'>
<source lang='console'>
root@Ubuntu12:~# nslookup server
Server: 8.8.4.4
Address: 8.8.4.4#53
 
** server can't find server: NXDOMAIN
</source>
<source lang='console'>
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)
8번째 줄: 15번째 줄:
nameserver 8.8.4.4
nameserver 8.8.4.4
</source>
</source>
<source lang='dos'>
 
==변경==
<source lang='console'>
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
24번째 줄: 33번째 줄:
gateway 192.168.0.1
gateway 192.168.0.1
</source>
</source>
 
<source lang='console'>
==변경==
<source lang='dos'>
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='console'>
root@Ubuntu12:~# nslookup server
Server: 8.8.8.8
Address: 8.8.8.8#53
 
** server can't find server: NXDOMAIN
</source>
<source lang='console'>
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)

2016년 3월 29일 (화) 14:10 기준 최신판

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