Use c-ares library as DNS resolver

This commit is contained in:
Alexey Pustovalov 2025-10-02 17:45:52 +09:00
parent 15922fd093
commit b318f3d27b
46 changed files with 48 additions and 1 deletions

4
.gitignore vendored
View File

@ -5,4 +5,6 @@ zbx_env*/
.*KEY_FILE .*KEY_FILE
.*CA_FILE .*CA_FILE
Dockerfiles/*/rhel/secrets/* Dockerfiles/*/rhel/secrets/*
sources/* sources/*
.*.orig
.*.rej

View File

@ -41,6 +41,7 @@ RUN set -eux && \
tzdata \ tzdata \
coreutils \ coreutils \
iputils \ iputils \
c-ares \
pcre2 \ pcre2 \
libgcc \ libgcc \
libcurl \ libcurl \

View File

@ -41,6 +41,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
set -eux && \ set -eux && \
INSTALL_PKGS="bash \ INSTALL_PKGS="bash \
iputils \ iputils \
c-ares \
pcre2 \ pcre2 \
libcurl-minimal \ libcurl-minimal \
# libmodbus \ # libmodbus \

View File

@ -42,6 +42,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
set -eux && \ set -eux && \
INSTALL_PKGS="bash \ INSTALL_PKGS="bash \
iputils \ iputils \
c-ares \
pcre2 \ pcre2 \
libcurl \ libcurl \
# libmodbus \ # libmodbus \

View File

@ -61,6 +61,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
INSTALL_PKGS="bash \ INSTALL_PKGS="bash \
iputils \ iputils \
shadow-utils \ shadow-utils \
c-ares \
pcre2 \ pcre2 \
# libmodbus \ # libmodbus \
libcurl-minimal \ libcurl-minimal \

View File

@ -44,6 +44,7 @@ RUN --mount=type=cache,target=/var/cache/apt/,sharing=locked \
tzdata \ tzdata \
iputils-ping \ iputils-ping \
ca-certificates \ ca-certificates \
libcares2 \
libssl3t64 \ libssl3t64 \
libcurl4t64 \ libcurl4t64 \
libmodbus5 \ libmodbus5 \

View File

@ -30,6 +30,7 @@ RUN set -eux && \
INSTALL_PKGS="bash \ INSTALL_PKGS="bash \
autoconf \ autoconf \
automake \ automake \
c-ares-dev \
coreutils \ coreutils \
curl \ curl \
curl-dev \ curl-dev \

View File

@ -27,6 +27,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
bash \ bash \
gcc \ gcc \
patch \ patch \
c-ares-devel \
pcre2-devel \ pcre2-devel \
libcurl-devel \ libcurl-devel \
libevent-devel \ libevent-devel \

View File

@ -29,6 +29,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
gcc \ gcc \
go-toolset \ go-toolset \
patch \ patch \
c-ares-devel \
pcre2-devel \ pcre2-devel \
libcurl-devel \ libcurl-devel \
libevent-devel \ libevent-devel \

View File

@ -41,6 +41,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
gcc \ gcc \
go-toolset \ go-toolset \
patch \ patch \
c-ares-devel \
pcre2-devel \ pcre2-devel \
libcurl-devel \ libcurl-devel \
libevent-devel \ libevent-devel \

View File

@ -28,6 +28,7 @@ RUN --mount=type=cache,target=/var/cache/apt/,sharing=locked \
curl \ curl \
gcc \ gcc \
libc6-dev \ libc6-dev \
libc-ares-dev \
libcurl4-openssl-dev \ libcurl4-openssl-dev \
libevent-dev \ libevent-dev \
libmodbus-dev \ libmodbus-dev \

View File

@ -84,6 +84,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--enable-proxy \ --enable-proxy \
--enable-server \ --enable-server \
--enable-webservice \ --enable-webservice \
--with-ares \
--with-ldap \ --with-ldap \
--with-libcurl \ --with-libcurl \
--with-libmodbus \ --with-libmodbus \

View File

@ -84,6 +84,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--enable-proxy \ --enable-proxy \
--enable-server \ --enable-server \
--enable-webservice \ --enable-webservice \
--with-ares \
--with-ldap \ --with-ldap \
--with-libcurl \ --with-libcurl \
# --with-libmodbus \ # --with-libmodbus \

View File

@ -84,6 +84,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--enable-proxy \ --enable-proxy \
--enable-server \ --enable-server \
--enable-webservice \ --enable-webservice \
--with-ares \
--with-ldap \ --with-ldap \
--with-libcurl \ --with-libcurl \
# --with-libmodbus \ # --with-libmodbus \

View File

@ -95,6 +95,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--enable-proxy \ --enable-proxy \
--enable-server \ --enable-server \
--enable-webservice \ --enable-webservice \
--with-ares \
--with-ldap \ --with-ldap \
--with-libcurl \ --with-libcurl \
# --with-libmodbus \ # --with-libmodbus \

View File

@ -84,6 +84,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--enable-proxy \ --enable-proxy \
--enable-server \ --enable-server \
--enable-webservice \ --enable-webservice \
--with-ares \
--with-ldap \ --with-ldap \
--with-libcurl \ --with-libcurl \
--with-libmodbus \ --with-libmodbus \

View File

@ -86,6 +86,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--enable-proxy \ --enable-proxy \
--enable-server \ --enable-server \
--enable-webservice \ --enable-webservice \
--with-ares \
--with-ldap \ --with-ldap \
--with-libcurl \ --with-libcurl \
--with-libmodbus \ --with-libmodbus \

View File

@ -85,6 +85,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--enable-proxy \ --enable-proxy \
--enable-server \ --enable-server \
--enable-webservice \ --enable-webservice \
--with-ares \
--with-ldap \ --with-ldap \
--with-libcurl \ --with-libcurl \
# --with-libmodbus \ # --with-libmodbus \

View File

@ -86,6 +86,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--enable-proxy \ --enable-proxy \
--enable-server \ --enable-server \
--enable-webservice \ --enable-webservice \
--with-ares \
--with-ldap \ --with-ldap \
--with-libcurl \ --with-libcurl \
# --with-libmodbus \ # --with-libmodbus \

View File

@ -97,6 +97,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--enable-proxy \ --enable-proxy \
--enable-server \ --enable-server \
--enable-webservice \ --enable-webservice \
--with-ares \
--with-ldap \ --with-ldap \
--with-libcurl \ --with-libcurl \
# --with-libmodbus \ # --with-libmodbus \

View File

@ -85,6 +85,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--enable-proxy \ --enable-proxy \
--enable-server \ --enable-server \
--enable-webservice \ --enable-webservice \
--with-ares \
--with-ldap \ --with-ldap \
--with-libcurl \ --with-libcurl \
--with-libmodbus \ --with-libmodbus \

View File

@ -76,6 +76,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--enable-agent2 \ --enable-agent2 \
--enable-java \ --enable-java \
--enable-proxy \ --enable-proxy \
--with-ares \
--with-ldap \ --with-ldap \
--with-libcurl \ --with-libcurl \
--with-libmodbus \ --with-libmodbus \

View File

@ -76,6 +76,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--enable-agent2 \ --enable-agent2 \
--enable-java \ --enable-java \
--enable-proxy \ --enable-proxy \
--with-ares \
--with-ldap \ --with-ldap \
--with-libcurl \ --with-libcurl \
# --with-libmodbus \ # --with-libmodbus \

View File

@ -76,6 +76,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--enable-agent2 \ --enable-agent2 \
--enable-java \ --enable-java \
--enable-proxy \ --enable-proxy \
--with-ares \
--with-ldap \ --with-ldap \
--with-libcurl \ --with-libcurl \
# --with-libmodbus \ # --with-libmodbus \

View File

@ -87,6 +87,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--enable-agent2 \ --enable-agent2 \
--enable-java \ --enable-java \
--enable-proxy \ --enable-proxy \
--with-ares \
--with-ldap \ --with-ldap \
--with-libcurl \ --with-libcurl \
# --with-libmodbus \ # --with-libmodbus \

View File

@ -76,6 +76,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build/ \
--enable-agent2 \ --enable-agent2 \
--enable-java \ --enable-java \
--enable-proxy \ --enable-proxy \
--with-ares \
--with-ldap \ --with-ldap \
--with-libcurl \ --with-libcurl \
--with-libmodbus \ --with-libmodbus \

View File

@ -53,6 +53,7 @@ RUN set -eux && \
krb5 \ krb5 \
iputils \ iputils \
openssl \ openssl \
c-ares \
libcap \ libcap \
libcurl \ libcurl \
libevent \ libevent \

View File

@ -53,6 +53,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
traceroute \ traceroute \
nmap \ nmap \
krb5-workstation \ krb5-workstation \
c-ares \
gzip \ gzip \
libssh \ libssh \
file-libs \ file-libs \

View File

@ -54,6 +54,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
traceroute \ traceroute \
nmap \ nmap \
krb5-workstation \ krb5-workstation \
c-ares \
libssh \ libssh \
file-libs \ file-libs \
fping \ fping \

View File

@ -72,6 +72,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
traceroute \ traceroute \
nmap \ nmap \
krb5-workstation \ krb5-workstation \
c-ares \
shadow-utils \ shadow-utils \
fping \ fping \
iputils \ iputils \

View File

@ -58,6 +58,7 @@ RUN --mount=type=cache,target=/var/cache/apt/,sharing=locked \
ca-certificates \ ca-certificates \
fping \ fping \
openssl \ openssl \
libcares2 \
libcurl4t64 \ libcurl4t64 \
libevent-2.1 \ libevent-2.1 \
libevent-pthreads-2.1 \ libevent-pthreads-2.1 \

View File

@ -52,6 +52,7 @@ RUN set -eux && \
fping \ fping \
iputils \ iputils \
openssl \ openssl \
c-ares \
libcap \ libcap \
libcurl \ libcurl \
libevent \ libevent \

View File

@ -51,6 +51,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
traceroute \ traceroute \
nmap \ nmap \
krb5-workstation \ krb5-workstation \
c-ares \
libssh \ libssh \
fping \ fping \
iputils \ iputils \

View File

@ -52,6 +52,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
traceroute \ traceroute \
nmap \ nmap \
krb5-workstation \ krb5-workstation \
c-ares \
libssh \ libssh \
fping \ fping \
iputils \ iputils \

View File

@ -70,6 +70,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
traceroute \ traceroute \
nmap \ nmap \
krb5-workstation \ krb5-workstation \
c-ares \
shadow-utils \ shadow-utils \
fping \ fping \
iputils \ iputils \

View File

@ -56,6 +56,7 @@ RUN --mount=type=cache,target=/var/cache/apt/,sharing=locked \
ca-certificates \ ca-certificates \
fping \ fping \
openssl \ openssl \
libcares2 \
libcurl4t64 \ libcurl4t64 \
libevent-2.1 \ libevent-2.1 \
libevent-pthreads-2.1 \ libevent-pthreads-2.1 \

View File

@ -54,6 +54,7 @@ RUN set -eux && \
tzdata \ tzdata \
iputils \ iputils \
openssl \ openssl \
c-ares \
libcap \ libcap \
libcurl \ libcurl \
libevent \ libevent \

View File

@ -53,6 +53,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
traceroute \ traceroute \
nmap \ nmap \
krb5-workstation \ krb5-workstation \
c-ares \
hostname \ hostname \
file-libs \ file-libs \
iputils \ iputils \

View File

@ -54,6 +54,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
traceroute \ traceroute \
nmap \ nmap \
krb5-workstation \ krb5-workstation \
c-ares \
hostname \ hostname \
file-libs \ file-libs \
iputils \ iputils \

View File

@ -72,6 +72,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
traceroute \ traceroute \
nmap \ nmap \
krb5-workstation \ krb5-workstation \
c-ares \
fping \ fping \
shadow-utils \ shadow-utils \
iputils \ iputils \

View File

@ -59,6 +59,7 @@ RUN --mount=type=cache,target=/var/cache/apt/,sharing=locked \
traceroute \ traceroute \
fping \ fping \
openssl \ openssl \
libcares2 \
libcurl4t64 \ libcurl4t64 \
libevent-2.1 \ libevent-2.1 \
libevent-pthreads-2.1 \ libevent-pthreads-2.1 \

View File

@ -54,6 +54,7 @@ RUN set -eux && \
tzdata \ tzdata \
iputils \ iputils \
openssl \ openssl \
c-ares \
libcap \ libcap \
libcurl \ libcurl \
libevent \ libevent \

View File

@ -55,6 +55,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
hostname \ hostname \
nmap \ nmap \
krb5-workstation \ krb5-workstation \
c-ares \
iputils \ iputils \
traceroute \ traceroute \
libevent \ libevent \

View File

@ -56,6 +56,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
traceroute \ traceroute \
nmap \ nmap \
krb5-workstation \ krb5-workstation \
c-ares \
iputils \ iputils \
traceroute \ traceroute \
libevent \ libevent \

View File

@ -72,6 +72,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
traceroute \ traceroute \
nmap \ nmap \
krb5-workstation \ krb5-workstation \
c-ares \
fping \ fping \
shadow-utils \ shadow-utils \
iputils \ iputils \

View File

@ -59,6 +59,7 @@ RUN --mount=type=cache,target=/var/cache/apt/,sharing=locked \
traceroute \ traceroute \
fping \ fping \
openssl \ openssl \
libcares2 \
libcurl4t64 \ libcurl4t64 \
libevent-2.1 \ libevent-2.1 \
libevent-pthreads-2.1 \ libevent-pthreads-2.1 \