우분투에 BIND를 설치했는데 nslookup이 성공하고 내 호스트 이름에 대한 핑이 성공했지만 외부 사이트 (예 : www.google.com)에 대한 핑이 작동하지 않습니다.
다음 오류 메시지가 나타납니다. ping : unknown host www.website.com
외부 네트워크에 ping을 할 수없는 이유가 있습니까? 내 설정은 다음과 같습니다.
ifconfig (스 니펫)
eth0
inet addr: 192.0.2.100 Bcast:192.0.2.4 Mask: 255.255.255.0
lo
inet addr: 127.0.0.1 Mask:255.0.0.0
/ etc / hosts
127.0.0.1 testing testing.local localhost
127.0.1.1 testing
/ etc / hostname
testing.local
/ etc / network / interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.0.2.100
netmask 255.255.255.0
network 192.0.2.0
broadcast 192.0.2.4
gateway 192.0.2.1
/etc/resolv.conf
nameserver 192.0.2.100
search testing.local
domain testing.local
/etc/bind/named.conf.options
forwarders {
192.0.2.1;
8.8.8.8;
8.8.4.4;
};
etc / bind / named.conf.local
#FORWARD LOOKUP ZONE
zone "testing.local"
{
type master;
file "/etc/bind/zones/testing.local.db";
};
#REVERSE LOOKUP ZONE
zone "0.0.192.in-addr.arpa"
{
type master;
file "rev.0.0.192.in-addr.arpa";
};
/etc/bind/zones/testing.local.db #FORWARD LOOKUP
$ORIGIN testing.local.
$TTL 3D
@ SOA testing.local. admin.testing.local. (12 4h 1h 1w 1h)
@ IN NS testing.local.
testing.local. IN A 192.0.2.100
www IN A 192.0.2.100
/etc/bind/zones/rev.0.0.10.in-addr.arpa #REVERSE LOOKUP
$ORIGIN testing.local.
$TTL 3D
@ SOA testing.local. admin.testing.local. (12 4h 1h 1w 1h)
@ IN NS testing.local.
1 IN PTR testing.local.
중요한지 잘 모르겠지만 아직 DHCP를 설치 / 구성하지 않았습니다. 내 설정을 방해했기 때문에 네트워크 관리자도 제거했습니다. 나는 많은 정보를 넣었다는 것을 알고 있습니다. 기본적으로 내가 편집 한 모든 것을하지만 나는 초보자이고 그것을 알아 내기 위해 하루 종일 보냈습니다. 여러분의 도움에 미리 감사드립니다.
'알 수없는 호스트'는이 특정 도메인 이름과 관련된 IP 주소를 확인할 수 없음을 의미합니다. 두 가지 가능성은 다음과 같습니다.
를 시도 dig www.website.com
하면 핑하려는 것이 무엇인지에 대한 아이디어를 얻을 수 있습니다. 대부분의 경우 설정에서 DNS 서버의 부족을보고있을 것입니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다