for (auto& i : rrset) {
string icontent = i.getZoneRepresentation();
if (lowerCase) icontent = toLower(icontent);
- if (rrType == i.qtype.getCode() && icontent == content) {
- foundRecord=true;
+ if (rrType == i.qtype.getCode()) {
+ if (icontent == content) {
+ foundRecord=true;
+ }
if (i.ttl != rr->d_ttl) {
i.ttl = rr->d_ttl;
updateTTL++;
}
if (updateTTL > 0) {
di->backend->replaceRRSet(di->id, rr->d_name, rrType, rrset);
- g_log<<Logger::Notice<<msgPrefix<<"Replacing record "<<rr->d_name<<"|"<<rrType.toString()<<endl;
+ g_log<<Logger::Notice<<msgPrefix<<"Updating TTLs for "<<rr->d_name<<"|"<<rrType.toString()<<endl;
changedRecords += updateTTL;
} else {
- g_log<<Logger::Notice<<msgPrefix<<"Replace for record "<<rr->d_name<<"|"<<rrType.toString()<<" requested, but no changes made."<<endl;
+ g_log<<Logger::Notice<<msgPrefix<<"Replace for recordset "<<rr->d_name<<"|"<<rrType.toString()<<" requested, but no changes made."<<endl;
}
}
;; ZONE SECTION:
;test.dyndns. IN SOA
+0 test.dyndns. IN MX 3000 10 host-1.test.dyndns.
+0 test.dyndns. IN MX 3000 20 host-2.test.dyndns.
0 test.dyndns. IN MX 3000 30 host-3.test.dyndns.
-0 test.dyndns. IN MX 3600 10 host-1.test.dyndns.
-0 test.dyndns. IN MX 3600 20 host-2.test.dyndns.
2 host-1.test.dyndns. IN A 3600 127.0.0.101
2 host-2.test.dyndns. IN A 3600 127.0.0.102
2 host-3.test.dyndns. IN A 3600 127.0.0.103
;; ZONE SECTION:
;test.dyndns. IN SOA
-0 test.dyndns. IN MX 3600 10 host-1.test.dyndns.
-0 test.dyndns. IN MX 3600 20 host-2.test.dyndns.
+0 test.dyndns. IN MX 3000 10 host-1.test.dyndns.
+0 test.dyndns. IN MX 3000 20 host-2.test.dyndns.
2 host-1.test.dyndns. IN A 3600 127.0.0.101
2 host-2.test.dyndns. IN A 3600 127.0.0.102
Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
-0 test.dyndns. IN MX 3600 10 host-1.test.dyndns.
-0 test.dyndns. IN MX 3600 20 host-2.test.dyndns.
+0 test.dyndns. IN MX 3000 10 host-1.test.dyndns.
+0 test.dyndns. IN MX 3000 20 host-2.test.dyndns.
2 host-1.test.dyndns. IN A 3600 127.0.0.101
2 host-2.test.dyndns. IN A 3600 127.0.0.102
Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
;test.dyndns. IN SOA
0 test.dyndns. IN MX 3000 10 host-1.test.dyndns.
-0 test.dyndns. IN MX 3600 20 host-2.test.dyndns.
+0 test.dyndns. IN MX 3000 20 host-2.test.dyndns.
2 host-1.test.dyndns. IN A 3600 127.0.0.101
2 host-2.test.dyndns. IN A 3600 127.0.0.102
Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
-0 srv.test.dyndns. IN SRV 3600 1 100 389 server2.
0 srv.test.dyndns. IN SRV 3601 0 100 389 server1.
+0 srv.test.dyndns. IN SRV 3601 1 100 389 server2.
Rcode: 0 (No Error), RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='srv.test.dyndns.', qtype=SRV
1 test.dyndns. IN SOA 3600 ns1.test.dyndns. ahu.example.dyndns. [serial] 28800 7200 604800 86400