"우분투 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...)
 
8번째 줄: 8번째 줄:
nameserver 8.8.4.4
nameserver 8.8.4.4
</source>
</source>
==변경==
<source lang='dos'>
<source lang='dos'>
root@Ubuntu12:~# cat /etc/network/interfaces
root@Ubuntu12:~# cat /etc/network/interfaces
24번째 줄: 26번째 줄:
gateway 192.168.0.1
gateway 192.168.0.1
</source>
</source>
==변경==
<source lang='dos'>
<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

2014년 8월 3일 (일) 14:13 판

우분투 DNS 변경

1 확인

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:~# 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 }}