Index: utils/ofdns/Makefile ================================================================== --- utils/ofdns/Makefile +++ utils/ofdns/Makefile @@ -2,10 +2,11 @@ PROG = ofdns${PROG_SUFFIX} SRCS = OFDNS.m DATA = localization/de.json \ localization/localizations.json +MAN = ofdns.1 include ../../buildsys.mk PACKAGE_NAME = ofdns ADDED utils/ofdns/ofdns.1 Index: utils/ofdns/ofdns.1 ================================================================== --- /dev/null +++ utils/ofdns/ofdns.1 @@ -0,0 +1,55 @@ +.\" +.\" Copyright (c) 2008-2024 Jonathan Schleifer +.\" +.\" All rights reserved. +.\" +.\" This program is free software: you can redistribute it and/or modify it +.\" under the terms of the GNU Lesser General Public License version 3.0 only, +.\" as published by the Free Software Foundation. +.\" +.\" This program is distributed in the hope that it will be useful, but WITHOUT +.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License +.\" version 3.0 for more details. +.\" +.\" You should have received a copy of the GNU Lesser General Public License +.\" version 3.0 along with this program. If not, see +.\" . +.\" +.TH ofdns 1 +.SH NAME +ofdns - perform DNS lookups +.SH SYNOPSIS +.B ofdns +[\fBoptions\fR] \fIdomain1\fR [\fIdomain2\fR ...] +.SH DESCRIPTION +.B ofdns +is a program to perform DNS lookups. +.SH OPTIONS +.TP +.BR \fB\-c\fR " " \fIclass\fR ", " \fB\-\-class=\fIclass\fR +The DNS class to query (defaults to IN). +.TP +.BR \fB\-h\fR ", " \fB\-\-help\fR +Show the help. +.TP +.BR \fB\-s\fR " " \fIserver\fR ", " \fB\-\-server=\fIserver\fR +The server to query. +.TP +.BR \fB\-t\fR " " \fItype\fR ", " \fB\-\-type=\fItype\fR +The record type to query (defaults to AAAA and A, can be repeated). +.TP +.BR \fB\-\-tcp\fR +Force using TCP for the query. +.SH EXAMPLES +Query the \fBA\fR and \fBAAAA\fR record for \fBexample.com\fR: +.PP + ofdns example.com +.PP +Query the \fBCNAME\fR record for \fBwww.example.com\fR: +.PP + ofdns -t CNAME example.com +.PP +Query \fB2001:db8::1\fR for the \fBAAAA\fR record for \fBexample.com\fR: +.PP + ofdns -s 2001:db8::1 -t AAAA example.com