Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!
0 Пользователей и 1 Гость просматривают эту тему.
$ORIGIN .$TTL 604800home.lan.<----->IN<---->SOA<--->server.home.lan.<------>root.home.lan.<>(<------>9;<------>28800;<------>604800;<------>604800;<------>86400;)$ORIGIN>home.lan.home.lan.<----->IN<---->NS<---->server.home.lan.server.home.lan.<------>IN<---->A<----->192.168.1.1
$ORIGIN .$TTL 604800<--->; 1 hour1.168.192.in-addr.arpa<>IN SOA<>server.home.lan. root.home.lan. (<------>9 ; serial<------>28800 ; refresh (15 minutes)<------>604800 ; retry (10 minutes)<------>604800 ; expire (1 day)<------>86400 ; minimum (1 hour)) NS<>server.home.lan.$ORIGIN 1.168.192.in-addr.arpa1<-----><------>PTR<--->server.home.lan.
nslookup 192.168.1.1Server: 127.0.0.1Address: 127.0.0.1#53** server can't find 1.1.168.192.in-addr.arpa: REFUSED
Mar 9 17:48:05 server named[6724]: client 127.0.0.1#39540: query '1.1.168.192.in-addr.arpa/PTR/IN' deniedMar 9 17:48:06 server named[6724]: client 127.0.0.1#52963: query '1.1.168.192.in-addr.arpa/PTR/IN' deniedMar 9 17:55:29 server named[6724]: client 127.0.0.1#46625: query 'server.home.lan/A/IN' deniedMar 9 17:55:30 server named[6724]: client 127.0.0.1#58375: query 'server.home.lan.home.lan/A/IN' deniedMar 9 17:55:45 server named[6724]: client 127.0.0.1#44002: query '1.0.0.127.in-addr.arpa/PTR/IN' deniedMar 9 17:55:46 server named[6724]: client 127.0.0.1#37594: query '1.0.0.127.in-addr.arpa/PTR/IN' deniedMar 9 17:57:50 server named[6724]: client 127.0.0.1#56844: query '1.1.168.192.in-addr.arpa/PTR/IN' deniedMar 9 17:57:51 server named[6724]: client 127.0.0.1#42212: query '1.1.168.192.in-addr.arpa/PTR/IN' deniedMar 9 17:59:50 server named[6724]: client 127.0.0.1#39837: query '16.1.168.192.in-addr.arpa/PTR/IN' deniedMar 9 17:59:55 server named[6724]: client 127.0.0.1#48770: query '2.1.168.192.in-addr.arpa/PTR/IN' deniedMar 9 18:00:00 server named[6724]: client 127.0.0.1#35961: query '4.1.168.192.in-addr.arpa/PTR/IN' denied
grep hosts /etc/nsswitch.confhosts: files dns
// This is the primary configuration file for the BIND DNS server named.//// Please read /usr/share/doc/bind9/README.Debian.gz for information on the// structure of BIND configuration files in Debian, *BEFORE* you customize// this configuration file.//// If you are just adding zones, please do that in /etc/bind/named.conf.localacl "net"{ localhost; 192.168.1.0/24; };include "/etc/bind/named.conf.options";include "/etc/bind/named.conf.local";include "/etc/bind/named.conf.default-zones";
// prime the server with knowledge of the root serverszone "." {<------>type hint;<------>file "/etc/bind/db.root";};// be authoritative for the localhost forward and reverse zones, and for// broadcast zones as per RFC 1912zone "127.in-addr.arpa" {<------>type master;<------>file "/etc/bind/db.127";};zone "0.in-addr.arpa" {<------>type master;<------>file "/etc/bind/db.0";};zone "255.in-addr.arpa" {<------>type master;<------>file "/etc/bind/db.255";};
//// Do any local configuration here//// Consider adding the 1918 zones here, if they are not used in your// organization//include "/etc/bind/zones.rfc1918";//домен home.lanzone "home.lan" {type master;file "/etc/bind/db.lan";};//обратная зонаzone "1.168.192.in-addr.arpa" {type master;file "/etc/bind/db.192.168.1";};
options {<------>directory "/etc/bind";<------>version "Version";<------>allow-query-cache { localhost; 127.0.0.1; 192.168.1.0/24; };<------>allow-recursion { 192.168.1.0/24; 127.0.0.1; };<------>allow-query { 192.168.1.0/24; };<------>listen-on{ 127.0.0.1; 192.168.1.1; };<------>// If there is a firewall between you and nameservers you want<------>// to talk to, you may need to fix the firewall to allow multiple<------>// ports to talk. See http://www.kb.cert.org/vuls/id/800113<------>// If your ISP provided one or more IP addresses for stable<------>// nameservers, you probably want to use them as forwarders.<------>// Uncomment the following block, and insert the addresses replacing<------>// the all-0's placeholder.<------>forwarders {<------> <----->195.2.238.4; 195.2.239.4; 8.8.8.8; 8.8.4.4;<------>};<------>auth-nxdomain yes; # conform to RFC1035<------>listen-on-v6 { none; };};
listen-on { 127.0.0.1; 192.168.1.1; }; allow-query { 192.168.1.0/24; };
listen-on { any; }; allow-query { 127.0.0.0/8; 192.168.1.0/24; };
<------>allow-query { 127.0.0.1; 192.168.1.0/24; };<------>listen-on{ 127.0.0.1; 192.168.1.1; };
nslookup 192.168.1.1Server: 127.0.0.1Address: 127.0.0.1#531.1.168.192.in-addr.arpa name = server.home.lan.
nslookup server.home.lanServer: 127.0.0.1Address: 127.0.0.1#53Name: server.home.lanAddress: 192.168.1.1
nslookup 127.0.0.1Server: 127.0.0.1Address: 127.0.0.1#531.0.0.127.in-addr.arpa name = localhost.
127/8 - это локальная сеть вашего хоста.Ограничивая её одним адресом, вы сознательно ставите себя в незавидное положение.
Страница сгенерирована за 0.031 секунд. Запросов: 25.