A script to check domains or IP accessibilities.
The main idea was to create a script that can check if domain or a list of domains are/is ACTIVE or INACTIVE. And, in between, create a hosts file based on the results.
Issues
For all issues/bugs and others, please report here.
Version
Current Version: 1.2.2
Usage
funceble
Usage: ./funceble [ -a ] [ -ex ] [ --help ] [ -h ] [ -ip ] [ -q ] [ -n ] [ -p ] [ --split ]
{[ -d domain-name.me ]} || {[ -f listOfDomainInAFile ]}
--all -a Output all information on screen (Must be before -d or -f)
--domain -d Domain to analyze
--file -f File with a list of domains
--execution -ex Show the execution time (Must be before -d or -f)
--help Print this screen
-ip Change the ip to print in host file (Must be before -d or -f)
--host -h Activate the generation of host (Must be before -d or -f)
--quiet -q Activate quiet mode (Must be before -d or -f)
--percentage -p Show the percentage of the results (Must be before -d or -f)
--noFiles -n Deactivate the production of output files (Must be before -d or -f)
--split Split output files (Must be before -d or -f)
tool
Usage: ./tool [ -d ] [ -h ]
{[ -i ]} || {[ -p ]} || {[ -u ]}
--debug -d Activate the debug mode with the installation (Must be before -u or -i)
--help Print this screen
--installation -i Execute the installation script
--production -p Prepare the repository for production
--update -u Update the script
Status
- ACTIVE
whois
return the date of expirationnslookup
don't return "server can't find domain-name.me: NXDOMAIN"
- INACTIVE
whois
don't return anythingnslookup
return "server can't find domain-name.me: NXDOMAIN"
- INVALID
- Domain extension has an invalid format or is unregistered in IANA Root Zone Database.
How to contribute?
To contribute, you have to send a new Pull Request after you forked and edited the script(s).
DO NOT FORGET
- To sign your commit(s) with 'Signed-off by: FirstName LastName ' AND/OR simply sign your commit(s) with PGP. Please read more here.
- All contributions/modifications must be done under the
dev
branch.
Special Thanks
Thank you guys for your awesome lists which helped (and still help) me build this script. ๐ ๐
- @mitchellkrogza
- @PromoFaux with Pi-Hole hosts file.
Contributors
Hosts
files
What is a hosts file?
A hosts file, named hosts
(with no file extension), is a plain-text file
used by all operating systems to map hostnames to IP addresses.
In most operating systems, the hosts
file is preferential to DNS
.
Therefore if a domain name is resolved by the hosts
file, the request never
leaves your computer.
Having a smart hosts
file goes a long way towards blocking malware, adware, ransomware, porn and other nuisance websites.
A hosts file like this causes any lookups to any of the listed domains to resolve back to your localhost so it prevents any outgoing connections to the listed domains.
Recommendations
I'd personally recommend using Steven's hosts or Pi-Hole which are in my opinion the best out there.