
따라서 내 네트워크에는 외부 영역(서버의 공용 IP)과 내부 영역(서버의 LAN IP)이 있는 DNS 서버가 있습니다. 영역의 서버에서 nslookup을 수행하면 정확히 내가 원하는 로컬 IP가 확인됩니다. 그러나 ping이나 tracrt를 사용하고 퍼티를 사용하여 서버(IP 대신 www.blahblah.com)로 이동하면 모두 공용 IP를 사용합니다. DNS가 nslookup에서 로컬 IP를 확인하는 이유가 무엇인지 알 수 있지만 다른 작업을 시도할 때 공용 IP를 찾는 것입니다.
외부의 보기는 다음과 같습니다.
view "external"{
match-clients { any; };
recursion no;
내부용:
view "internal"{
match-clients { x.x.x.x/24; };
recursion yes;
xxxx는 올바른 IP 마스크를 사용하는 실제 값이 아닙니다. 영역은 각 뷰에 대해 설정된 {} 내에 있습니다.
내부 보기 및 영역은 names.conf.internal에 있습니다.
외부 보기 및 영역은 names.conf.external에 있습니다.
그들은 names.conf에 포함되어 있습니다.
명명된.conf:
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.internal";
include "/etc/bind/named.conf.external";
참고: 이는 Windows 시스템에만 해당되며 Linux 서버에서는 문제가 해결되는 것으로 보입니다.
예(xxxx = 로컬 IP bbbb = 공개):
C:\Users\[user]>nslookup www.[website].com
Server: UnKnown
Address: [dns server ip]
Name: www.[website].com
Address: x.x.x.x
C:\Users\[user]>ping www.[website].com
Pinging www.[website].com [b.b.b.b] with 32 bytes of data:
Reply from b.b.b.b: bytes=32 time=2ms TTL=64
Reply from b.b.b.b: bytes=32 time=3ms TTL=64
Reply from b.b.b.b: bytes=32 time=3ms TTL=64
Reply from b.b.b.b: bytes=32 time=3ms TTL=64
Ping statistics for b.b.b.b:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 2ms, Maximum = 3ms, Average = 2ms
답변1
바인드가 아니거나 이를 작동하는 DNS 서버가 Windows인 것으로 나타났습니다. 여러 Linux 서버에서 내부와 외부 해결 사이에 문제가 없음을 확인한 후 보조 DNS(원격 서버에는 로컬 영역이 없음)를 제거하고 Windows 시스템에서 DNS를 플러시한 후 올바르게 해결되기 시작했습니다.