<div dir="auto">Ip protocol v6 should support both ipv4 and v6. So if you use that and the name resolves to a v4 address or should work.</div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 19, 2018, 19:23 David Hauck <<a href="mailto:davidh@netacquire.com">davidh@netacquire.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Thought I would reach out again to see if anyone had any thoughts on the item below.<br>
<br>
Thanks for the consideration,<br>
-David<br>
<br>
On Wednesday, September 12, 2018 3:39 PM, syslog-ng <<a href="mailto:syslog-ng-bounces@lists.balabit.hu" target="_blank" rel="noreferrer">syslog-ng-bounces@lists.balabit.hu</a>> On Behalf Of David Hauck wrote:<br>
> Hi,<br>
> <br>
> I have a question regarding how to specify a network destination when using a hostname when the<br>
> hostname can be resolved to either IPv4 or IPv6. In particular what should be specified by the ip-<br>
> protocol() parameter? There are some configuration scenarios and/or target installations that don't<br>
> know a priori whether the DNS configuration will resolve to an IPv4 or IPv6 address.<br>
> <br>
> E.g.,<br>
> <br>
> destination d_tcp6 {<br>
>     network(<br>
>         "myhost"<br>
>         port(514)<br>
>         transport(udp)<br>
>         ip-protocol(6 or 4 or ??)<br>
>         );<br>
> };<br>
> <br>
> It seems like it would simple enough to have syslog-ng simply validate the resulting IP address string to<br>
> determine which of ip-protocol(4) or ip-protocol(6) is actually needed. In fact, I would argue that<br>
> specifying an IP address string (as the "<destination-address>" value) could result in the same<br>
> determination (the address string necessarily unambiguously determines whether the reference is an<br>
> IPv4 or an IPv6 address and I would think there is a 1-1 relationship between this determination and<br>
> whether ip-protocol(4) or ip-protocol(6) is used - (in other words it would never make sense to have<br>
> these mixed: "::1" and ip-protocol(4) would be invalid).<br>
> <br>
> Thanks, -David<br>
> _________________________________________________________________________<br>
> ____ _ Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
> Documentation:<br>
> <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a> FAQ:<br>
> <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div>