DNSName ordername;
if(haveNSEC3) {
if(!narrow)
- ordername=DNSName(toBase32Hex(hashQNameWithSalt(ns3pr, zone))) + zone;
+ ordername=DNSName(toBase32Hex(hashQNameWithSalt(ns3pr, zone)));
} else
- ordername=zone;
+ ordername=DNSName("");
if(g_verbose)
cerr<<"'"<<rr.qname<<"' -> '"<< ordername <<"'"<<endl;
sd.db->updateDNSSECOrderNameAndAuth(sd.domain_id, rr.qname, ordername, true);
--- /dev/null
+#!/bin/sh
+
+mysqldiff
+
+$PDNSUTIL --config-dir=. --config-name=gmysql increase-serial test.dyndns
+
+mysqldiff 1 "Check that test.dyndns. still has a valid ordername"
+
+[ -z "$GMYSQLDB" ] && GMYSQLDB=pdnstest
+[ -z "$GMYSQLUSER" ] && GMYSQLUSER=root
+[ -z "$GMYSQLHOST" ] && GMYSQLHOST=localhost
+[ -z "$GMYSQLPASSWD" ] && GMYSQLPASSWD=''
+
+mysql --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" \
+ "$GMYSQLDB" \
+ -e "UPDATE records SET content='ns1.test.dyndns ahu.example.dyndns 2012060701 28800 7200 604800 86400' WHERE name='test.dyndns' AND type='SOA'"
--- /dev/null
+Make sure that pdnsutil increase-serial does not destroy ordername.
--- /dev/null
+SOA serial for zone test.dyndns set to 2012060702
+Check that test.dyndns. still has a valid ordername
+--- Start: diff start step.1 ---
+no difference
+--- End: diff start step.1 ---
+
--- /dev/null
+Skip this test if the backend does not support dyndns/rfc2136