LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
Distribution: ubuntu 21.04
Posts: 65

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,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:29 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration