LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-11-2011, 10:56 AM   #1
anilcliff
LQ Newbie
 
Registered: Sep 2011
Posts: 4

Rep: Reputation: Disabled
uniform result whois command line


I am looking for a free whois lookup tool that will give uniform result for whois lookup from the linux command line.

Currently:
whois of a .co.nz domain results nameserver as follows.
Code:
ns_name_01: ns1.domain.co.nz

ns_name_02: ns2.domain.co.nz
While that of a .net domain result as follows
Code:
DNS Servers:
      ns1.domain.net
      ns2.domain.net
And that of .com results in
Code:
Domain servers in listed order:
    ns1.domain.com
    ns2.domain.com
I need a uniform result for the whois nameserver records.
Example: All in the following format:
Code:
Nameserver: ns1.domain.tld
Nameserver: ns2.domain.tld
Can anyone help?
 
Old 09-12-2011, 06:20 AM   #2
anilcliff
LQ Newbie
 
Registered: Sep 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Anyone?
 
Old 09-12-2011, 03:18 PM   #3
zedmelon
Member
 
Registered: Jun 2004
Location: colorado, USA
Distribution: slack, oBSD
Posts: 119

Rep: Reputation: 22
Quote:
Originally Posted by anilcliff View Post
a free whois lookup tool that will give uniform result for whois lookup from the linux command line.
What's the context for needing this? We might have more ideas if the "why" behind the question is more clear.

A few lines of shell script featuring grep and sed would bring this output to "close enough" for any purpose I can imagine.

Due to my (apparently) rare need to whois I've never noticed this; are you certain it's universal to the domain type? I'm tempted to suspect it's driven more by application/version/config of the server answering the query.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Grep for the result of a command within the result of another command jasonws Programming 6 11-18-2010 03:39 PM
whois - command not found foxxer Mandriva 5 05-28-2005 03:31 PM
Whois command sdr_ar Mandriva 2 11-20-2004 10:43 PM
whois command not found? wtf? Smokey Slackware 4 09-19-2004 09:14 AM
whois command cmenjivar Linux - Newbie 4 08-29-2001 06:52 AM


All times are GMT -5. The time now is 06:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration