Contents

System/OS
2014.04.05 22:34

[linux] resolv.con 초기화 되는 문제

Views 4700 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
network를 재시작하면, resolv.conf가 자동 초기화 되는 현상을 겪었다.
그러던중 아래와 같은 원인과 해결책을 찾았다.

리눅스에서 DNS 설정을 바꾸려고 아래 파일을 수정한다.
/etc/resolv.conf
그리고 아래와 같이 서비스를 재시작 하거나 리부팅한다.
/sbin/service network restart
 
하지만  vmware 상에서는 /etc/resolv.conf 수동설정이 안된다.
DHCP 로 ip 를 자동으로 할당 받을때 /sbin/dhclient-script 에 의해서 resolv.conf 파일이 새로 생성되기 때문이다.
(vi /var/log/boot.log 를 보면 dhclient-script 가 /etc/resolv.conf 를 수정하는 것을 알수 있다.)
 
이 문제를 해결하기 위해서 /sbin/dhclient-script 가 /etc/resolv.conf 를 수정하지 못하도록 파일 속성을 불변으로 바꾼다.
chattr +i /etc/resolv.conf


[참고] 아래와 같은 경고가 나온다면 참고..
Bringing up interface eth0: Determining if ip address 121.78.127.197 is already in use for device eth0...
[해결방법] https://www.hooni.net/xe/39012

?

  1. [linux] 초간단 Postfix, Covecot, SSL/TLS (SMTP)

    Date2017.12.11 CategorySystem/OS Byhooni Views9512
    Read More
  2. [linux] 간단한 find 명령어 설명(업데이트 해야 함)

    Date2013.04.23 CategorySystem/OS Byhooni Views9178
    Read More
  3. [linux] man 명령어 뽀개기..

    Date2003.04.23 CategorySystem/OS Byhooni Views8778
    Read More
  4. HTTPS와 SSL 인증서

    Date2014.03.11 CategorySystem/OS Byhooni Views7638
    Read More
  5. SVN(Subversion) 설치와 설정 (sasl 인증 적용 포함)

    Date2014.09.11 CategorySystem/OS Byhooni Views5838
    Read More
  6. [windows] 윈도우즈 콘솔에서 정품인증 하는 방법

    Date2017.05.24 CategorySystem/OS Byhooni Views5634
    Read More
  7. [mac] 맥(OSX)에서 NTFS, 윈도우에서 HFS+ 사용하기

    Date2014.03.12 CategorySystem/OS Byhooni Views5184
    Read More
  8. [linux] awk 명령어

    Date2014.03.11 CategorySystem/OS Byhooni Views5043
    Read More
  9. [linux] CentOS 6.5 에서 "Bringing up interface eth0: Determining if ip address 121.78.127.197 is already in use for device eth0..."

    Date2014.04.05 CategorySystem/OS Byhooni Views4964
    Read More
  10. [linux] resolv.con 초기화 되는 문제

    Date2014.04.05 CategorySystem/OS Byhooni Views4700
    Read More
  11. [linux] 초간단 SquirrelMail 설치/설정 (다람쥐 메일)

    Date2017.12.11 CategorySystem/OS Byhooni Views4603
    Read More
  12. [linux] CentOS Apache Httpd에 https 적용

    Date2014.03.05 CategorySystem/OS Byhooni Views4590
    Read More
Board Pagination Prev 1 ... 8 9 10 11 12 13 14 15 16 17 Next
/ 17