From 4c3fea5028b6156ad44901f6058c98745bd5279f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 18 Aug 2009 20:25:12 +0200 Subject: Added host(1) manpage --- Makefile | 5 ++++- man/man1/host.1 | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 man/man1/host.1 diff --git a/Makefile b/Makefile index 53db794..2bdcd94 100644 --- a/Makefile +++ b/Makefile @@ -8,12 +8,15 @@ bin/%: src/%.c $(CC) $(CFLAGS) -o $@ $< install: bin/host - mkdir -p $(prefix)/bin + mkdir -p $(prefix)/bin $(prefix)/share/man/man1 cp bin/host $(prefix)/bin/host + cp man/man1/host.1 $(prefix)/share/man/man1 chmod 755 $(prefix)/bin/host + chmod 755 $(prefix)/share/man/man1/host.1 uninstall: rm -f $(prefix)/bin/host + rm -f $(prefix)/share/man/man1/host.1 clean: rm -f bin/host diff --git a/man/man1/host.1 b/man/man1/host.1 new file mode 100644 index 0000000..8f426ff --- /dev/null +++ b/man/man1/host.1 @@ -0,0 +1,26 @@ +.TH HOST 1 "2009-08-18" "host v0.0" "host" +.if n .ad l +.nh + +.SH "NAME" + +host \- look up hostnames or IPs + +.SH "SYNOPSIS" + +\fBhost\fR [\fB-46r\fR] \fIhost\fR + +.SH "DESCRIPTION" + +\fBhost\fR looks up \fIhost\fR (hostname or IP address) and returns the results, +one item per line. +That is, it will either perform a DNS or RDNS lookup, depending on the input. + +.SS "OPTIONS" + +.IP "\fB-4\fR" +Only perfom IPv4 lookups +.IP "\fB-6\fR" +Only perform IPv6 lookups +.IP "\fB-r\fR" +Always print the RDNS -- cgit v1.2.3