[Pdns-users] PDNS inconsistent behavior for SOA record
Anthony fajri
anthony.fajri at gmail.com
Tue Jun 5 15:57:32 UTC 2018
Hi Expert,
we are using PDNS for our 3GPP DNS Server.
we are using PDNS 2.9.22.6 on Centos 5.
we want to achieve following objective:
- to return TTL of SOA record as 60s for specific IP
- to return TTL of SOA record as 7 days for all IP
our configuration is as following:
if(($qtype eq "SOA" || $qtype eq "ANY") && ($qname =~ /
epc.mnc001.mcc001.3gppnetwork.org/)) {
if($ip eq "200.200.100.1" || $ip eq "200.200.100.5" || $ip eq
"200.200.100.6" || $ip eq "200.200.99.1" || $ip eq "200.200.99.4" || $ip eq
"200.200.99.7" || $ip eq "10.4.7.200") {
if($qtype eq "SOA") {
# print "DATA\t$qname\t$qclass\tSOA\t20\t1\
tgrxdns1.epc.mnc001.mcc001.3gppnetwork.org.
postmaster.epc.mnc001.mcc001.3gppnetwork.org. 2013050400 3600 3600 604800
600\n";
print "DATA\t$qname\t$qclass\tSOA\t60\t1\
tgrxdns1.epc.mnc001.mcc001.3gppnetwork.org.
postmaster.epc.mnc001.mcc001.3gppnetwork.org. 2018060100 900 900 1800 60\n";
}
} else {
print "DATA\t$qname\t$qclass\tSOA\t604800\t1\
tgrxdns1.epc.mnc001.mcc001.3gppnetwork.org.
postmaster.epc.mnc001.mcc001.3gppnetwork.org. 2013050400 3600 3600 604800
600\n";
}
}
however, the result is inconsistent.
sometime it returns the exepcted value (TTL of 60 second), but some other
time it returns with default value.
rossi20:/home/CORP/anthony.fajri$ date && dig
topoff.s8gp.pgw.nodes.epc.mnc001.mcc001.3gppnetwork.org @10.16.16.18 SOA |
grep grxdns
Tue Jun 5 08:53:42 PDT 2018
topoff.s8gp.pgw.nodes.epc.mnc001.mcc001.3gppnetwork.org. 604800 IN SOA
grxdns1.epc.mnc001.mcc001.3gppnetwork.org.
postmaster.epc.mnc001.mcc001.3gppnetwork.org. 2013050400 3600 3600 604800
600
rossi20:/home/CORP/anthony.fajri$ date && dig
topoff.s8gp.pgw.nodes.epc.mnc001.mcc001.3gppnetwork.org @10.16.16.18 SOA |
grep grxdns
Tue Jun 5 08:53:42 PDT 2018
topoff.s8gp.pgw.nodes.epc.mnc001.mcc001.3gppnetwork.org. 604800 IN SOA
grxdns1.epc.mnc001.mcc001.3gppnetwork.org.
postmaster.epc.mnc001.mcc001.3gppnetwork.org. 2013050400 3600 3600 604800
600
rossi20:/home/CORP/anthony.fajri$ date && dig
topoff.s8gp.pgw.nodes.epc.mnc001.mcc001.3gppnetwork.org @10.16.16.18 SOA |
grep grxdns
Tue Jun 5 08:53:43 PDT 2018
topoff.s8gp.pgw.nodes.epc.mnc001.mcc001.3gppnetwork.org. 60 IN SOA
grxdns1.epc.mnc001.mcc001.3gppnetwork.org.
postmaster.epc.mnc001.mcc001.3gppnetwork.org. 2018060100 900 900 1800 60
rossi20:/home/CORP/anthony.fajri$ date && dig
topoff.s8gp.pgw.nodes.epc.mnc001.mcc001.3gppnetwork.org @10.16.16.18 SOA |
grep grxdns
Tue Jun 5 08:53:43 PDT 2018
topoff.s8gp.pgw.nodes.epc.mnc001.mcc001.3gppnetwork.org. 60 IN SOA
grxdns1.epc.mnc001.mcc001.3gppnetwork.org.
postmaster.epc.mnc001.mcc001.3gppnetwork.org. 2018060100 900 900 1800 60
rossi20:/home/CORP/anthony.fajri$ date && dig
topoff.s8gp.pgw.nodes.epc.mnc001.mcc001.3gppnetwork.org @10.16.16.18 SOA |
grep grxdns
Tue Jun 5 08:53:46 PDT 2018
we don't have duplicate record for SOA.
can someone advise on this issue?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20180605/63dbd536/attachment.html>
More information about the Pdns-users
mailing list