<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 24, 2016 at 2:04 PM, Yuriy M. Kaminskiy <span dir="ltr"><<a href="mailto:yumkam@gmail.com" target="_blank">yumkam@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 19.02.2016 18:26, Lennart Poettering wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Note that resolved will not look up IPv6 addresses if this isn't<br>
explicitly requested if there are no local routable IPv6 addresses<br>
configured. And vice versa, it won't look for IPv4 addresses if this<br>
</blockquote>
<br></span>
Maybe I'm missing something, but That looks ...problematic. To extreme.<br>
So, I cannot<br>
<br>
getent ahosts <a href="http://www.freedesktop.org" rel="noreferrer" target="_blank">www.freedesktop.org</a> | while read a rest; do<br>
case $a in<br>
*:*) ip6tables -A OUTPUT -d $a -j REJECT;;<br>
*.*) iptables -A OUTPUT -d $a -j REJECT;;<br>
esac<br>
done<br>
<br>
*before* I've got my ipv6 connectivity up and running?</blockquote><div><br></div><div>getent ahostsv4 <a href="http://www.freedesktop.org">www.freedesktop.org</a> | while read a rest; do</div><div> iptables -A OUTPUT -d $a -j REJECT</div><div>done</div><div>getent ahostsv6 <a href="http://www.freedesktop.org">www.freedesktop.org</a> | while read a rest; do</div><div> ip6tables -A OUTPUT -d $a -j REJECT</div><div>done</div><div><br></div><div><br></div><div>I'm not sure I like the feature myself – the last time I had to deal with libc's equivalent, AI_ADDRCONF, it would even prevent programs from resolving _localhost_ when the system wasn't online... But, I guess it can improve things in certain situations.</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>