[4464d405] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY c-ares-download-http "https://c-ares.haxx.se/download/c-ares-&c-ares-version;.tar.gz">
|
---|
| 8 | <!ENTITY c-ares-download-ftp " ">
|
---|
[492e91a4] | 9 | <!ENTITY c-ares-md5sum "62dece8675590445d739b23111d93692">
|
---|
[b98838eb] | 10 | <!ENTITY c-ares-size "1.3 MB">
|
---|
[492e91a4] | 11 | <!ENTITY c-ares-buildsize "9.3 MB">
|
---|
[fe80e96] | 12 | <!ENTITY c-ares-time "0.1 SBU">
|
---|
[4464d405] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="c-ares" xreflabel="c-ares-&c-ares-version;">
|
---|
| 16 | <?dbhtml filename="c-ares.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
[e24c09b] | 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[4464d405] | 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>c-ares-&c-ares-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="c-ares">
|
---|
| 26 | <primary sortas="a-c-ares">c-ares</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to c-ares</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | <application>c-ares</application> is a C library for asynchronous DNS
|
---|
| 34 | requests.
|
---|
| 35 | </para>
|
---|
| 36 |
|
---|
[7697bb25] | 37 | &lfs10_checked;
|
---|
[4464d405] | 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>
|
---|
| 43 | Download (HTTP): <ulink url="&c-ares-download-http;"/>
|
---|
| 44 | </para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&c-ares-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
| 53 | Download MD5 sum: &c-ares-md5sum;
|
---|
| 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Download size: &c-ares-size;
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Estimated disk space required: &c-ares-buildsize;
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>
|
---|
| 68 | Estimated build time: &c-ares-time;
|
---|
| 69 | </para>
|
---|
| 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
[07d609b] | 73 | <bridgehead renderas="sect3">c-ares Dependencies</bridgehead>
|
---|
[492e91a4] | 74 |
|
---|
| 75 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 76 | <para role="required">
|
---|
| 77 | <xref linkend="cmake"/>
|
---|
| 78 | </para>
|
---|
| 79 |
|
---|
[4464d405] | 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | <sect2 role="installation">
|
---|
| 83 | <title>Installation of c-ares</title>
|
---|
| 84 |
|
---|
| 85 | <para>
|
---|
| 86 | Install <application>c-ares</application> by running the following
|
---|
| 87 | commands:
|
---|
| 88 | </para>
|
---|
| 89 |
|
---|
[9da80b86] | 90 | <screen><userinput>mkdir build &&
|
---|
| 91 | cd build &&
|
---|
| 92 |
|
---|
| 93 | cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
|
---|
[4464d405] | 94 | make</userinput></screen>
|
---|
| 95 |
|
---|
| 96 | <para>
|
---|
| 97 | This package does not include a test suite.
|
---|
| 98 | </para>
|
---|
| 99 |
|
---|
| 100 | <para>
|
---|
| 101 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 102 | </para>
|
---|
| 103 |
|
---|
| 104 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 105 |
|
---|
| 106 | </sect2>
|
---|
| 107 |
|
---|
[492e91a4] | 108 | <!-- Since moving to CMake, we don't need this anymore.
|
---|
[4464d405] | 109 | <sect2 role="commands">
|
---|
| 110 | <title>Command Explanations</title>
|
---|
| 111 |
|
---|
| 112 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 113 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 114 |
|
---|
| 115 | </sect2>
|
---|
[492e91a4] | 116 | -->
|
---|
[4464d405] | 117 |
|
---|
| 118 | <sect2 role="content">
|
---|
| 119 | <title>Contents</title>
|
---|
| 120 |
|
---|
| 121 | <segmentedlist>
|
---|
[492e91a4] | 122 | <segtitle>Installed Programs</segtitle>
|
---|
| 123 | <segtitle>Installed Libraries</segtitle>
|
---|
| 124 | <segtitle>Installed Directories</segtitle>
|
---|
[4464d405] | 125 |
|
---|
| 126 | <seglistitem>
|
---|
[492e91a4] | 127 | <seg>
|
---|
| 128 | acountry, adig, and ahost
|
---|
| 129 | </seg>
|
---|
[4464d405] | 130 | <seg>
|
---|
| 131 | libcares.so
|
---|
| 132 | </seg>
|
---|
[492e91a4] | 133 | <seg>
|
---|
| 134 | None
|
---|
| 135 | </seg>
|
---|
[4464d405] | 136 | </seglistitem>
|
---|
| 137 | </segmentedlist>
|
---|
| 138 |
|
---|
| 139 | <variablelist>
|
---|
| 140 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 141 | <?dbfo list-presentation="list"?>
|
---|
| 142 | <?dbhtml list-presentation="table"?>
|
---|
| 143 |
|
---|
[492e91a4] | 144 | <varlistentry id="acountry">
|
---|
| 145 | <term><command>acountry</command></term>
|
---|
| 146 | <listitem>
|
---|
| 147 | <para>
|
---|
| 148 | prints the country where an IPv4 address or host is located.
|
---|
| 149 | </para>
|
---|
| 150 | <indexterm zone="c-ares acountry">
|
---|
| 151 | <primary sortas="b-acountry">acountry</primary>
|
---|
| 152 | </indexterm>
|
---|
| 153 | </listitem>
|
---|
| 154 | </varlistentry>
|
---|
| 155 |
|
---|
| 156 | <varlistentry id="adig">
|
---|
| 157 | <term><command>adig</command></term>
|
---|
| 158 | <listitem>
|
---|
| 159 | <para>
|
---|
| 160 | queries information from DNS servers.
|
---|
| 161 | </para>
|
---|
| 162 | <indexterm zone="c-ares adig">
|
---|
| 163 | <primary sortas="b-adig">adig</primary>
|
---|
| 164 | </indexterm>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
| 167 |
|
---|
| 168 | <varlistentry id="ahost">
|
---|
| 169 | <term><command>ahost</command></term>
|
---|
| 170 | <listitem>
|
---|
| 171 | <para>
|
---|
| 172 | prints the A or AAAA record associated with a hostname
|
---|
| 173 | or IP address.
|
---|
| 174 | </para>
|
---|
| 175 | <indexterm zone="c-ares ahost">
|
---|
| 176 | <primary sortas="b-ahost">ahost</primary>
|
---|
| 177 | </indexterm>
|
---|
| 178 | </listitem>
|
---|
| 179 | </varlistentry>
|
---|
| 180 |
|
---|
[4464d405] | 181 | <varlistentry id="c-ares-lib">
|
---|
| 182 | <term><filename class='libraryfile'>libcares.so</filename></term>
|
---|
| 183 | <listitem>
|
---|
| 184 | <para>
|
---|
[492e91a4] | 185 | is a C library for asynchronous DNS requests.
|
---|
[4464d405] | 186 | </para>
|
---|
| 187 | <indexterm zone="c-ares c-ares-lib">
|
---|
| 188 | <primary sortas="c-c-ares">c-ares.so</primary>
|
---|
| 189 | </indexterm>
|
---|
| 190 | </listitem>
|
---|
| 191 | </varlistentry>
|
---|
| 192 |
|
---|
| 193 | </variablelist>
|
---|
| 194 |
|
---|
| 195 | </sect2>
|
---|
| 196 |
|
---|
| 197 | </sect1>
|
---|