Skip to content

nat-27/domainage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

domainage

Really simple wrapper around rdap and whois with the express purpose of getting the registration date/age of a domain name.

Installation

go get github.com/nat-27/domainage

Usage

package main

import (
	"fmt"
	"log"
	"time"

	"github.com/nat-27/domainage"
)

func main() {
	domain := "example.com"
	age, err := domainage.ResolveDomainRegistration(domain)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("The domain %s was registed on %s and is %d days old\n", domain, age, int64(time.Since(age)/time.Hour/24))
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages