Endpoint to get basic domain info such as DNS, host, creation date.
1.3K
Highly untested and fragile query to RDAP endpoints and Google DNS to gather domain info. Listens on port 4000.
Example: docker run -d --name domain-info -p 4000:4000 gcleaves/domain-info
curl http://localhost:4000/domain-info/www.example.com
{
"domain": "example.com",
"registrant": {},
"registrar": {
"fn": "RESERVED-Internet Assigned Numbers Authority",
"id": "376"
},
"nameservers": [
"A.IANA-SERVERS.NET",
"B.IANA-SERVERS.NET"
],
"events": [
{
"eventAction": "registration",
"eventDate": "1995-08-14T04:00:00Z"
},
{
"eventAction": "expiration",
"eventDate": "2024-08-13T04:00:00Z"
},
{
"eventAction": "last changed",
"eventDate": "2023-08-14T07:01:38Z"
},
{
"eventAction": "last update of RDAP database",
"eventDate": "2024-04-28T15:47:16Z"
}
],
"ip": [
"93.184.215.14"
],
"mx": {
"host": [],
"domain": [
"0 ."
]
},
"host": {
"fn": "MNT-EDGECAST",
"id": "MNT-EDGECAST"
}
}
docker pull gcleaves/domain-info:latest