Ubuntu 14.04.02LTS resolvconf -u는 resolv.conf에 잘못된 "nameserver Google's" 행을 생성합니다.

Ubuntu 14.04.02LTS resolvconf -u는 resolv.conf에 잘못된 "nameserver Google's" 행을 생성합니다.

네트워크 관리자가 설치되지 않았습니다.

/etc/network/interfaces에는 다음과 같은 행 세트가 있습니다.

######################
# EXTERNAL INTERFACE #
######################

auto eth2
iface eth2 inet static
    address 192.168.1.234
    netmask 255.255.255.0
    gateway 192.168.1.1
    dns-nameservers 8.8.8.8 8.8.4.4 # Google's nameservers

#Google's nameservers나는 그 주석이 어떻게든 선택되어 . 의 끝에 두 개의 잘못된 줄을 생성했다고
생각 합니다 .resolvconf -uresolv.conf

그런데 댓글을 삭제하고 네트워크 서비스를 재시작해서
다시 실행해보니 resolvconf -u같은 문제가 발생했습니다. resolv.conf업데이트되었는지 확인하기 위해 편집을 시도했습니다 .

다음 명령을 실행했습니다 /etc.

find . -type f -exec grep "Google" {} /dev/null \; 

resolvconf잘못된 데이터를 추출 할 수 있는 파일을 검색하려고 했지만 운이 없었습니다.
어떤 아이디어가 있나요?

resolvconf물리적 라우터에서 정보를 가져오나요 ?

답변1

interfaces파일은 중간 댓글을 허용하지 않습니다. 인터페이스 정의를 다음으로 변경하십시오.

auto eth2
iface eth2 inet static
        address 192.168.1.234
        netmask 255.255.255.0
        gateway 192.168.1.1
        # use Google's name servers
        dns-nameservers 8.8.8.8 8.8.4.4

업데이트 연기를 활성화하지 않는 한 resolvconf프로그램을 수동으로 실행할 필요가 전혀 없습니다. 대신 ifdown eth2다음을 수행할 수 있습니다 ifup eth2.

관련 정보