Set correct class for DNS TXT queries

This commit is contained in:
Torsten Dreyer
2016-11-09 09:44:10 +01:00
parent c1e50e9a9c
commit 6a9235223e

View File

@@ -130,7 +130,7 @@ static void dnscbTXT(struct dns_ctx *ctx, struct dns_rr_txt *result, void *data)
void TXTRequest::submit()
{
// protocol and service an already encoded in DN so pass in NULL for both
if (!dns_submit_txt(NULL, getDn().c_str(), 0, 0, dnscbTXT, this )) {
if (!dns_submit_txt(NULL, getDn().c_str(), DNS_C_IN, 0, dnscbTXT, this )) {
SG_LOG(SG_IO, SG_ALERT, "Can't submit dns request for " << getDn());
return;
}