::arg().set("packetcache-ttl", "maximum number of seconds to keep a cached entry in packetcache")="3600";
::arg().set("max-packetcache-entries", "maximum number of entries to keep in the packetcache")="500000";
::arg().set("packetcache-servfail-ttl", "maximum number of seconds to keep a cached servfail entry in packetcache")="60";
- ::arg().set("server-id", "Returned when queried for 'id.server' TXT or NSID, defaults to hostname")="";
+ ::arg().set("server-id", "Returned when queried for 'id.server' TXT or NSID, defaults to hostname, set custom or 'disabled'")="";
::arg().set("stats-ringbuffer-entries", "maximum number of packets to store statistics for")="10000";
::arg().set("version-string", "string reported on version.pdns or version.bind")=fullVersionString();
::arg().set("allow-from", "If set, only allow these comma separated netmasks to recurse")=LOCAL_NETS;
if (qtype == QType::TXT || qtype == QType::ANY) {
if(qname == versionbind || qname == versionpdns)
answers.push_back({QType::TXT, "\""+::arg()["version-string"]+"\""});
- else
+ else if (s_serverID != "disabled")
answers.push_back({QType::TXT, "\""+s_serverID+"\""});
}
}