---
name: "firedns_resolvecname"
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_resolvecname"
---

# firedns\_resolvecname(3)

Resolve the canonical name of a host

## NAME

firedns\_resolvecname - Resolve the canonical name of a host

## SYNOPSIS

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

**char \*firedns\_resolvecname(const char \*** *name***)**\
 **char \*firedns\_resolvecname\_r(const char \*** *name***)**

## DESCRIPTION

firedns\_resolvecname() attempts to resolve the canonical name (CNAME) of *name*.

## RETURN VALUE

Returns a pointer to an internal static *char \** that contains a CNAME *ip*, or *NULL* if there is no such record (indicating that you already have the canonical name of the host).

## AUTHOR

Ian Gulliver \<ian@penguinhosting.net\>

## SEE ALSO

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