}
if (!getValueFromTable(lua, "nameserver", soadata.nameserver)) {
- soadata.nameserver = arg()["default-soa-name"];
+ soadata.nameserver = DNSName(arg()["default-soa-name"]);
if (soadata.nameserver.empty()) {
L<<Logger::Error << backend_name << "(getSOA)" << " Error: SOA Record is missing nameserver for the domain '" << name << "'" << endl;
lua_pop(lua, 1 );
}
if (!getValueFromTable(lua, "hostmaster", soadata.hostmaster))
- soadata.hostmaster = "hostmaster." + name;
+ soadata.hostmaster = DNSName("hostmaster")+DNSName(name);
lua_pop(lua, 1 );