-   Linux - Networking (
-   -   rDNS query answer (

icegood 12-26-2012 04:34 AM

rDNS query answer
Tried to parse reverse DNS query on low-level via libresolv.a means
(see res_query in man resolver(3)) f

I'm supposed to obtain for ip e.g. result as:,

but instead of that in filed rdata of struct __ns_rr
(see ns_initparse, ns_msg_count, ns_parserr in nameser.h) i obtained
smth. like that:

So, why it substitutes dot with different numbers (id's of DNS nodes?) and where can i read about that?

Kustom42 12-26-2012 12:16 PM

those look like ascii escape sequences which may be by design from the library used for the query. I may be wrong but this might be something to look into.

All times are GMT -5. The time now is 09:25 AM.