Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^2: Creating hash with variables

by vonedaddy (Initiate)
on Feb 11, 2010 at 13:03 UTC ( #822645=note: print w/replies, xml ) Need Help??

in reply to Re: Creating hash with variables
in thread Creating hash with variables

First off THANK YOU all for the replies.

Here is some example data that a user would put into a web page which will be passed to this perl script.

I am writing this code to do some checks on DNS records before we (I work on a DNS team) add the records. I wanted to place the IP address from the input into a hash key and make the value the fqdn. This way I can dig against the IP and then see if what is returned matches whats in the hash. This would tell us that the record exists and matches what we expected and no action is needed. This is just one part of a larger DNS validation script I am writing (or attempting to write).

Thanks in advance for all your help

Replies are listed 'Best First'.
Re^3: Creating hash with variables
by Corion (Pope) on Feb 11, 2010 at 13:18 UTC

    Note that for general DNS applications, a hash is not necessarily the best choice of data structure, because one domain might resolve to different IP addresses ( , for PerlMonks) and multiple domains might resolve to the same IP address(es) ( , and use these two IP addresses). But for well-known, "major" IP addresses, a simple hash lookup might be what's needed.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://822645]
[Discipulus]: Tanktalus we will be glad to have you here more frequently, tho ;=)
[marioroy]: Lady_Aleena oh I thought you found the error by adding -exec mp3info
[Tanktalus]: Discipulus: I should be working on an interview test right now. Well, I kind of am, but keep getting myself distracted :)
[Lady_Aleena]: marioroy, nope, that IS the error.
[Discipulus]: oh to be distracted PM is still a wonderfull place
[Tanktalus]: Problem is, it's a test for another monk - as in, another monk letting me interview for his company :)
[Tanktalus]: He might see me here... :D
[Discipulus]: it's me? ;=)

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2017-04-23 19:57 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (432 votes). Check out past polls.