becklyn/domain-checker

Checks domains and their A records.

1.3.1 2020-05-19 16:31 UTC

This package is auto-updated.

Last update: 2024-10-20 02:09:08 UTC


README

A simple CLI tool to check where A records of a given domain list point to. Can also validate, that they point to the correct IP.

Installation

composer global require becklyn/domain-checker

Usage

Call the CLI command in the directory containing the config.

# use with default filename "domains.yaml"
domain-checker

# or use with other file name
domain-checker check other-file.yaml

Config File

The config file defines the domains to check and optionally the desired target IP:

ip: 127.0.0.1 # optional

domains:
    - example.org
    - sub.example.com

If only a domain without subdomain is given, both the main domain and the "www." subdomain are automatically added.

So in the example config, the following domains will be checked:

  • example.org
  • www.example.org
  • sub.example.com