---
name: "firedns_getresult"
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_getresult"
---

# firedns\_getresult(3)

Retrieve a result from a previous FireDNS query

## NAME

firedns\_getresult - Retrieve a result from a previous FireDNS query

## SYNOPSIS

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

**char \*firedns\_getresult(const int** *fd***)**\
 **char \*firedns\_getresult\_r(const int** *fd***)**\
 **char \*firedns\_getresult\_s(const int** *fd***, char \****result***)**

## DESCRIPTION

firedns\_getresult() returns the result for the request identified by the file descriptor *fd*. It returns *NULL* if there has been no response to the request or the response indicates failure.

## RETURN VALUE

Returns *NULL* on failure, or a pointer to the result.  The return value is meant to be cast depending upon the initial request made.

Casts:\
 firedns\_getip4() - (struct in\_addr \*)\
 firedns\_getip4list() - (struct firedns\_ip4list \*) /\* linked list \*/\
 firedns\_getip6() - (struct in6\_addr \*)\
 firedns\_getip6list() - (struct firedns\_ip6list \*) /\* linked list \*/\
 firedns\_gettxt() - (char \*)\
 firedns\_gettxtlist() - (struct firedns\_txtlist \*) /\* linked list \*/\
 firedns\_getmx() - (char \*)\
 firedns\_getmxlist() - (struct firedns\_mxlist \*) /\* linked list \*/\
 firedns\_getname4() - (char \*)\
 firedns\_getname6() - (char \*)\
 firedns\_getcname() - (char \*)

## AUTHOR

Ian Gulliver \<ian@penguinhosting.net\>

## SEE ALSO

[**libfiredns**(3)](/libfiredns/3.md), [**firedns\_getip4**(3)](/firedns_getip4/3.md), [**firedns\_getip6**(3)](/firedns_getip6/3.md), [**firedns\_gettxt**(3)](/firedns_gettxt/3.md), [**firedns\_getmx**(3)](/firedns_getmx/3.md), [**firedns\_getmxlist**(3)](/firedns_getmxlist/3.md), [**firedns\_getname4**(3)](/firedns_getname4/3.md), [**firedns\_getname6**(3)](/firedns_getname6/3.md)
