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
.*CA_FILE
Dockerfiles/*/rhel/secrets/*
sources/*
sources/*
.*.orig
.*.rej

View File

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

View File

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

View File

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

View File

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

View File

@@ -44,6 +44,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

@@ -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

@@ -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

@@ -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

@@ -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

@@ -86,6 +86,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

@@ -85,6 +85,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

@@ -86,6 +86,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

@@ -97,6 +97,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

@@ -85,6 +85,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

@@ -76,6 +76,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

@@ -76,6 +76,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

@@ -76,6 +76,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

@@ -87,6 +87,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

@@ -76,6 +76,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

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

View File

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

View File

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

View File

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

View File

@@ -58,6 +58,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

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

View File

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

View File

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

View File

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

View File

@@ -56,6 +56,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

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

View File

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

View File

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

View File

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

View File

@@ -59,6 +59,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

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

View File

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

View File

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

View File

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

View File

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