|Don't ask to ask, just ask|
Compare Host Namesby pileofrogs (Priest)
|on Dec 28, 2011 at 22:21 UTC||Need Help??|
pileofrogs has asked for the
wisdom of the Perl Monks concerning the following question:
I'm sure this question has been asked and answered before but I can't find it. I apologize.
I want to compare two hostnames to see if they point to the same host/IP. I think I need to query DNS and follow any CNAMEs to get to an A record and an IP address.
This seems like something someone would have already written, but I haven't found it. I must be using the wrong search terms.
Because I rarely make sense, here's an example.
Someone has written something to do this, right? What is it called?
And for extra credit, what search terms should I have used?