diff options
| author | Adam <Adam@anope.org> | 2012-10-24 19:32:26 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2012-10-24 19:32:26 -0400 |
| commit | 1057fa842144e84563ddd887beaeaebe8c4f8a47 (patch) | |
| tree | c43d1706df45866d5c13fcfb8333d3ee62bbdfd0 /src/config.cpp | |
| parent | fca9ec085e74efa005dd981f2af2a6d6fd78ce89 (diff) | |
BIND's forward ability did not work as I expected
because it will not forward non recursive queries.
So, added support for SOA, NS, and AXFR requests.
Diffstat (limited to 'src/config.cpp')
| -rw-r--r-- | src/config.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config.cpp b/src/config.cpp index 6dc19e83a..b8ee7d5a2 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -208,8 +208,7 @@ ServerConfig::ServerConfig() : config_data(), NSDefFlags(NickCoreFlagStrings), C this->NameServer = "127.0.0.1"; } } - if (DNSEngine) - DNSEngine->SetFlag(SF_DEAD); + delete DNSEngine; DNSEngine = new DNSManager(this->NameServer, this->DNSIP, this->DNSPort); if (this->CaseMap == "ascii") @@ -1304,6 +1303,9 @@ ConfigItems::ConfigItems(ServerConfig *conf) {"dns", "timeout", "5", new ValueContainerTime(&conf->DNSTimeout), DT_TIME, NoValidation}, {"dns", "ip", "0.0.0.0", new ValueContainerString(&conf->DNSIP), DT_STRING, NoValidation}, {"dns", "port", "53", new ValueContainerInt(&conf->DNSPort), DT_INTEGER, NoValidation}, + {"dns", "admin", "admin@example.com", new ValueContainerString(&conf->DNSSOAAdmin), DT_STRING, NoValidation}, + {"dns", "primary_nameserver", "ns1.example.com", new ValueContainerString(&conf->DNSSOANS), DT_STRING, NoValidation}, + {"dns", "refresh", "3600", new ValueContainerUInt(&conf->DNSSOARefresh), DT_UINTEGER, NoValidation}, {"chanserv", "name", "", new ValueContainerString(&conf->ChanServ), DT_STRING, NoValidation}, {"chanserv", "defaults", "keeptopic secure securefounder signkick", new ValueContainerString(&CSDefaults), DT_STRING, ValidateChanServ}, {"chanserv", "maxregistered", "0", new ValueContainerUInt(&conf->CSMaxReg), DT_UINTEGER, ValidateChanServ}, |
