My question revolves around querying a DNS Server. A zone file of DNS looks like

omega A 164.100.9.207
tempweb1 CNAME omega
tempweb2 CNAME omega
. . . etc.. i am in the web hosting dept. now, what i had to do is.. in case.. i give a site name in the ".nic.in" domain.. say "tempweb3".. i should get all the URLS with the same IP Address.. omega, tempweb4, tempweb5.. tempweb10.. i used "gethostbyaddr"..and all.. thats giving me the name of the primary URL of tempweb3 only.. not all.. i made another prog.. but that is giving me the different names.. of the same site.. eg .. mail.yahoo.com and login.yahoo.com .. both give the same page.. i need that..plus i need the names of URLs that r not referring to the same site.. you see.. like indiannavy.nic.in, indianarmy.nic.in have same IP address.. but refer to diff places.. I hope I am able to put across my point. I have tried snippets, Net::DNS::RR, NET::DNS::Resolver... no luck..
Thanks..
Yogi

In reply to Reverse Recursive DNS Query by indian_yogi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.