---
name: "dns_name4_domain"
section: "3"
platform: "linux"
package: "libowfat-dev"
version: "0.32-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dns_name4_domain"
---

# dns\_name4\_domain(3)

construct host name for reverse lookup

## NAME

dns\_name4\_domain - construct host name for reverse lookup

## SYNTAX

**#include \<libowfat/dns.h\>**

void **dns\_name4\_domain**(char *q*\[DNS\_NAME4\_DOMAIN\],\
                      const char\* *ip*\[4\]);

## DESCRIPTION

dns\_name4\_domain is a low-level component of dns\_name4.  It converts an IP address such as 1.2.3.4 into a domain name such as 4.3.2.1.in-addr.arpa and places the packet-encoded domain name into *q*.

q is zero terminated.

q must have space for DNS\_NAME4\_DOMAIN bytes.

## SEE ALSO

[dns\_name4(3)](/dns_name4/3.md), [dns\_name6\_domain(3)](/dns_name6_domain/3.md)
