MacNN Forums (http://forums.macnn.com/)
-   Networking (http://forums.macnn.com/networking/)
-   -   Can You Get Rid of WHOIS Junk? (http://forums.macnn.com/92/networking/448479/can-you-get-rid-whois-junk/)

 
l008com Sep 21, 2011 07:22 AM
Can You Get Rid of WHOIS Junk?
When I run the `whois` command from the command line, on a "big name" domain (like `whois google.com`) I get all sorts of CRAP. The results of this are as follows:

Code:


[MacPro:~] johnm% whois "google.com"

Whois Server Version 2.0

Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.

GOOGLE.COM.ZZZZZZZZZZZZZ.GET.ONE.MILLION.DOLLARS.AT.WWW.UNIMUNDI.COM
GOOGLE.COM.ZZZZZ.GET.LAID.AT.WWW.SWINGINGCOMMUNITY.COM
GOOGLE.COM.ZOMBIED.AND.HACKED.BY.WWW.WEB-HACK.COM
GOOGLE.COM.ZNAET.PRODOMEN.COM
GOOGLE.COM.YUCEKIRBAC.COM
GOOGLE.COM.YUCEHOCA.COM
GOOGLE.COM.WORDT.DOOR.VEEL.WHTERS.GEBRUIKT.SERVERTJE.NET
GOOGLE.COM.VN
GOOGLE.COM.VABDAYOFF.COM
GOOGLE.COM.UY
GOOGLE.COM.UA
GOOGLE.COM.TW
GOOGLE.COM.TR
GOOGLE.COM.SUCKS.FIND.CRACKZ.WITH.SEARCH.GULLI.COM
GOOGLE.COM.SPROSIUYANDEKSA.RU
GOOGLE.COM.SOUTHBEACHNEEDLEARTISTRY.COM
GOOGLE.COM.SHQIPERIA.COM
GOOGLE.COM.SERVES.PR0N.FOR.ALLIYAH.NET
GOOGLE.COM.SAYS.IWANNATSAHEYLUWITHNINAT.COM
GOOGLE.COM.SA
GOOGLE.COM.REJSCRAP.COM
GOOGLE.COM.PE
GOOGLE.COM.PAVLINOFF-55-11-44.COM
GOOGLE.COM.MX
GOOGLE.COM.LASERPIPE.COM
GOOGLE.COM.IS.NOT.HOSTED.BY.ACTIVEDOMAINDNS.NET
GOOGLE.COM.IS.HOSTED.ON.PROFITHOSTING.NET
GOOGLE.COM.IS.APPROVED.BY.NUMEA.COM
GOOGLE.COM.HK
GOOGLE.COM.HICHINA.COM
GOOGLE.COM.HAS.LESS.FREE.PORN.IN.ITS.SEARCH.ENGINE.THAN.SECZY.COM
GOOGLE.COM.ESJUEGOS.NET
GOOGLE.COM.DO
GOOGLE.COM.CO
GOOGLE.COM.CN
GOOGLE.COM.BR
...

At the bottom of that list, it says
Quote
To single out one record, look it up with "xxx", where xxx is one of the
of the records displayed above. If the records are the same, look them up
with "=xxx" to receive a full display for each record.
But as you can see, that's exactly what I'm doing to come up with this in the first place. There must be some way to specify only the letter-for-letter domain you are typing in, and not run the whois as a search?
 
Spheric Harlot Sep 21, 2011 08:05 AM
nm.
 
l008com Sep 21, 2011 08:41 AM
nm indeed.
 
mduell Sep 22, 2011 03:40 PM
What info are you trying to get out of whois?
 
sfederman Sep 22, 2011 04:31 PM
Try it with 2 steps:

whois =google.com

That will tell you the registrar, and the whois server you can query:

Code:

 
MacBook-Pro:~ sfederman$ whois =google.com

Whois Server Version 2.0

Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.

  Server Name: GOOGLE.COM.ZZZZZZZZZZZZZ.GET.ONE.MILLION.DOLLARS.AT.WWW.UNIMUNDI.COM
  IP Address: 209.126.190.70
  Registrar: DIRECTI INTERNET SOLUTIONS PVT. LTD. D/B/A PUBLICDOMAINREGISTRY.COM
  Whois Server: whois.PublicDomainRegistry.com
  Referral URL: http://www.PublicDomainRegistry.com

  Server Name: GOOGLE.COM.ZZZZZ.GET.LAID.AT.WWW.SWINGINGCOMMUNITY.COM
  IP Address: 69.41.185.195
  Registrar: TUCOWS.COM CO.
  Whois Server: whois.tucows.com
  Referral URL: http://domainhelp.opensrs.net

  Server Name: GOOGLE.COM.ZOMBIED.AND.HACKED.BY.WWW.WEB-HACK.COM
  IP Address: 217.107.217.167
  Registrar: DOMAINCONTEXT, INC.
  Whois Server: whois.domaincontext.com
  Referral URL: http://www.domaincontext.com

  Server Name: GOOGLE.COM.ZNAET.PRODOMEN.COM
  IP Address: 62.149.23.126
  Registrar: DIRECTI INTERNET SOLUTIONS PVT. LTD. D/B/A PUBLICDOMAINREGISTRY.COM
  Whois Server: whois.PublicDomainRegistry.com
  Referral URL: http://www.PublicDomainRegistry.com

  Server Name: GOOGLE.COM.YUCEKIRBAC.COM
  IP Address: 88.246.115.134
  Registrar: DIRECTI INTERNET SOLUTIONS PVT. LTD. D/B/A PUBLICDOMAINREGISTRY.COM
  Whois Server: whois.PublicDomainRegistry.com
  Referral URL: http://www.PublicDomainRegistry.com

  Server Name: GOOGLE.COM.YUCEHOCA.COM
  IP Address: 88.246.115.134
  Registrar: DIRECTI INTERNET SOLUTIONS PVT. LTD. D/B/A PUBLICDOMAINREGISTRY.COM
  Whois Server: whois.PublicDomainRegistry.com
  Referral URL: http://www.PublicDomainRegistry.com

  Server Name: GOOGLE.COM.WORDT.DOOR.VEEL.WHTERS.GEBRUIKT.SERVERTJE.NET
  IP Address: 62.41.27.144
  Registrar: KEY-SYSTEMS GMBH
  Whois Server: whois.rrpproxy.net
  Referral URL: http://www.key-systems.net

  Server Name: GOOGLE.COM.VN
  Registrar: ONLINENIC, INC.
  Whois Server: whois.onlinenic.com
  Referral URL: http://www.OnlineNIC.com

  Server Name: GOOGLE.COM.VABDAYOFF.COM
  IP Address: 8.8.8.8
  Registrar: DOTSTER, INC.
  Whois Server: whois.dotster.com
  Referral URL: http://www.dotster.com

  Server Name: GOOGLE.COM.UY
  Registrar: DIRECTI INTERNET SOLUTIONS PVT. LTD. D/B/A PUBLICDOMAINREGISTRY.COM
  Whois Server: whois.PublicDomainRegistry.com
  Referral URL: http://www.PublicDomainRegistry.com

  Server Name: GOOGLE.COM.UA
  Registrar: DIRECTI INTERNET SOLUTIONS PVT. LTD. D/B/A PUBLICDOMAINREGISTRY.COM
  Whois Server: whois.PublicDomainRegistry.com
  Referral URL: http://www.PublicDomainRegistry.com

  Server Name: GOOGLE.COM.TW
  Registrar: WEB COMMERCE COMMUNICATIONS LIMITED DBA WEBNIC.CC
  Whois Server: whois.webnic.cc
  Referral URL: http://www.webnic.cc

  Server Name: GOOGLE.COM.TR
  Registrar: DIRECTI INTERNET SOLUTIONS PVT. LTD. D/B/A PUBLICDOMAINREGISTRY.COM
  Whois Server: whois.PublicDomainRegistry.com
  Referral URL: http://www.PublicDomainRegistry.com

  Server Name: GOOGLE.COM.SUCKS.FIND.CRACKZ.WITH.SEARCH.GULLI.COM
  IP Address: 80.190.192.24
  Registrar: EPAG DOMAINSERVICES GMBH
  Whois Server: whois.enterprice.net
  Referral URL: http://www.enterprice.net

  Server Name: GOOGLE.COM.SPROSIUYANDEKSA.RU
  Registrar: MELBOURNE IT, LTD. D/B/A INTERNET NAMES WORLDWIDE
  Whois Server: whois.melbourneit.com
  Referral URL: http://www.melbourneit.com

  Server Name: GOOGLE.COM.SOUTHBEACHNEEDLEARTISTRY.COM
  IP Address: 74.125.229.52
  Registrar: GODADDY.COM, INC.
  Whois Server: whois.godaddy.com
  Referral URL: http://registrar.godaddy.com

  Server Name: GOOGLE.COM.SHQIPERIA.COM
  IP Address: 70.84.145.107
  Registrar: ENOM, INC.
  Whois Server: whois.enom.com
  Referral URL: http://www.enom.com

  Server Name: GOOGLE.COM.SERVES.PR0N.FOR.ALLIYAH.NET
  IP Address: 84.255.209.69
  Registrar: GODADDY.COM, INC.
  Whois Server: whois.godaddy.com
  Referral URL: http://registrar.godaddy.com

  Server Name: GOOGLE.COM.SAYS.IWANNATSAHEYLUWITHNINAT.COM
  IP Address: 2001:470:C584:0:0:0:0:7E9D
  Registrar: ENOM, INC.
  Whois Server: whois.enom.com
  Referral URL: http://www.enom.com

  Server Name: GOOGLE.COM.SA
  Registrar: OMNIS NETWORK, LLC
  Whois Server: whois.omnis.com
  Referral URL: http://domains.omnis.com

  Server Name: GOOGLE.COM.REJSCRAP.COM
  IP Address: 216.239.38.21
  IP Address: 216.239.36.21
  IP Address: 216.239.34.21
  IP Address: 216.239.32.21
  Registrar: GODADDY.COM, INC.
  Whois Server: whois.godaddy.com
  Referral URL: http://registrar.godaddy.com

  Server Name: GOOGLE.COM.PE
  Registrar: DIRECTI INTERNET SOLUTIONS PVT. LTD. D/B/A PUBLICDOMAINREGISTRY.COM
  Whois Server: whois.PublicDomainRegistry.com
  Referral URL: http://www.PublicDomainRegistry.com

  Server Name: GOOGLE.COM.PAVLINOFF-55-11-44.COM
  IP Address: 64.29.154.69
  Registrar: HOSTOPIA.COM INC. D/B/A APLUS.NET
  Whois Server: whois.names4ever.com
  Referral URL: http://www.aplus.net

  Server Name: GOOGLE.COM.MX
  Registrar: DIRECTI INTERNET SOLUTIONS PVT. LTD. D/B/A PUBLICDOMAINREGISTRY.COM
  Whois Server: whois.PublicDomainRegistry.com
  Referral URL: http://www.PublicDomainRegistry.com

  Server Name: GOOGLE.COM.LASERPIPE.COM
  IP Address: 209.85.227.106
  Registrar: DIRECTI INTERNET SOLUTIONS PVT. LTD. D/B/A PUBLICDOMAINREGISTRY.COM
  Whois Server: whois.PublicDomainRegistry.com
  Referral URL: http://www.PublicDomainRegistry.com

  Server Name: GOOGLE.COM.IS.NOT.HOSTED.BY.ACTIVEDOMAINDNS.NET
  IP Address: 217.148.161.5
  Registrar: ENOM, INC.
  Whois Server: whois.enom.com
  Referral URL: http://www.enom.com

  Server Name: GOOGLE.COM.IS.HOSTED.ON.PROFITHOSTING.NET
  IP Address: 66.49.213.213
  Registrar: NAME.COM LLC
  Whois Server: whois.name.com
  Referral URL: http://www.name.com

  Server Name: GOOGLE.COM.IS.APPROVED.BY.NUMEA.COM
  IP Address: 213.228.0.43
  Registrar: GANDI SAS
  Whois Server: whois.gandi.net
  Referral URL: http://www.gandi.net

  Server Name: GOOGLE.COM.HK
  Registrar: UK2 GROUP LTD.
  Whois Server: whois.hostingservicesinc.net
  Referral URL: http://www.resell.biz

  Server Name: GOOGLE.COM.HICHINA.COM
  IP Address: 218.103.1.1
  Registrar: HICHINA ZHICHENG TECHNOLOGY LTD.
  Whois Server: grs-whois.hichina.com
  Referral URL: http://www.net.cn

  Server Name: GOOGLE.COM.HAS.LESS.FREE.PORN.IN.ITS.SEARCH.ENGINE.THAN.SECZY.COM
  IP Address: 209.187.114.130
  Registrar: TUCOWS.COM CO.
  Whois Server: whois.tucows.com
  Referral URL: http://domainhelp.opensrs.net

  Server Name: GOOGLE.COM.ESJUEGOS.NET
  IP Address: 97.74.144.165
  Registrar: DIRECTI INTERNET SOLUTIONS PVT. LTD. D/B/A PUBLICDOMAINREGISTRY.COM
  Whois Server: whois.PublicDomainRegistry.com
  Referral URL: http://www.PublicDomainRegistry.com

  Server Name: GOOGLE.COM.DO
  Registrar: GODADDY.COM, INC.
  Whois Server: whois.godaddy.com
  Referral URL: http://registrar.godaddy.com

  Server Name: GOOGLE.COM.CO
  Registrar: NAMESECURE.COM
  Whois Server: whois.namesecure.com
  Referral URL: http://www.namesecure.com

  Server Name: GOOGLE.COM.CN
  Registrar: XIN NET TECHNOLOGY CORPORATION
  Whois Server: whois.paycenter.com.cn
  Referral URL: http://www.xinnet.com

  Server Name: GOOGLE.COM.BR
  Registrar: ENOM, INC.
  Whois Server: whois.enom.com
  Referral URL: http://www.enom.com

  Server Name: GOOGLE.COM.BITERMANSOLUTIONS.COM
  IP Address: 8.8.8.8
  Registrar: GODADDY.COM, INC.
  Whois Server: whois.godaddy.com
  Referral URL: http://registrar.godaddy.com

  Server Name: GOOGLE.COM.BEYONDWHOIS.COM
  IP Address: 203.36.226.2
  Registrar: TUCOWS.COM CO.
  Whois Server: whois.tucows.com
  Referral URL: http://domainhelp.opensrs.net

  Server Name: GOOGLE.COM.AU
  Registrar: PLANETDOMAIN PTY LTD.
  Whois Server: whois.planetdomain.com
  Referral URL: http://www.planetdomain.com

  Server Name: GOOGLE.COM.AR
  Registrar: ENOM, INC.
  Whois Server: whois.enom.com
  Referral URL: http://www.enom.com

  Server Name: GOOGLE.COM.AFRICANBATS.ORG
  Registrar: TUCOWS.COM CO.
  Whois Server: whois.tucows.com
  Referral URL: http://domainhelp.opensrs.net

  Domain Name: GOOGLE.COM
  Registrar: MARKMONITOR INC.
  Whois Server: whois.markmonitor.com
  Referral URL: http://www.markmonitor.com
  Name Server: NS1.GOOGLE.COM
  Name Server: NS2.GOOGLE.COM
  Name Server: NS3.GOOGLE.COM
  Name Server: NS4.GOOGLE.COM
  Status: clientDeleteProhibited
  Status: clientTransferProhibited
  Status: clientUpdateProhibited
  Status: serverDeleteProhibited
  Status: serverTransferProhibited
  Status: serverUpdateProhibited
  Updated Date: 20-jul-2011
  Creation Date: 15-sep-1997
  Expiration Date: 14-sep-2020

>>> Last update of whois database: Thu, 22 Sep 2011 19:23:29 UTC <<<

NOTICE: The expiration date displayed in this record is the date the
registrar's sponsorship of the domain name registration in the registry is
currently set to expire. This date does not necessarily reflect the expiration
date of the domain name registrant's agreement with the sponsoring
registrar.  Users may consult the sponsoring registrar's Whois database to
view the registrar's reported date of expiration for this registration.

TERMS OF USE: You are not authorized to access or query our Whois
database through the use of electronic processes that are high-volume and
automated except as reasonably necessary to register domain names or
modify existing registrations; the Data in VeriSign Global Registry
Services' ("VeriSign") Whois database is provided by VeriSign for
information purposes only, and to assist persons in obtaining information
about or related to a domain name registration record. VeriSign does not
guarantee its accuracy. By submitting a Whois query, you agree to abide
by the following terms of use: You agree that you may use this Data only
for lawful purposes and that under no circumstances will you use this Data
to: (1) allow, enable, or otherwise support the transmission of mass
unsolicited, commercial advertising or solicitations via e-mail, telephone,
or facsimile; or (2) enable high volume, automated, electronic processes
that apply to VeriSign (or its computer systems). The compilation,
repackaging, dissemination or other use of this Data is expressly
prohibited without the prior written consent of VeriSign. You agree not to
use electronic processes that are automated and high-volume to access or
query the Whois database except as reasonably necessary to register
domain names or modify existing registrations. VeriSign reserves the right
to restrict your access to the Whois database in its sole discretion to ensure
operational stability.  VeriSign may restrict or terminate your access to the
Whois database for failure to abide by these terms of use. VeriSign
reserves the right to modify these terms at any time.

The Registry database contains ONLY .COM, .NET, .EDU domains and
Registrars.
Whois Error: No Match for "=GOOGLE.COM"
SMF-MacBook-Pro:~ sfederman$

So, Markmonitor is the Registrar, and their whois server is whois.markmonitor.com

So, then type:

whois -h whois.markmonitor.com google.com

Code:

MacBook-Pro:~ sfederman$ whois -h whois.markmonitor.com google.com

MarkMonitor is the Global Leader in Enterprise Brand Protection.

Domain Management
MarkMonitor Brand Protection™
AntiFraud Solutions
Corporate Consulting Services

Visit MarkMonitor at www.markmonitor.com
Contact us at 1 800 745 9229
In Europe, at +44 (0) 20 7840 1300


The Data in MarkMonitor.com's WHOIS database is provided by MarkMonitor.com
for information purposes, and to assist persons in obtaining information
about or related to a domain name registration record.  MarkMonitor.com
does not guarantee its accuracy.  By submitting a WHOIS query, you agree
that you will use this Data only for lawful purposes and that, under no
circumstances will you use this Data to: (1) allow, enable, or otherwise
support the transmission of mass unsolicited, commercial advertising or
solicitations via e-mail (spam); or  (2) enable high volume, automated,
electronic processes that apply to MarkMonitor.com (or its systems).
MarkMonitor.com reserves the right to modify these terms at any time.
By submitting this query, you agree to abide by this policy.

Registrant:
        Dns Admin
        Google Inc.
        Please contact contact-admin@google.com 1600 Amphitheatre Parkway
        Mountain View CA 94043
        US
        dns-admin@google.com +1.6502530000 Fax: +1.6506188571

    Domain Name: google.com

        Registrar Name: Markmonitor.com
        Registrar Whois: whois.markmonitor.com
        Registrar Homepage: http://www.markmonitor.com

    Administrative Contact:
        DNS Admin
        Google Inc.
        1600 Amphitheatre Parkway
        Mountain View CA 94043
        US
        dns-admin@google.com +1.6506234000 Fax: +1.6506188571
    Technical Contact, Zone Contact:
        DNS Admin
        Google Inc.
        2400 E. Bayshore Pkwy
        Mountain View CA 94043
        US
        dns-admin@google.com +1.6503300100 Fax: +1.6506181499

    Created on..............: 1997-09-15.
    Expires on..............: 2020-09-13.
    Record last updated on..: 2011-07-20.

    Domain servers in listed order:

    ns1.google.com
    ns4.google.com
    ns2.google.com
    ns3.google.com




MarkMonitor is the Global Leader in Enterprise Brand Protection.

Domain Management
MarkMonitor Brand Protection™
AntiFraud Solutions
Corporate Consulting Services

Visit MarkMonitor at www.markmonitor.com
Contact us at 1 800 745 9229
In Europe, at +44 (0) 20 7840 1300
--

 
l008com Sep 22, 2011 05:40 PM
This is all being done by a php script though, so the method won't work. But maybe I can just query a better server by default.
 
BLAZE_MkIV Sep 22, 2011 05:49 PM
you just need to grep the results for this entry, key of the "Domanin Name: GOOGLE.COM$" line. I think $ is the EOL character in regex. then use the "Whois Sever: {0}" to get the URL to run the second whios.

Domain Name: GOOGLE.COM
Registrar: MARKMONITOR INC.
Whois Server: whois.markmonitor.com
 
l008com Dec 27, 2012 07:53 PM
Spamming your whois lookup tool doesn't help me make a whois lookup tool.
 
besson3c Dec 27, 2012 08:11 PM
Quote, Originally Posted by l008com (Post 4113386)
This is all being done by a php script though, so the method won't work. But maybe I can just query a better server by default.
You can parse through the stdout of any Unix command available in your shell via PHP.
 
All times are GMT -4. The time now is 12:26 AM.

Copyright © 2005-2007 MacNN. All rights reserved.
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2015, vBulletin Solutions, Inc.


Content Relevant URLs by vBSEO 3.3.2