¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 160°Ç
   
Configure Static DNS with DHCP
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2015-09-21 (¿ù) 14:33 Á¶È¸ : 3390
±ÛÁÖ¼Ò :
                          

CentOS 6.X
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
onBOOT=yes
BOOTPROTO=dhcp
DNS1=8.8.8.8
DNS2=168.126.63.1

# rm -f /etc/resolv.conf

# ifdown eth0; ifup eth0

# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search novalocal
nameserver 8.8.8.8
nameserver 168.126.63.1


Ubuntu 14.04 LTS
  /etc/dhcp/dhclient.conf ¼öÁ¤ 
:: DHCP ¿¡¼­ Á¤ÀÇµÈ DNS ÀÌ¿Ü¿¡ ¼³Á¤ÇÑ DNS ¼­¹ö Ãß°¡
supersede domain-name-servers 8.8.8.8, 168.126.63.1;
:: DHCP ¿¡¼­ Á¤ÀÇÇÑ DNS ¹«½ÃÇÏ°í ¼³Á¤ÇÑ DNS ¼­¹ö¸¸ Ãß°¡
prepend domain-name-servers 8.8.8.8, 168.126.63.1;

# ifdown eth0; ifup eth0

# cat /etc/resolv.conf
domain novalocal
search novalocal
nameserver 8.8.8.8
nameserver 168.126.63.1
nameserver 1XX.XXX.XXX.225   # supersede ¼³Á¤ÇßÀ» °æ¿ì

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.