in reply to how to get reply from dns server

Is this coursework ? Recent thread 724155 appears to have a similar question, towards the end.

Replies are listed 'Best First'.
Re^2: how to get reply from dns server
by Anonymous Monk on Nov 20, 2008 at 13:26 UTC
    And to think.... you so helpfully did their homework for them.

      It's tricky to judge, isn't it :-(

      I tried to help only with Perl features that would contribute to a solution... The sort of thing not obvious if you're, say, a 'C' programmer. The first poster nearly had the packing piece.

      ...if you think the fragments of code I posted are a complete solution, then you don't know the scale of the problem :-)