From 09f62fa06b2f5f0ad51e83f3ff3ad1db956ee9c0 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 2 Mar 2019 18:37:57 -0500 Subject: [PATCH] haeredes.cabal: fix usage examples and bump to v0.5.1. The usage examples in the cabal files were (of course) out of sync with the ones in the man page and on my website. DRY, do repeat yourself. --- haeredes.cabal | 33 +++++++-------------------------- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/haeredes.cabal b/haeredes.cabal index c43752b..5ea4ad0 100644 --- a/haeredes.cabal +++ b/haeredes.cabal @@ -1,5 +1,5 @@ name: haeredes -version: 0.5.0 +version: 0.5.1 cabal-version: >= 1.8 author: Michael Orlitzky maintainer: Michael Orlitzky @@ -34,7 +34,7 @@ description: soon as the MX record is changed. . Haeredes can alert administrators when NS/MX records are changed. More - detail can be found in the man page. + detail and usage examples can be found in the man page. . /Examples/: . @@ -42,41 +42,22 @@ description: [ab].iana-servers.net: . @ - $ haeredes a.iana-servers.net b.iana-servers.net <<< \"example.com\" - @ - . - If you use --no-append-root and your nameservers are rooted, you - must remember to supply the trailing dot yourself. Otherwise, you'll - get false positives. - . - @ - $ haeredes --no-append-root \ - a.iana-servers.net b.iana-servers.net \ - <<< \"example.com\" - Domain \"example.com\" delegates somewhere else: \"b.iana-servers.net.\" \"a.iana-servers.net.\" - @ - . - Check orlitzky.com against the expected name servers, using - d.gtld-servers.net: - . - @ - $ haeredes --server 199.7.91.13 dns1.viabit.com dns2.viabit.com \ - <<< \"orlitzky.com\" + $ echo \"example.com\" | haeredes a.iana-servers.net b.iana-servers.net @ . Check orlitzky.com against only one of the expected two nameservers: . @ - $ haeredes dns1.viabit.com <<< \"orlitzky.com\" + $ echo \"orlitzky.com\" | haeredes dns1.viabit.com Domain \"orlitzky.com.\" delegates somewhere else: \"dns2.viabit.com.\" @ . Check a nonexistent domain (we provide no delegates, since we - know .bar will not be delegated): + know .doesnt-exist will not be delegated): . @ - $ haeredes <<< \"foo.bar\" - Domain \"foo.bar.\" not delegated. + $ echo \"foo.doesnt-exist\" | haeredes + Domain \"foo.doesnt-exist.\" not delegated. @ executable haeredes -- 2.44.2