<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">eth0를 수동 설정하고 나면 dns서버설정이 없어진다.</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">웹서핑을 해보면&nbsp; resolv.conf를 수정해서 dns서버를 입력하라는 이야기들이 많은데</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">결론만 말하면 삽질이다,</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">네트워크가 재시작되는 순간 덮어쎠져버려서 설정이 날라가니까...</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">그렇게 될꺼라는 설명도 사실은 resolv.conf파일에 잘 되어있다.</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">&nbsp;</p>
<table class="txc-table" border="0" cellpadding="0" cellspacing="0" width="627" style="margin: 0px; padding: 0px; border-width: initial; border-style: none; border-color: initial; line-height: 1.5; font-family: 돋움; color: #717171; background-color: #ffffff;">
   <tbody style="margin: 0px; padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif;">
      <tr style="margin: 0px; padding: 0px; border: none; line-height: 1.5;">
         <td style="margin: 0px; padding: 0px; border-style: solid; line-height: 1.5;"># Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" />#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b style="margin: 0px; padding: 0px; border: none; line-height: 1.5;"><span style="margin: 0px; padding: 0px; border: none; line-height: 1.5; color: #ff0000;">DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN</span></b><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></td>
         </tr>
      </tbody>
   </table>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">&nbsp;</p>
<p><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff; text-align: center; clear: none; float: none;"><span class="imageblock" style="margin: 5px 0px; padding: 0px; border: none; line-height: 1.5; display: inline-block; width: 644px; height: auto; max-width: 100%;"><img src="https://t1.daumcdn.net/cfile/tistory/1440BE4350420CEE21" width="644" filename="resolv_conf.jpg" filemime="image/jpeg" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; max-width: 100%; height: auto;" /></span></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">웹서핑을 하다보니 resolv.conf파일에 쓰기권한을 없애서..(혹은 링크를 이용해 비슷한 효과로)&nbsp;<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">해결을 하는 경우도 있지만 그 또한 일반적인 방법은 아닌듯 하다.<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">그럼 해결을 해보자.</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">ip정적설정을 했던 interfaces파일을 다시 수정하자.</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">&nbsp;</p>
<table class="txc-table" border="0" cellpadding="0" cellspacing="0" width="627" style="margin: 0px; padding: 0px; border-width: initial; border-style: none; border-color: initial; line-height: 1.5; font-family: 돋움; color: #717171; background-color: #ffffff;">
   <tbody style="margin: 0px; padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif;">
      <tr style="margin: 0px; padding: 0px; border: none; line-height: 1.5;">
         <td style="margin: 0px; padding: 0px; border-style: solid; line-height: 1.5;">sudo nano /etc/network/interfaces</td>
         </tr>
      </tbody>
   </table>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">&nbsp;</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">&nbsp;</p>
<table class="txc-table" border="0" cellpadding="0" cellspacing="0" width="627" style="margin: 0px; padding: 0px; border-width: initial; border-style: none; border-color: initial; line-height: 1.5; font-family: 돋움; color: #717171; background-color: #ffffff;">
   <tbody style="margin: 0px; padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif;">
      <tr style="margin: 0px; padding: 0px; border: none; line-height: 1.5;">
         <td style="margin: 0px; padding: 0px; border-style: solid; line-height: 1.5;">&nbsp;This file describes the network interfaces available on your system<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /># and how to activate them. For more information, see interfaces(5).<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /># The loopback network interface<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" />auto lo<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" />iface lo inet loopback<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /># The primary network interface<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" />#auto eth0<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" />#iface eth0 inet dhcp<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" />
            <p style="padding: 0px; border: none; line-height: 1.5;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
            <p style="padding: 0px; border: none; line-height: 1.5;">auto eth0<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" />iface eth0 inet static<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" />&nbsp; address 192.168.0.254<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" />&nbsp; netmask 255.255.255.0<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" />&nbsp; netwrok 192.168.0.0<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" />&nbsp; broadcast 192.168.0.255<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" />&nbsp; gateway 192.168.0.1<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" />&nbsp;&nbsp;<b style="margin: 0px; padding: 0px; border: none; line-height: 1.5;"><span style="margin: 0px; padding: 0px; border: none; line-height: 1.5; color: #ff0000;">dns-nameservers 168.192.63.1 168.192.63.2 8.8.8.8</span></b><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" />&nbsp; mtu 9000<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" />&nbsp;</p>
            </td>
         </tr>
      </tbody>
   </table>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">&nbsp;</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">&nbsp;</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">interfaces파일에 dns서버를 적용하면 끝..</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">참고로<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">168.192.63.1</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">168.192.63.2</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">는 KT DNS이고..</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">8.8.8.8</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">8.8.4.4<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">는 구글의 공개 DNS이다.</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">이제 네트워크를 재시작한다</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">&nbsp;</p>
<table class="txc-table" border="0" cellpadding="0" cellspacing="0" width="627" style="margin: 0px; padding: 0px; border-width: initial; border-style: none; border-color: initial; line-height: 1.5; font-family: 돋움; color: #717171; background-color: #ffffff;">
   <tbody style="margin: 0px; padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif;">
      <tr style="margin: 0px; padding: 0px; border: none; line-height: 1.5;">
         <td style="margin: 0px; padding: 0px; border-style: solid; line-height: 1.5;">
            <p style="padding: 0px; border: none; line-height: 1.5;">sudo /etc/init.d/networking restart<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
            </td>
         </tr>
      </tbody>
   </table>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">&nbsp;</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">host명령을 사용하여 테스트해본다.</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">&nbsp;</p>
<table class="txc-table" border="0" cellpadding="0" cellspacing="0" width="627" style="margin: 0px; padding: 0px; border-width: initial; border-style: none; border-color: initial; line-height: 1.5; font-family: 돋움; color: #717171; background-color: #ffffff;">
   <tbody style="margin: 0px; padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif;">
      <tr style="margin: 0px; padding: 0px; border: none; line-height: 1.5;">
         <td style="margin: 0px; padding: 0px; border-style: solid; line-height: 1.5;">
            <p style="padding: 0px; border: none; line-height: 1.5;">host ubuntu.com&nbsp;<br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
            </td>
         </tr>
      </tbody>
   </table>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">&nbsp;</p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;"><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5;" /></p>
<p style="padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;">host에 해당하는 ip주소를 반환하면 성공.</p>
<p><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;" /><br style="margin: 0px; padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; color: #717171; background-color: #ffffff;" /><span style="color: #717171; font-family: dotum, sans-serif; background-color: #ffffff;">출처:&nbsp;</span><a href="https://realizm.tistory.com/67" style="margin: 0px; padding: 0px; border: none; line-height: 1.5; font-family: dotum, sans-serif; text-decoration-line: none; background-color: #ffffff;" target="_blank">https://realizm.tistory.com/67</a><span style="color: #717171; font-family: dotum, sans-serif; background-color: #ffffff;">&nbsp;[잡동사니]</span></p>