Could we adapt:
http://lists.scusting.com/index.php?t=msg&th=244420&goto=1042086&am…
For IPv6 the IPV6_PKTINFO socket option described in
RFC 3542 allows
applications to get and set the local address per-packet; this is
hopefully implemented on most Unix-like systems.
to 1.3.0? That way we would be able to bind to 0/0 and still be able to control the src
address on outgoing packets.
For IPv4, Linux has a similar IP_PKTINFO option
whereas BSD and Solaris
provide the options IP_{RECVDST,SENDSRC}ADDR. This lack of portability
may explain why more applications have not adopted this approach yet.
This might also be doable with right autoconf magic detecting the right options at compile
time.
O.
On 3. 6. 2013, at 23:22, Leoš Bitto <leos.bitto(a)gmail.com> wrote:
Hello,
it seems that knotd suffers from the same issue as described here:
http://lists.scusting.com/index.php?t=msg&th=244420
I have Debian 7.0 with
http://deb.knot-dns.cz/debian/dists/wheezy/main/binary-i386/net/knot_1.2.0-…
installed and this is in /var/log/syslog after reboot:
Jun 3 22:37:43 ns knot[2091]: Binding to interface 2xxx:xxxx:xxxx:xxxx::1 port 53.
Jun 3 22:37:43 ns knot[2091]: [error] Cannot bind to socket (errno 99).
Jun 3 22:37:43 ns knot[2091]: [error] Could not bind to UDP interface
2xxx:xxxx:xxxx:xxxx::1 port 53.
I have a static IPv6 address configured in /etc/network/interfaces. Restarting knot later
binds to this IPv6 address without any problem - it is only the first start which fails
(during OS booting). What do you think that is the proper way of making knotd reliably
listen on a static IPv6 address? I would prefer if I could avoid restarting knotd.
Leos Bitto
_______________________________________________
knot-dns-users mailing list
knot-dns-users(a)lists.nic.cz
https://lists.nic.cz/cgi-bin/mailman/listinfo/knot-dns-users
--
Ondřej Surý -- Chief Science Officer
-------------------------------------------
CZ.NIC, z.s.p.o. -- Laboratoře CZ.NIC
Americka 23, 120 00 Praha 2, Czech Republic
mailto:ondrej.sury@nic.cz
http://nic.cz/
tel:+420.222745110 fax:+420.222745112
-------------------------------------------