Portál AbcLinuxu, 2. listopadu 2025 19:04
system {
identity on;
version on;
user knot.knot;
}
interfaces {
all_ipv4 {
address 0.0.0.0;
port 53;
}
all_ipv6 {
address [::];
port 53;
}
}
control {
listen-on "knot.sock";
}
zones {
195.205.99.in-addr.arpa {
file "/etc/knot/195.205.99.in-addr.arpa";
}
}
log {
syslog {
any info;
}
stderr {
any warning;
}
}
/etc/knot/195.205.91.in-addr.arpa:
$TTL 86400
195.205.99.in-addr.arpa. IN SOA ns1.example.com. admin.example.com. (
20120820 ; serial
4h ; slave refresh
2h ; slave retry interval
2w ; slave data expiration
1h ) ; maximum caching time when lookups fail
;
195.205.99.in-addr.arpa. IN NS ns1.example.com.
70.195.205.99.in-addr.arpa. IN PTR mx.example.com.
Kontrola zóny vypadá v pořádku, ale dotaz přes dig mi nic neodpoví.
root@ns1:~# knotc checkzone 195.205.99.in-addr.arpa
2014-07-16T15:48:57 Zone '195.205.99.in-addr.arpa.' OK./etc/init.d/knot restart root@ns1:~# dig @127.0.0.1 -x 91.205.195.70
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> @127.0.0.1 -x 99.205.195.70 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 53047 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;70.195.205.99.in-addr.arpa. IN PTR ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jul 16 15:49:45 2014 ;; MSG SIZE rcvd: 44
Řešení dotazu:
$ORIGIN 195.205.99.in-addr.arpa.
$TTL 86400
@ IN SOA ns1.example.com. admin.example.com. (
20120820 ; serial
4h ; slave refresh
2h ; slave retry interval
2w ; slave data expiration
1h ) ; maximum caching time when lookups fail
NS ns1.example.com.
70 IN PTR mx.example.com.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.