Use c-ares library as DNS resolver

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

4
.gitignore vendored
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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