chkip.py – DNS- und Mailserver-Check-Tool
Go to file
Pascal Bouquet fb00a11bef Add --me flag to display local and public IPs with CGNAT detection
This commit introduces the --me flag, which allows users to quickly display
their current local IPv4 and public IPv4/IPv6 addresses.

The public IPs are retrieved using ifconfig.me via curl, ensuring accurate
detection even in CGNAT or split-DNS scenarios. Local IPv4 is determined
via the system's active route through the configured resolver.

The output also includes a CGNAT detection based on private IP ranges and
the reserved 100.64.0.0/10 block, providing a helpful warning if detected.

IPv6 privacy extensions are common, so local IPv6 detection has been removed
to avoid redundant or unstable information.
2025-04-19 16:39:54 +02:00
chkip.py Add --me flag to display local and public IPs with CGNAT detection 2025-04-19 16:39:54 +02:00
INSTALL.md Add one-liner installation command for easier setup 2025-04-19 15:34:09 +02:00
README.md README.md aktualisiert 2025-04-19 14:52:03 +02:00

chkip

🛠️ Ein praktisches DNS- und Mailserver-Check-Tool für die Kommandozeile.
Mit Unterstützung für Domain- und IP-Modus, JSON-Ausgabe und gängigen Mail-spezifischen DNS-Abfragen.


Features

  • Automatische Erkennung: IP vs. Domain
  • Domain-Modus:
    • A / AAAA / MX
    • PTR & FCrDNS je MX
    • rDNS (via ipinfo.io)
    • SPF (-sS)
    • DMARC (-sD)
    • MTA-STS (-sM)
    • TLSA/DANE (-sT)
    • DKIM (-sDK [selector])
  • IP-Modus:
    • PTR
    • rDNS (via ipinfo.io)
    • FCrDNS-Check
  • JSON-Ausgabe (--json)
  • Lizenz: GPLv3
  • Autor: Pascal Bouquet (erstellt am 17.04.2025)

🧪 Beispielausgaben

Domain:

$ chkip bouquet24.de

A:       31.16.143.139
AAAA:    No AAAA record
MX:
  Host:   mail.bouquet24.de
  IP:     172.94.17.144
  PTR:    mail.bouquet24.de
  FCrDNS: ok

rDNS:    ip1f108f8b.dynamic.kabel-deutschland.de

$ chkip 172.94.17.144                                               
PTR:     mail.bouquet24.de
rDNS:    mail.bouquet24.de
FCrDNS:  ok