ObjFW  ofdns.1 at [418f8b3fbf]

File utils/ofdns/ofdns.1 artifact 0eef8556fd part of check-in 418f8b3fbf


.\"
.\" Copyright (c) 2008-2024 Jonathan Schleifer <js@nil.im>
.\"
.\" 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
.\" <https://www.gnu.org/licenses/>.
.\"
.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