TCWHOIS

Additional

Language
Java
Version
2.0 (Oct 15, 2018)
Created
Oct 6, 2018
Updated
Oct 15, 2018 (Retired)
Owner
Saurabh Kumar (100rabhkr)
Contributor
Saurabh Kumar (100rabhkr)
1
Activity
Badge
Generate
Download
Source code

TCWHOIS

A small library which allows you to check whois records of any domain registered on whois.

Installation

To get a Git project into your build:

Step 1. Add the JitPack repository to your build file

To get a Git project into your build:

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

 allprojects {
  repositories {
   ...
   maven { url 'https://jitpack.io' }
  }
 }

Step 2. Add the dependency

 dependencies {
         implementation 'com.github.100rabhkr:TCWHOIS:v2.0'
 }

Usage

The TCWHOIS has a very simple usage:

 TCWHOIS ff = new TCWHOIS();
 try {  
     String strings = ff.getTCWHOIS(Domainname);  //This by default supports .com, .edu, .net
     //use this for other options
     //String strings = ff.getTCWHOIS(Domainname,TLDcode); 
     textView.setText(strings);  
 } catch (ExecutionException e) {  
 e.printStackTrace();  
 } catch (InterruptedException e) {  
 e.printStackTrace();  
 }

Note It can throw ExecutionException and InterruptedException so wrap it in a try-catch. Also The syntax of the domain name should be domainname.suffix(GTLDs, example: .com, .edu, .net etc) Currently the Registry database contains ONLY .COM, .NET, .EDU domains and Registrars. More TLDs are being added. Example: google.com and not www. google.com No need to add www or any other subdomain

UPDATE This Lirary now supports almost all the TLDs now here is a list of TLDs that are supported :- ac,ad,ae,aer,af,ag,ai,al,am,as,asi,at,au,aw,ax,az,ba,bar,be,ber,bes,bg,bi,biz,bj,bo,br,br.,bt,bw,by,bz,bzh,ca,cat,cc,cd,ceo,cf,ch,ci,ck,cl,clo,clu,cn,cn.,co,co.,com,coo,cx,cy,cz,de,dk,dm,dz,ec,edu,ee,eg,es,eu,eu.,eus,fi,fo,fr,gb,gb.,gb.,qc.,ge,gg,gi,gl,gm,gov,gr,gs,gy,ham,hip,hk,hm,hn,hos,hr,ht,hu,hu.,id,ie,il,im,in,inf,ing,ink,int,io,iq,ir,is,it,je,job,jp,ke,kg,ki,kr,kz,la,li,lon,lt,lu,lv,ly,ma,mc,md,me,mg,mil,mk,ml,mo,mob,ms,mt,mu,mus,mx,my,mz,na,nam,nc,net,nf,ng,nl,no,no.,nu,nz,om,ong,ooo,org,par,pe,pf,pic,pl,pm,pr,pre,pro,pt,pub,pw,qa,re,ro,rs,ru,sa,sa.,sb,sc,se,se.,se.,sg,sh,si,sk,sm,st,so,su,sx,sy,tc,tel,tf,th,tj,tk,tl,tm,tn,to,top,tp,tr,tra,tw,tv,tz,ua,ug,uk,uk.,uk.,ac.,gov,us,us.,uy,uy.,uz,va,vc,ve,vg,vu,wan,wf,wik,ws,xxx,xyz,yu,za.

These will be called TLD codes that can be used to get whois data of that particular TLD.

Please Note I've been trying to test all the TLDs, not all of them are tested as of now. Please feel free to raise an issue if there is one

Demo

View the Demo here

Result

The TCWHOIS library returns result it string form.

Sample Result

Domain Name: GOOGLE.COM  
Registry Domain ID: 2138514_DOMAIN_COM-VRSN  
Registrar WHOIS Server: whois.markmonitor.com  
Registrar URL: http://www.markmonitor.com  
Updated Date: 2018-02-21T18:36:40Z  
Creation Date: 1997-09-15T04:00:00Z  
Registry Expiry Date: 2020-09-14T04:00:00Z  
Registrar: MarkMonitor Inc.  
Registrar IANA ID: 292  
Registrar Abuse Contact Email: abusecomplaints@markmonitor.com  
Registrar Abuse Contact Phone: +1.2083895740  
Domain Status: clientDeleteProhibited   
https://icann.org/epp#clientDeleteProhibited  
Domain Status: clientTransferProhibited 
https://icann.org/epp#clientTransferProhibited  
Domain Status: clientUpdateProhibited 
https://icann.org/epp#clientUpdateProhibited  
Domain Status: serverDeleteProhibited  
https://icann.org/epp#serverDeleteProhibited  
Domain Status: serverTransferProhibited https://icann.org/epp#serverTransferProhibited  
Domain Status: serverUpdateProhibited  https://icann.org/epp#serverUpdateProhibited  
Name Server: NS1.GOOGLE.COM  
Name Server: NS2.GOOGLE.COM  
Name Server: NS3.GOOGLE.COM  
Name Server: NS4.GOOGLE.COM  
DNSSEC: unsigned  
URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/  

For more information on Whois status codes, please visit https://icann.org/epp  

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.  

Downloads

You can download the Library from releases

Note

Created and Managed By
@100rabhkr For The Collective Web