Fix TXT records under Bind (thanks Alex Sanderson for the patch)

This commit is contained in:
Ben Klang
2011-05-10 07:47:46 -04:00
parent 848069a058
commit b03539650f
2 changed files with 2 additions and 1 deletions

View File

@@ -648,7 +648,7 @@ static void write_rr(struct resourcerecord* rr, int ipdx, int znix)
if (tinyfile)
fprintf(tinyfile, "'%s:%s:%s:%s:%s\n", rr->dnsdomainname, rr->txt, rr->ttl, rr->timestamp, rr->location);
if (namedzone)
fprintf(namedzone, "%s.\t%s\tIN TXT\t%s.\n", rr->dnsdomainname, rr->ttl, rr->cname);
fprintf(namedzone, "%s\t%s\tIN TXT\t%s.\n", rr->dnsdomainname, rr->ttl, rr->txt);
} else if (strcasecmp(rr->type, "SRV")==0) {
if (tinyfile) {
fprintf(tinyfile, ":%s:33:\\%03o\\%03o\\%03o\\%03o\\%03o\\%03o", rr->dnsdomainname, rr->srvpriority >> 8, rr->srvpriority & 0xff, rr->srvweight >> 8, rr->srvweight & 0xff, rr->srvport >> 8, rr->srvport & 0xff);