#### Beyond Linux® From Scratch (systemd Edition) - Version 11.1

### Chapter 17. Networking Libraries

- Prev

  Networking Libraries

- Next

  cURL-7.81.0

- Up
- Home

# c-ares-1.18.1

## Introduction to c-ares

c-ares is a C library for asynchronous DNS requests.

This package is known to build and work properly using an LFS-11.1 platform.

### Package Information

- Download (HTTP): https://c-ares.haxx.se/download/c-ares-1.18.1.tar.gz

- Download MD5 sum: bf770c0d3131ec0dd0575a0d2dcab226

- Download size: 1.5 MB

- Estimated disk space required: 12 MB

- Estimated build time: less than 0.1 SBU

### c-ares Dependencies

#### Required

CMake-3.22.2

## Installation of c-ares

Install c-ares by running the following commands:

    mkdir build &&
    cd    build &&

    cmake  -DCMAKE_INSTALL_PREFIX=/usr .. &&
    make

This package does not include a test suite.

Now, as the `root` user:

    make install

## Contents

Installed Programs: acountry, adig, and ahost
Installed Libraries: libcares.so
Installed Directories: None

### Short Descriptions

acountry | prints the country where an IPv4 address or host is located
adig | queries information from DNS servers
ahost | prints the A or AAAA record associated with a hostname or IP address
`libcares.so` | is a C library for asynchronous DNS requests

Last updated on

- Prev

  Networking Libraries

- Next

  cURL-7.81.0

- Up
- Home