[syslog-ng] No remote logging with hostname which has address is IPv6

Alexandre Santos alexandre.rosas.santos at gmail.com
Fri Aug 28 10:35:15 UTC 2020


Hi,

I have configuration, which is sending log messages to a remote hostname
(dns6server). The particularity of this remote server is that it is
resolved to an IPv6 address.

ping works fine:
root at localhost:~# ping dns6server -c 3
PING dns6server(2620:38:4::8:4000:238) 56 data bytes
64 bytes from 2620:38:4::8:4000:238: icmp_seq=1 ttl=63 time=0.354 ms
64 bytes from 2620:38:4::8:4000:238: icmp_seq=2 ttl=63 time=0.264 ms
64 bytes from 2620:38:4::8:4000:238: icmp_seq=3 ttl=63 time=0.310 ms

But syslog-ng seems not to be able to resolve the ipv6 address:

Aug 27 20:58:37 localhost systemd[1]: mgmt-syslog-ng.service: Succeeded.

Aug 27 20:58:37 localhost systemd[1]: Stopped External Logger Daemon.

Aug 27 20:58:37 localhost systemd[1]: Starting External Logger Daemon...

Aug 27 20:58:37 localhost ip[32709]: [2020-08-27T20:58:37.841389] WARNING:
With use-dns(no), dns-cache() will be forced to 'no' too!;

Aug 27 20:58:46 localhost ip[32709]: [2020-08-27T20:58:46.854714] Error
resolving hostname; host='dns6server'

Aug 27 20:58:46 localhost ip[32709]: [2020-08-27T20:58:46.854758]
Initiating connection failed, reconnecting; time_reopen='60'

Aug 27 20:58:46 localhost systemd[1]: Started External Logger Daemon.


Any Ideas?


I am sending the configuration and debug log in attachment.


Thanks in Advance,

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20200828/6a757ea1/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mgmt-syslog-ng.log
Type: application/octet-stream
Size: 28836 bytes
Desc: not available
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20200828/6a757ea1/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mgmt-syslog-ng.conf
Type: application/octet-stream
Size: 1186 bytes
Desc: not available
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20200828/6a757ea1/attachment-0003.obj>


More information about the syslog-ng mailing list