The shell examples given in the man page use the "haeredes <<< foo"
syntax to feed the string "foo" into haeredes on stdin. That's a
Bash-only shortcut for "echo foo | haeredes", however, and the latter
works in all POSIX-compatible shells. So, this commit updates the
documentation to use the more reliable syntax.
[ab].iana-servers.net:
.nf
[ab].iana-servers.net:
.nf
-.I $ haeredes a.iana-servers.net b.iana-servers.net <<< \(dqexample.com\(dq
+.I $ echo \(dqexample.com\(dq | haeredes a.iana-servers.net b.iana-servers.net
-.I $ haeredes \-\-no\-append\-root \\\\
-.I " a.iana-servers.net b.iana-servers.net" \\\\
-.I " <<< \(dqexample.com\(dq"
+.I $ echo \(dqexample.com\(dq | \\\\
+.I " haeredes \-\-no\-append\-root a.iana-servers.net b.iana-servers.net"
Domain \(dqexample.com\(dq delegates somewhere else:
\(dqb.iana-servers.net.\(dq \(dqa.iana-servers.net.\(dq
.fi
Domain \(dqexample.com\(dq delegates somewhere else:
\(dqb.iana-servers.net.\(dq \(dqa.iana-servers.net.\(dq
.fi
a root nameserver (this checks the registrar configuration):
.nf
a root nameserver (this checks the registrar configuration):
.nf
-.I $ haeredes --server d.gtld-servers.net dns1.viabit.com dns2.viabit.com \\\\
-.I " <<< \(dqorlitzky.com\(dq"
+.I $ echo \(dqorlitzky.com\(dq | \\\\
+.I " haeredes --server d.gtld-servers.net" \\\\
+.I " dns1.viabit.com dns2.viabit.com"
.fi
.IP \[bu]
Check orlitzky.com against only one of the expected two nameservers:
.nf
.fi
.IP \[bu]
Check orlitzky.com against only one of the expected two nameservers:
.nf
-.I $ haeredes dns1.viabit.com <<< \(dqorlitzky.com\(dq
+.I $ echo \(dqorlitzky.com\(dq | haeredes dns1.viabit.com
Domain \(dqorlitzky.com.\(dq delegates somewhere else: \
\(dqdns2.viabit.com.\(dq
.fi
Domain \(dqorlitzky.com.\(dq delegates somewhere else: \
\(dqdns2.viabit.com.\(dq
.fi
know .doesnt-exist will not be delegated):
.nf
know .doesnt-exist will not be delegated):
.nf
-.I $ haeredes <<< \(dqfoo.doesnt-exist\(dq
+.I $ echo \(dqfoo.doesnt-exist\(dq | haeredes
Domain \(dqfoo.doesnt-exist.\(dq not delegated.
.fi
.IP \[bu]
Domain \(dqfoo.doesnt-exist.\(dq not delegated.
.fi
.IP \[bu]
the discussion in \fBDNS ERRORS\fR:
.nf
the discussion in \fBDNS ERRORS\fR:
.nf
-.I $ haeredes --timeout=1 --server 10.1.46.12 ns1.example.com \\\\
-.I " <<< \(dqexample.com\(dq"
+.I $ echo \(dqexample.com\(dq | \\\\
+.I " haeredes --timeout=1 --server 10.1.46.12 ns1.example.com"