skadns
Software
www.skarnet.org
The skadnsip program
skadnsip reads a domain name on its command line
and resolves it. It prints the IP adress, followed by a
newline, on stdout, or a blank line if the resolution failed,
and exits 0. If it encounters an error, it prints a message to
stderr and exits 111.
Interface
skadnsip fqdn
prints fqdn's address to stdout.
Notes
skadnsip is rather useless:
dnsip is faster and
accepts more than one argument on the command line.
What is interesting in skadnsip is its source code: it shows a simple
example of using the skadns library.