Use c-ares library as DNS resolver
This commit is contained in:
parent
15922fd093
commit
b318f3d27b
4
.gitignore
vendored
4
.gitignore
vendored
@ -5,4 +5,6 @@ zbx_env*/
|
|||||||
.*KEY_FILE
|
.*KEY_FILE
|
||||||
.*CA_FILE
|
.*CA_FILE
|
||||||
Dockerfiles/*/rhel/secrets/*
|
Dockerfiles/*/rhel/secrets/*
|
||||||
sources/*
|
sources/*
|
||||||
|
.*.orig
|
||||||
|
.*.rej
|
||||||
@ -41,6 +41,7 @@ RUN set -eux && \
|
|||||||
tzdata \
|
tzdata \
|
||||||
coreutils \
|
coreutils \
|
||||||
iputils \
|
iputils \
|
||||||
|
c-ares \
|
||||||
pcre2 \
|
pcre2 \
|
||||||
libgcc \
|
libgcc \
|
||||||
libcurl \
|
libcurl \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -53,6 +53,7 @@ RUN set -eux && \
|
|||||||
krb5 \
|
krb5 \
|
||||||
iputils \
|
iputils \
|
||||||
openssl \
|
openssl \
|
||||||
|
c-ares \
|
||||||
libcap \
|
libcap \
|
||||||
libcurl \
|
libcurl \
|
||||||
libevent \
|
libevent \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -52,6 +52,7 @@ RUN set -eux && \
|
|||||||
fping \
|
fping \
|
||||||
iputils \
|
iputils \
|
||||||
openssl \
|
openssl \
|
||||||
|
c-ares \
|
||||||
libcap \
|
libcap \
|
||||||
libcurl \
|
libcurl \
|
||||||
libevent \
|
libevent \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -54,6 +54,7 @@ RUN set -eux && \
|
|||||||
tzdata \
|
tzdata \
|
||||||
iputils \
|
iputils \
|
||||||
openssl \
|
openssl \
|
||||||
|
c-ares \
|
||||||
libcap \
|
libcap \
|
||||||
libcurl \
|
libcurl \
|
||||||
libevent \
|
libevent \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -54,6 +54,7 @@ RUN set -eux && \
|
|||||||
tzdata \
|
tzdata \
|
||||||
iputils \
|
iputils \
|
||||||
openssl \
|
openssl \
|
||||||
|
c-ares \
|
||||||
libcap \
|
libcap \
|
||||||
libcurl \
|
libcurl \
|
||||||
libevent \
|
libevent \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
@ -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 \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user