I'm not even sure if I am asking this correctly, so please let me try and explain a little more. I've had minimal Perl experience and am trying to learn.

I am attempting to write a harvester that will move across my network so that I can keep an eye on what machines are up.

Essentially what I would like to figure out how to do is...

If I have a domain... foo.com and I have two other machines that exist as bar.foo.com and baz.foo.com. If I tell my script to look at foo.com it will print out some form of output showing that bar and baz exist.

I have been investigating Net::DNS, Sys::Hostname and so on in an attempt to figure this out on my own and after writing about 4 or 5 scripts that are useful, I still have not been able to accomplish what I am trying to do.

If anyone can point me to where I should go to learn how to do this or help me with how to actually write it, I would grateful.


In reply to How can I determine all the hosts on my network? by Ri-Del

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.