If you are not redirected automatically, follow this link to getdns_return_t getdns_str2bindata(const char *str, getdns_bindata **bindata).