ofdns(1) General Commands Manual ofdns(1)

ofdns - perform DNS lookups

ofdns [options] domain1 [domain2 ...]

ofdns is a program to perform DNS lookups.

The DNS class to query (defaults to IN).
Show the help.
The server to query.
The record type to query (defaults to AAAA and A, can be repeated).
Force using TCP for the query.

Query the A and AAAA record for example.com:

ofdns example.com

Query the CNAME record for www.example.com:

ofdns -t CNAME example.com

Query 2001:db8::1 for the AAAA record for example.com:

ofdns -s 2001:db8::1 -t AAAA example.com