LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-26-2012, 03:34 AM   #1
icegood
Member
 
Registered: Sep 2009
Posts: 58

Rep: Reputation: 15
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. 173.194.35.179 result as:
muc03s02-in-f19.1e100.net,

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:
"\017muc03s02-in-f19\005\061e100\003net"

So, why it substitutes dot with different numbers (id's of DNS nodes?) and where can i read about that?
 
Old 12-26-2012, 11:16 AM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,588

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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.

http://www.tldp.org/HOWTO/Bash-Promp...sequences.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rDNS / Need Help I_AM Linux - Networking 1 04-06-2010 10:12 PM
Setup RDNS wackolacko Linux - Server 3 03-01-2009 02:21 AM
rdns help requested sir-lancealot Linux - Server 6 01-31-2008 08:23 AM
named.. rdns help zarnold Linux - Server 2 09-05-2006 04:03 AM
Configure rDNS andy18 Linux - Networking 0 11-20-2003 04:50 PM


All times are GMT -5. The time now is 06:11 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration