https://github.com/fyxme/golang-short-domain-finder
Find short domain names by querying whois servers in order to check if the domain is available
https://github.com/fyxme/golang-short-domain-finder
availability available domain find golang short
Last synced: 6 months ago
JSON representation
Find short domain names by querying whois servers in order to check if the domain is available
- Host: GitHub
- URL: https://github.com/fyxme/golang-short-domain-finder
- Owner: fyxme
- Created: 2019-09-13T03:20:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-10T20:15:54.000Z (12 months ago)
- Last Synced: 2025-04-14T23:05:52.890Z (6 months ago)
- Topics: availability, available, domain, find, golang, short
- Language: Go
- Size: 1.65 MB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Golang Short Domain Finder
This Golang program will attempt to find available short domains based on a few input parameters such as domain extension and maximum length of domain name
This is usefull is you're trying to find short and unique domains.
Particularly usefull for url shortener websites or finding a free subdomain with few letters.This was originally created to find a short `.me` domain as a student since namecheap offers those.
See todo section for a better way to do this
## Requirements
Uses the [whois.go](https://github.com/likexian/whois) module.
To install:
`go get -u github.com/likexian/whois`
## Usage
```
Usage of ./short-domain-finder:
-exts string
List of domain extensions (ie. .com, .io) (default "tk,ml,ga,cf")
-len int
Maximum length of domain name (default 3)
-sep string
Char used to separate the list of domain extensions (default ",")
-workers int
Number of worker to query whois in parallel. Too many may overwhelm the service and get you blocked (default 10)
```The error messages are printed to stderr so you can simply redirect valid names to a file as such:
```
./short-domain-finder > output.txt
```## TODO
- Some domains don't seem to be supported such as gq with current whois server
- Potential fix: use a list of whois servers such as `https://github.com/whois-server-list/whois-server-list`
- Add file input
- A potentially better way to do this: do a dns lookup. If the name does not resolve to an ip, do a whois lookup