Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8366669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:58:19+00:00 2026-06-09T12:58:19+00:00

I need to find email address and name(of admin, registrar, tech if available) using

  • 0

I need to find email address and name(of admin, registrar, tech if available) using perl.

I have checked that whois output have varied output formats.
I tried Net::ParseWhois and also Net::WhoisNG, but i dont get the email address or name for different domains.

Like for example: whois google.com

Is there any way i can have the above details(email and name) from any domain using any perl module or how can i parse the whois output for any domain in perl.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T12:58:20+00:00Added an answer on June 9, 2026 at 12:58 pm

    Quick copy/paste directly from synopsis produced following:

    use strict;
    use warnings;
    use Net::WhoisNG;
    my $w=new Net::WhoisNG('google.com');
    if(!$w->lookUp()){
        print "Domain not Found\n";
        exit;
    }
    # If lookup is successful, record is parsed and ready for use
    
    foreach my $type (qw(admin tech registrant bill)) {
        my $contact=$w->getPerson($type);
        if ($contact) {
            print "$type\n";
            my $email = $contact->getEmail();
            if ($email and $email =~ /\S/) {
                print "$email\n";
            } else {
                my $unparsed = join(' ', @{$contact->getCredentials()});
                # Use an regexp to extract e-mail from freeform text here, you can even pick ready one somewhere here on SO
                print "$unparsed\n";
            }
            print "----\n\n";
        }
    }
    

    Result:

    admin
     dns-admin@google.com +1.6506234000 Fax: +1.6506188571
    ----
    
    tech
     dns-admin@google.com +1.6503300100 Fax: +1.6506181499
    

    I’ll leave exercise of extracting e-mail from freeform text to you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given an email address column, I need to find the position of the @
I need to find everything in a string that is not an e-mail address.
I have a file that I'm parsing that ALWAYS includes an email address. The
I have a simple textbox with an email address. I need to know the
I want to find all spans in a document that have the email attribute
So i need to do a find by id or email. The input can
I need to find a silence in a mp3 file. Simple as that. For
I need to find the longest sequence in a string with the caveat that
So I've got a user model, with login, email address, password, password confirmation, name,
I am using WWW::Mechanize to automatically add my email address as a preferred one.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.