Answer the question
In order to leave comments, you need to log in
Why does DHCPD+BIND set TTL 60 (1 minute) for a record?
Greetings!
I set up a bunch of BIND + DHCPD
configured, dns update is normal,
BUT records are deleted and added every 1-2 minutes.
those. added, lives for a minute, left, a minute later only added again.
For some reason, dhcpd sets TTL 60 zones for dns (see at the very end of the post), how can I fix this?
I've already broken my head about mana.
Configs:
DHCPD:
server-identifier 192.168.0.1;
ddns-updates on;
ddns-update-style interim;
ddns-domainname "suv.";
ddns-ttl 38400;
ddns-rev-domainname "in-addr.arpa.";
ignore client-updates;
include "/etc/dhcp/rndc.key";
zone 0.168.192.in-addr.arpa. {
primary 192.168.0.1;
key "rndc-key";
}
zone suv. {
primary 192.168.0.1;
key "rndc-key";
}
option domain-name "suv";
option domain-name-servers 192.168.0.1;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
allow booting;
allow bootp;
authoritative;
log-facility local7;
subnet 192.168.0.0 netmask 255.255.255.0 {
authoritative;
range 192.168.0.10 192.168.0.254;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
allow unknown-clients;
}
options {
directory "/var/cache/bind";
dnssec-enable no;
dnssec-validation no;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
listen-on {
192.168.0.1;
127.0.0.1;
};
forwarders {
8.8.8.8;
8.8.4.4;
};
#recursion yes;
#allow-recursion { localhost; };
#allow-query { localhost; 192.168.0.0/16; };
#allow-transfer { localhost; 192.168.0.0/16; };
};
controls {
inet 127.0.0.1 allow {localhost; } keys { "rndc-key"; };
};
include "/etc/bind/rndc.key";
zone "suv" {
type master;
check-names ignore;
file "/var/lib/bind/suvenirus.org.hosts";
allow-update { key rndc-key; };
notify yes;
};
zone "0.168.192.in-addr.arpa" IN {
type master;
check-names ignore;
allow-update { key rndc-key; };
notify yes;
file "/var/lib/bind/192.168.1.rev";
};
ORIGIN .
$TTL 38400 ; 10 hours 40 minutes
suv IN SOA MainServer. 2me\.pavelk.gmail.com. (
1447019263 ; serial
10800 ; refresh (3 hours)
3600 ; retry (1 hour)
604800 ; expire (1 week)
38400 ; minimum (10 hours 40 minutes)
)
NS MainServer.
$ORIGIN suv.
$TTL 60 ; 1 minute
laser1PC A 192.168.0.15
TXT "003e9ba9fd2ca442e8f8f24ec486fb161b"
........ и так далее
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question