freshclam: create_curl_handle: Unable to bind DNS resolves to xxx.xxx.xxx.xxx. Option requires that libcurl was built with c-ares.
by babydr from LinuxQuestions.org on (#5GBWH)
Having just compiled and installed on a MultiInterface server clamav-0.103.2 following the contents (if NOT using the script) of SlackBuilds.org for clamav .
The freshclam.conf.8 manpage says (to me) insert your primary exterior interface ip in the config entry , "LocalIPAddress" , So I did .
When running freshclam (see below(*1)) , curl reports the message saying that libcurl needs c-ares (ie: libc-ares) be complied in , in order to use the "LocalIPAddress" functionality .
Fyi , Leaving "LocalIPAddress" empty allows freshclam to run just fine . As my system is multiInterfaced tho Not multirouted at the moment but will be , Thus my concern .
Tho for those running on true MultiRouted servers are going have a problem when they HAVE to use the "LocalIPAddress" .
How & Who should be contacted to have this library be compiled into curl ?
(*2) Below MAY show that curl is not compiled with libc-ares .
Tho ...
Code:# nm /usr/lib64/libcurl.so.4.7.0
nm: /usr/lib64/libcurl.so.4.7.0: no symbols"Code:(*1)# freshclam
Thu Apr 8 12:57:54 2021 -> *Current working dir is /var/lib/clamav/
Thu Apr 8 12:57:54 2021 -> *Loaded mirrors.dat:
Thu Apr 8 12:57:54 2021 -> * version: 1
Thu Apr 8 12:57:54 2021 -> * uuid: d2f866ca-6562-4830-9b50-ec5820d2d4ff
Thu Apr 8 12:57:54 2021 -> ClamAV update process started at Thu Apr 8 12:57:54 2021
Thu Apr 8 12:57:54 2021 -> *Current working dir is /var/lib/clamav/
Thu Apr 8 12:57:54 2021 -> *Querying current.cvd.clamav.net
Thu Apr 8 12:57:54 2021 -> *TTL: 1254
Thu Apr 8 12:57:54 2021 -> *fc_dns_query_update_info: Software version from DNS: 0.103.2
Thu Apr 8 12:57:54 2021 -> *Current working dir is /var/lib/clamav/
Thu Apr 8 12:57:54 2021 -> ^[LibClamAV] cl_cvdhead: Can't read CVD header in daily.cvd
Thu Apr 8 12:57:54 2021 -> *check_for_new_database_version: No local copy of "daily" database.
Thu Apr 8 12:57:54 2021 -> *query_remote_database_version: daily.cvd version from DNS: 26134
Thu Apr 8 12:57:54 2021 -> daily database available for download (remote version: 26134)
Thu Apr 8 12:57:54 2021 -> *Retrieving https://database.clamav.net/daily.cvd
Thu Apr 8 12:57:54 2021 -> *Local IPv4 address requested: xxx.xxx.xxx.xxx
Thu Apr 8 12:57:54 2021 -> !create_curl_handle: Unable to bind DNS resolves to xxx.xxx.xxx.xxx. Option requires that libcurl was built with c-ares.
Thu Apr 8 12:57:54 2021 -> !downloadFile: Failed to create curl handle.
Thu Apr 8 12:57:54 2021 -> ^Can't download daily.cvd from https://database.clamav.net/daily.cvd
Thu Apr 8 12:57:54 2021 -> !Unexpected error when attempting to update daily: Invalid configuration settings(s)
Thu Apr 8 12:57:54 2021 -> !Database update process failed: Invalid configuration settings(s)
Thu Apr 8 12:57:54 2021 -> !Update failed.Code:(*2)# curl --version
curl 7.76.0 (x86_64-pc-linux-gnu) libcurl/7.76.0 OpenSSL/1.1.1k zlib/1.2.11 brotli/1.0.9 zstd/1.4.9 libidn2/2.3.0 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.43.0
Release-Date: 2021-03-31
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets zstd


The freshclam.conf.8 manpage says (to me) insert your primary exterior interface ip in the config entry , "LocalIPAddress" , So I did .
When running freshclam (see below(*1)) , curl reports the message saying that libcurl needs c-ares (ie: libc-ares) be complied in , in order to use the "LocalIPAddress" functionality .
Fyi , Leaving "LocalIPAddress" empty allows freshclam to run just fine . As my system is multiInterfaced tho Not multirouted at the moment but will be , Thus my concern .
Tho for those running on true MultiRouted servers are going have a problem when they HAVE to use the "LocalIPAddress" .
How & Who should be contacted to have this library be compiled into curl ?
(*2) Below MAY show that curl is not compiled with libc-ares .
Tho ...
Code:# nm /usr/lib64/libcurl.so.4.7.0
nm: /usr/lib64/libcurl.so.4.7.0: no symbols"Code:(*1)# freshclam
Thu Apr 8 12:57:54 2021 -> *Current working dir is /var/lib/clamav/
Thu Apr 8 12:57:54 2021 -> *Loaded mirrors.dat:
Thu Apr 8 12:57:54 2021 -> * version: 1
Thu Apr 8 12:57:54 2021 -> * uuid: d2f866ca-6562-4830-9b50-ec5820d2d4ff
Thu Apr 8 12:57:54 2021 -> ClamAV update process started at Thu Apr 8 12:57:54 2021
Thu Apr 8 12:57:54 2021 -> *Current working dir is /var/lib/clamav/
Thu Apr 8 12:57:54 2021 -> *Querying current.cvd.clamav.net
Thu Apr 8 12:57:54 2021 -> *TTL: 1254
Thu Apr 8 12:57:54 2021 -> *fc_dns_query_update_info: Software version from DNS: 0.103.2
Thu Apr 8 12:57:54 2021 -> *Current working dir is /var/lib/clamav/
Thu Apr 8 12:57:54 2021 -> ^[LibClamAV] cl_cvdhead: Can't read CVD header in daily.cvd
Thu Apr 8 12:57:54 2021 -> *check_for_new_database_version: No local copy of "daily" database.
Thu Apr 8 12:57:54 2021 -> *query_remote_database_version: daily.cvd version from DNS: 26134
Thu Apr 8 12:57:54 2021 -> daily database available for download (remote version: 26134)
Thu Apr 8 12:57:54 2021 -> *Retrieving https://database.clamav.net/daily.cvd
Thu Apr 8 12:57:54 2021 -> *Local IPv4 address requested: xxx.xxx.xxx.xxx
Thu Apr 8 12:57:54 2021 -> !create_curl_handle: Unable to bind DNS resolves to xxx.xxx.xxx.xxx. Option requires that libcurl was built with c-ares.
Thu Apr 8 12:57:54 2021 -> !downloadFile: Failed to create curl handle.
Thu Apr 8 12:57:54 2021 -> ^Can't download daily.cvd from https://database.clamav.net/daily.cvd
Thu Apr 8 12:57:54 2021 -> !Unexpected error when attempting to update daily: Invalid configuration settings(s)
Thu Apr 8 12:57:54 2021 -> !Database update process failed: Invalid configuration settings(s)
Thu Apr 8 12:57:54 2021 -> !Update failed.Code:(*2)# curl --version
curl 7.76.0 (x86_64-pc-linux-gnu) libcurl/7.76.0 OpenSSL/1.1.1k zlib/1.2.11 brotli/1.0.9 zstd/1.4.9 libidn2/2.3.0 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.43.0
Release-Date: 2021-03-31
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets zstd