resolvconf.conf에서 name_servers=가 앞에 있지 않고 단독으로 사용됩니다.

resolvconf.conf에서 name_servers=가 앞에 있지 않고 단독으로 사용됩니다.

나는 그것을 활성화했고 rc-manager=resolvconf이제 NetworkManager.confresolvconf는 resolv.conf를 유지하는 데 사용됩니다. 현재 유선 연결만 있고 내 DHCP 서버는 2개의 검색 도메인과 4개의 네임서버를 반환하고 기본 resolvconf 구성을 사용하여 이를 모두 resolv.conf.

나는 독립형을 가지고 dnsmasq있으며 다음을 기반으로합니다 RESOLVCONF.CONF(5).

 name_servers
         Prepend name servers to the dynamically generated list.  You should 
         set this to 127.0.0.1 if you use a local name server other than libc.

그래서 name_servers=127.0.0.1주석을 제거했지만 resolvconf.conf이제 NetworkManager에서 연결을 활성화하면 검색 도메인만 resolv.confDHCP 설정에 따라 업데이트됩니다. 이름 서버의 경우 파일에는 항상 한 줄만 표시됩니다.

nameserver 127.0.0.1

resolvconf다른 4개의 네임서버를 여기에 연결하면 어떨까요 ?

NetworkManager에서 캡처된 매개변수와 표준 입력은 다음과 같습니다.

/usr/bin/resolvconf -a NetworkManager <<'EOF'
# Generated by NetworkManager
search domain1.com,domain2.com reallin.basin
nameserver 10.14.33.139
nameserver 10.14.33.140
nameserver 192.168.149.11
# NOTE: the libc resolver may not support more than 3 nameservers.
# The nameservers listed below may not be recognized.
nameserver 192.168.110.11
EOF

실제로는 활성화하고 싶지 않습니다 . DHCP에서 NetworkManager에 의해 추가된 네임서버에 127.0.0.1을 추가하는 것이 전부이지만 기본값을 사용하여 이 작업을 수행하는 resolvconf방법을 모르겠습니다 .rc-manager=symlink

답변1

이를 작동시키려면 추가 설정을 추가해야 했습니다.

resolv_conf_local_only=NO

놀랍게도 기본값은 "예"입니다.

관련 정보