getdns_convert_fqdn_to_dns_name

This commit is contained in:
Willem Toorop 2014-01-09 14:13:33 +01:00
parent f305ac97da
commit 069a49035d
1 changed files with 7 additions and 3 deletions

View File

@ -70,11 +70,15 @@ getdns_convert_dns_name_to_fqdn(char *name_from_dns_response)
char *
getdns_convert_fqdn_to_dns_name(char *fqdn_as_string)
{
UNUSED_PARAM(fqdn_as_string);
return NULL;
ldns *rdf;
char *data;
if (ldns_str2rdf_dname(&rdf, fqdn_as_string) != LDNS_STATUS_OK)
return NULL;
data = (char *)ldns_rdf_data(rdf);
ldns_rdf_free(rdf);
return data;
}
/*---------------------------------------- getdns_convert_alabel_to_ulabel */
/**
* Convert UTF-8 string into an ACE-encoded domain