in reply to Re: Re: (Net::DNS question)
in thread Looking for Net::DNS use syntax

Your original code only has one colon in that statement which is why you are getting the error.
Change
$res = new Net:DNS::Resolver;
so that it reads
$res = new Net::DNS::Resolver;