diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-08-18 20:25:12 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-08-18 20:25:12 +0200 |
commit | 4c3fea5028b6156ad44901f6058c98745bd5279f (patch) | |
tree | c934b3b3c5214dc685e82e21c35f5409018fb095 | |
parent | 84beab1ef6f778949023e4f050c9b2329f06f305 (diff) |
Added host(1) manpage
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | man/man1/host.1 | 26 |
2 files changed, 30 insertions, 1 deletions
@@ -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 |