
openvpn을 사용하여 회사 VPN에 연결할 때 DNS 확인이 작동을 멈췄습니다.터널블릭.
VPN에 연결하면 다음과 같은(예시된) DNS 설정이 설정됩니다.
james@macbook:~$ cat /etc/resolv.conf
#
# Mac OS X Notice
#
# This file is not used by the host name and address resolution
# or the DNS query routing mechanisms used by most processes on
# this Mac OS X system.
#
# This file is automatically generated.
#
search intra.example.com
nameserver 10.181.0.222
nameserver 192.168.0.1
FQDN을 사용하여 호스트 이름을 확인하면 다음과 같이 작동합니다.
james@macbook:~$ dig somehost.intra.example.com +noall +answer
; <<>> DiG 9.8.3-P1 <<>> somehost.intra.example.com +noall +answer
;; global options: +cmd
somehost.intra.example.com. 3600 IN A 10.182.1.37
그러나 검색 접미사 extra.example.com이 DNS 설정에 설정되어 있어도 호스트 이름만으로는 호스트를 확인할 수 없습니다.
james@macbook:~$ dig somehost +noall +answer
; <<>> DiG 9.8.3-P1 <<>> somehost +noall +answer
;; global options: +cmd
마지막으로 Macbook을 일시 중지하기 전까지 DNS 확인은 1시간 전까지 작동했습니다. 검색 접미사가 설정되어 있어도 호스트 이름을 확인할 수 없는 이유에 대한 단서가 있습니까?
답변1
DNS 서버를 쿼리하는 도구 와 마찬가지로 dig
주어진 매개변수가 이미 FQDN이라고 가정해야 합니다. nslookup
FQDN 제공 여부를 확인하고 적절한 접미사를 추가합니다.
그리고 한 가지 흥미로울 수 있는 것이 있습니다. OS-X의 dig 맨페이지에서 발췌한 내용입니다.
Mac OS X NOTICE
The dig command does not use the host name and address resolution or the DNS query routing mechanisms used by other
processes running on Mac OS X. The results of name or address queries printed by dig may differ from those found by
other processes that use the Mac OS X native name and address resolution mechanisms. The results of DNS queries may also
differ from queries that use the Mac OS X DNS routing library.
도움이 되었기를 바랍니다