---
name: "dnsname"
section: "1"
platform: "linux"
package: "djbdns-utils"
version: "1:1.05-22"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dnsname"
---

# dnsname(1)

does a reverse lookup for the IP address

## NAME

dnsname - does a reverse lookup for the IP address

## SYNOPSIS

**dnsname** *a.b.c.d*

## DESCRIPTION

**dnsname** does a reverse lookup for the IP address *a.b.c.d*. It prints the first domain name for that address. If no domain names are listed in DNS, **dnsname** prints a blank line. You can list several IP addresses; **dnsname** prints each result on a separate line.

There is also a [**dnsfilter**(1)](/dnsfilter/1.md) program that reads IP addresses from its input and performs many reverse lookups in parallel.

Normally  **dnsname** exits 0. If  **dnsname** encounters a temporary problem that prevents it from determining the domain name, it prints an error message and exits 111.

## SEE ALSO

[dnsip(1)](/dnsip/1.md), [dnsipq(1)](/dnsipq/1.md), [dnsmx(1)](/dnsmx/1.md), [dnstxt(1)](/dnstxt/1.md), [dnsqr(1)](/dnsqr/1.md), [dnsq(1)](/dnsq/1.md), [dnstrace(1)](/dnstrace/1.md)

http://cr.yp.to/djbdns.html
