---
name: "firedns_resolveip4"
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_resolveip4"
---

# firedns\_resolveip4(3)

Resolve a hostname to an IPv4 address

## NAME

firedns\_resolveip4 - Resolve a hostname to an IPv4 address

## SYNOPSIS

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

**struct in\_addr \*firedns\_resolveip4(const char \* const** *name***)**\
 **struct in\_addr \*firedns\_resolveip4\_r(const char \* const** *name***)**

## DESCRIPTION

firedns\_resolveip4() attempts to resolve the hostname *name* to an IPv4 address.

## RETURN VALUE

Returns a pointer to an internal static *struct in\_addr* that contains the IP address of *name* in binary format, or *NULL* on error.

## AUTHOR

Ian Gulliver \<ian@penguinhosting.net\>

## SEE ALSO

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