whois

package module
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

README

golang-whois

golang-whois is light golang module for checking domain's whois using root servers.

Overview

whois.go: A golang module for domain whois query.

servers.go: Worldwide servers list for getting whois info.

extra.go: some extra functions to parse whois info

Installation

go get github.com/undiabler/golang-whois

Importing

import (
    "github.com/undiabler/golang-whois"
)

Example

result, err := whois.GetWhois("google.com")
if err == nil {
    fmt.Println(result)
}

LICENSE

Copyright 2015, undiabler

Apache License, Version 2.0

Domain zones

aaa aarp abb abbott abogado ac academy accenture accountant accountants aco active actor ads adult ae aeg aero af afl ag agency ai aig airforce airtel allfinanz alsace am amica amsterdam android apartments app apple aquarelle aramco archi army arpa arte as asia associates at attorney au auction audi audio author auto autos aw ax axa azure band bank bar barcelona barclaycard barclays bargains bauhaus bayern bbc bbva bcn be beats beer bentley berlin best bet bg bharti bi bible bid bike bing bingo bio biz bj black blackfriday bloomberg blue bms bmw bn bnl bnpparibas bo boats boehringer bom bond boo book boots bostik bot boutique br bradesco bridgestone broadway broker brother brussels budapest bugatti build builders business buy buzz bw by bzh ca cab cafe cal call camera camp cancerresearch canon capetown capital car caravan cards care career careers cars cartier casa cash casino cat catering cba cbn cc cd ceb center ceo cern cf cfa cfd ch chanel channel chat cheap chloe christmas chrome church ci cipriani circle cisco citic city cityeats cl claims cleaning click clinic clothing cloud club clubmed cn co coach codes coffee college cologne com commbank community company computer comsec condos construction consulting contractors cooking cool coop corsica country coupons courses cr credit creditcard creditunion cricket crown crs cruises csc cuisinella cx cymru cyou cz dabur dad dance date dating datsun day dclk de deals degree delivery dell delta democrat dental dentist desi design dev diamonds diet digital direct directory discount dk dm dnp docs dog doha domains doosan download drive durban dvag dz earth eat ec edu education ee email emerck energy engineer engineering enterprises epson equipment erni es esq estate eu eurovision eus events everbank exchange expert exposed express fage fail fairwinds faith family fan fans farm fashion fast feedback ferrero fi film final finance financial firestone firmdale fish fishing fit fitness fj flights florist flowers flsmidth fly fm fo foo football forex forsale forum foundation fr frl frogans fund furniture futbol fyi gal gallery game garden gbiz gd gdn gea gent genting gg ggee gh gi gift gifts gives giving gl glass gle global globo gmail gmo gmx gold goldpoint golf goo goog google gop got gov gq grainger graphics gratis green gripe group gs gucci guge guide guitars guru gy hamburg hangout haus healthcare help here hermes hiphop hitachi hiv hk hm hn hockey holdings holiday homedepot homes honda horse host hosting hoteles hotmail house how hr hsbc ht hu hyundai ibm icbc ice icu id ie ifm iinet il im immo immobilien in industries infiniti info ing ink institute insurance insure int international investments io ipiranga iq ir irish is ist istanbul it itau iwc jaguar java jcb je jetzt jewelry jlc jll jobs joburg jot joy jp jprs juegos kaufen kddi ke kg ki kia kim kinder kitchen kiwi koeln komatsu kr krd kred ky kyoto kz la lacaixa lamborghini lancaster land landrover lasalle lat latrobe law lawyer lc lds lease leclerc legal lexus lgbt li liaison lidl life lifestyle lighting like limited limo linde link live lixil lk loan loans lol london lotte lotto love lt ltd ltda lu lupin luxe luxury lv ly ma madrid maif maison man management mango market marketing markets marriott mba md me med media meet melbourne meme memorial men menu meo mg miami microsoft mini mk ml mma mn mo mobi moda moe moi mom monash money montblanc mormon mortgage moscow motorcycles mov movie movistar mp ms mt mtn mtpc mtr mu museum mutuelle mx my mz na nadex nagoya name navy nc nec net netbank network neustar new news nexus nf ng ngo nhk nico ninja nissan nl no nokia norton nowruz nra nrw ntt nu nyc nz obi office okinawa om omega one ong onl online ooo oracle orange org organic osaka otsuka ovh page panerai paris pars partners parts party pe pet pf pharmacy philips photo photography photos physio piaget pics pictet pictures pin ping pink pizza pl place play playstation plumbing plus pm pohl poker porn post pr praxi press pro prod productions prof properties property protection pt pub pw qa qpon quebec racing re read realtor realty recipes red redstone rehab reise reisen reit ren rent rentals repair report republican rest restaurant review reviews rich ricoh rio rip ro rocher rocks rodeo room rs rsvp ru ruhr run rwe ryukyu sa saarland safe sakura sale salon samsung sandvik sandvikcoromant sanofi sap sapo sarl saxo sb sbs sc sca scb schmidt scholarships school schule schwarz science scor scot se seat security seek sener services seven sew sex sexy sfr sg sh sharp shia shiksha shoes show shriram si singles site sk ski sky skype sl sm smile sn sncf so soccer social software sohu solar solutions sony soy space spiegel spreadbetting srl st stada starhub statoil stc stcgroup stockholm studio study style su sucks supplies supply support surf surgery suzuki swatch swiss sx sy sydney symantec systems tab taipei tatamotors tatar tattoo tax taxi tc tci team tech technology tel telefonica temasek tennis tf tg th thd theater theatre tickets tienda tips tires tirol tk tl tm tn to today tokyo tools top toray toshiba tours town toyota toys tr trade trading training travel travelers trust tui tv tw tz ua ubs ug uk university uno uol us uy uz vacations vana vc ve vegas ventures verisign versicherung vet vg viajes video villas vin vip virgin vision vista vistaprint viva vlaanderen vodka vote voting voto voyage vu wales walter wang watch webcam website wed wedding weir wf whoswho wien wiki williamhill win windows wine wme work works world ws wtc wtf xbox xerox xin xn--11b4c3d xn--1qqw23a xn--30rr7y xn--3bst00m xn--3ds443g xn--3e0b707e xn--3pxu8k xn--42c2d9a xn--45q11c xn--4gbrim xn--55qw42g xn--55qx5d xn--6frz82g xn--6qq986b3xl xn--80adxhks xn--80ao21a xn--80asehdb xn--80aswg xn--90a3ac xn--90ais xn--9dbq2a xn--9et52u xn--b4w605ferd xn--c1avg xn--c2br7g xn--cg4bki xn--clchc0ea0b2g2a9gcd xn--czr694b xn--czrs0t xn--czru2d xn--d1acj3b xn--d1alf xn--efvy88h xn--estv75g xn--fhbei xn--fiq228c5hs xn--fiq64b xn--fiqs8s xn--fiqz9s xn--fjq720a xn--flw351e xn--hxt814e xn--i1b6b1a6a2e xn--imr513n xn--io0a7i xn--j1aef xn--j1amh xn--j6w193g xn--kcrx77d1x4a xn--kprw13d xn--kpry57d xn--kput3i xn--lgbbat1ad8j xn--mgb9awbf xn--mgba3a3ejt xn--mgba3a4f16a xn--mgbaam7a8h xn--mgbab2bd xn--mgberp4a5d4ar xn--mgbt3dhd xn--mgbtx2b xn--mgbx4cd0ab xn--mk1bu44c xn--mxtq1m xn--ngbc5azd xn--node xn--nqv7f xn--nqv7fs00ema xn--nyqy26a xn--o3cw4h xn--ogbpf8fl xn--p1acf xn--p1ai xn--pssy2u xn--q9jyb4c xn--qcka1pmc xn--rhqv96g xn--ses554g xn--t60b56a xn--tckwe xn--unup4y xn--vermgensberater-ctb xn--vermgensberatung-pwb xn--vhquv xn--vuq861b xn--wgbl6a xn--xhq521b xn--y9a3aq xn--yfro4i67o xn--ygbi2ammx xn--zfr164b xperia xxx xyz yachts yamaxun yandex yodobashi yoga yokohama youtube yt zara zero zip zm zone zuerich

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCreationDate

func ParseCreationDate(whois string) (time.Time, error)

func ParseDomainStatus

func ParseDomainStatus(whois string) []string

Parse uniq domain status(codes) from whois

func ParseExpiryDate

func ParseExpiryDate(whois string) (time.Time, error)

func ParseIANAID

func ParseIANAID(whois string) (id int)

func ParseNameServers

func ParseNameServers(whois string) []string

Parse uniq name servers from whois

func ParseRegistrar added in v1.0.4

func ParseRegistrar(whois string) string

Types

type Whois

type Whois struct {
	DomainName   string
	Status       string
	DnsServers   []string
	CreationDate time.Time
	ExpiryDate   time.Time
	Registrar    string
	IanaID       int
}

func GetWhois

func GetWhois(domain string) (Whois, error)

Simple connection to whois servers with default timeout 5 sec

func GetWhoisTimeout

func GetWhoisTimeout(domain string, timeout time.Duration) (w Whois, err error)

Connection to whois servers with various time.Duration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL