---
name: "firedns_resolvename4"
section: "3"
platform: "linux"
package: "libfiredns-dev"
version: "0.9.12+dfsg-1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/firedns_resolvename4"
---

# firedns\_resolvename4(3)

Resolve a hostname from an IPv4 address

## NAME

firedns\_resolvename4 - Resolve a hostname from an IPv4 address

## SYNOPSIS

**#include \<firedns.h\>**\
 **-lfiredns**

**char \*firedns\_resolvename4(const struct in\_addr \*** *ip***)**\
 **char \*firedns\_resolvename4\_r(const struct in\_addr \*** *ip***)**

## DESCRIPTION

firedns\_resolvename4() attempts to resolve the hostname of the IPv4 address *ip*.

## RETURN VALUE

Returns a pointer to an internal static *char \** that contains a hostname of *ip*, or *NULL* on error.

## AUTHOR

Ian Gulliver \<ian@penguinhosting.net\>

## SEE ALSO

[**libfiredns**(3)](/libfiredns/3.md)
