diff --git a/ChangeLog b/ChangeLog index 1e8d29c..8221f66 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ Version 0.5.0-beta (latest) * Fix handling of background daemon mode * Add option to run in daemon mode without forking, staying in the foreground * Add support for IPv6 AAAA records +* Fix TXT records under Bind (thanks Alex Sanderson for the patch) Version 0.4.2 * Add SMF manifest diff --git a/ldap2dns.c b/ldap2dns.c index c549fc2..52bea1c 100644 --- a/ldap2dns.c +++ b/ldap2dns.c @@ -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);