Discussion:
tsl 3.0.5 ipv6 bind to single v6-address
Florian
2007-06-08 22:04:27 UTC
Permalink
Hello list,

i configured my tsl 3.0.5 for ipv6 support and installed the tsl
bind-packages.
bind-libs-9.3.4-3tr
bind-9.3.4-3tr
bind-utils-9.3.4-3tr

I have more ip-v6-adresses on my interface and want to bind the named on
a certain address like :
/etc/named.conf
-------------------
listen-on-v6 {
::1;
2001:470:1f00:484::2;
};
-------------------
#dig @2001:470:1f00:484::2 -6 -t aaaa www6.agilolfinger.de
dig is timing out

#netstat -an | grep -E "(:53|:953|:32)"
tcp 0 0 194.77.3.34:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:51762 127.0.0.1:953 TIME_WAIT
tcp 0 0 127.0.0.1:51763 127.0.0.1:953 TIME_WAIT
tcp 0 0 ::1:953 :::* LISTEN
udp 0 0 0.0.0.0:32772 0.0.0.0:*
udp 0 0 0.0.0.0:32773 0.0.0.0:*
udp 0 0 0.0.0.0:32912 0.0.0.0:*
udp 0 0 194.77.3.34:53 0.0.0.0:*
udp 0 0 127.0.0.1:53 0.0.0.0:*
udp 0 0 :::32913 :::*

#tail /var/log/messages
starting BIND 9.3.4 -u named -c /etc/named.conf -t /var/lib/named/chroot
loading configuration from '/etc/named.conf'
listening on IPv4 interface lo, 127.0.0.1#53
listening on IPv4 interface eth0, 194.77.3.34#53
command channel listening on 127.0.0.1#953
command channel listening on ::1#953
named startup succeeded



Bind is only starting an working with ipv6 if i do the following in
/etc/named.conf:
-------------------
listen-on-v6 {
any;
};
-------------------
#dig @2001:470:1f00:484::2 -6 -t aaaa www6.agilolfinger.de
is resolving; ok

#netstat -an | grep -E "(:53|:953|:32)"
tcp 0 0 194.77.3.34:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN
tcp 0 0 :::53 :::* LISTEN
tcp 0 0 ::1:953 :::* LISTEN
udp 0 0 0.0.0.0:32772 0.0.0.0:*
udp 0 0 0.0.0.0:32773 0.0.0.0:*
udp 0 0 0.0.0.0:32938 0.0.0.0:*
udp 0 0 194.77.3.34:53 0.0.0.0:*
udp 0 0 127.0.0.1:53 0.0.0.0:*
udp 0 0 :::32939 :::*
udp 0 0 :::53 :::*


It seems, that bind doesn't bind with port 53 to a single ip-v6-address.
Is this a known issue? I can't find anything about it in the isc-doku or
in google. Does anyone know a way to bind named:53 to a single ipv6-address?

Thanks, Florian
Florian
2007-06-12 20:45:17 UTC
Permalink
Post by Florian
Hello list,
i configured my tsl 3.0.5 for ipv6 support and installed the tsl
bind-packages.
bind-libs-9.3.4-3tr
bind-9.3.4-3tr
bind-utils-9.3.4-3tr
I have more ip-v6-adresses on my interface and want to bind the named on
/etc/named.conf
-------------------
listen-on-v6 {
::1;
2001:470:1f00:484::2;
};
-------------------
#
It seems, that bind doesn't bind with port 53 to a single ip-v6-address.
Is this a known issue? I can't find anything about it in the isc-doku or
in google. Does anyone know a way to bind named:53 to a single ipv6-address?
Thanks, Florian
_______________________________________________
tsl-discuss mailing list
http://lists.trustix.org/mailman/listinfo/tsl-discuss
Hi,

i posted the same message to the bind-users list and got the following hint:

"Configure your chroot environment to have a /proc. That
way named can check each of the IPv6 addresses in
/proc/net/if_inet6 against the listen-on-v6 acl."

So i changed the named start-skript /etc/init.d/named
-----------------------------------------------
setupjail() {
....
if [ "${NETWORKING_IPV6}" = "yes" ]
then
mkdir -p ${JAIL_BASE}/proc/net
touch ${JAIL_BASE}/proc/net/if_inet6
chmod -R 555 ${JAIL_BASE}/proc
chmod 444 ${JAIL_BASE}/proc/net/if_inet6
mount --bind /proc/net/if_inet6
${JAIL_BASE}/proc/net/if_inet6
fi
...
closejail() {
...
umount -f ${JAIL_BASE}/proc/net/if_inet6 2>/dev/null
rm -rf ${JAIL_BASE}/proc 2>/dev/null
#btw. deleting /dev is missing in the script too
rm -rf ${JAIL_BASE}/dev 2>/dev/null
...
-------------------------------------------------

restarting bind and - it works!

Is it possible to get this change into the tsl-bind-package?

Bye, Florian

Loading...