Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.unix.programmer > #8257
| From | spud@potato.field |
|---|---|
| Newsgroups | comp.unix.programmer |
| Subject | Resolver API question |
| Date | 2016-03-29 10:59 +0000 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <nddn6b$eqk$1@gioia.aioe.org> (permalink) |
I'm trying to decode the rdata field returned in a resource record by the ns_parserr() function. eg: ns_parserr(&msg,ns_s_an,i,&r_rec); rdata = ns_rr_rdata(r_rec); However the ns_name_uncompress() function only seems to work with rdata in NS records and using it on other types either produces garbage or an error but the rdata pointer still cannot be printed out directly. Does anyone know how to translate it for A and MX records? I know I could use ns_sprintferr() and then parse the output string but thats a bit ugly. There must be an nicer way. Thanks for any help. (Yes, I have googled this with no luck) -- Spud
Back to comp.unix.programmer | Previous | Next — Next in thread | Find similar
Resolver API question spud@potato.field - 2016-03-29 10:59 +0000
Re: Resolver API question Barry Margolin <barmar@alum.mit.edu> - 2016-03-29 11:35 -0400
Re: Resolver API question spud@potato.field - 2016-03-29 15:52 +0000
Re: Resolver API question Rainer Weikusat <rweikusat@talktalk.net> - 2016-03-30 15:54 +0100
csiph-web