Bug 1211 - can't enable interface-automatic if no IPv6
can't enable interface-automatic if no IPv6
Status: RESOLVED FIXED
Product: unbound
Classification: Unclassified
Component: server
1.6.0
x86_64 Windows
: P5 enhancement
Assigned To: unbound team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-01-25 17:16 CET by lenovo_me
Modified: 2017-01-26 12:28 CET (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lenovo_me 2017-01-25 17:16:44 CET
fatal error: recvmsg: No support for IPV6_PKTINFO. Please disable interface-automatic
Comment 1 Wouter Wijngaards 2017-01-26 09:09:45 CET
Hi,

Have you tried setting do-ip6: no in unbound.conf ?

Best regards, Wouter
Comment 2 lenovo_me 2017-01-26 11:59:09 CET
it works after setting do-ip6: no
Comment 3 lenovo_me 2017-01-26 12:02:06 CET
sorry, it don't work and unbound exit when i do a query
Comment 4 lenovo_me 2017-01-26 12:04:56 CET
level 5 log:

2017/1/26 19:03:21 unbound.exe[4224:0] debug: module config: "validator iterator"
2017/1/26 19:03:21 unbound.exe[4224:0] notice: init module 0: validator
2017/1/26 19:03:21 unbound.exe[4224:0] debug: validator nsec3cfg keysz 1024 mxiter 150
2017/1/26 19:03:21 unbound.exe[4224:0] debug: validator nsec3cfg keysz 2048 mxiter 500
2017/1/26 19:03:21 unbound.exe[4224:0] debug: validator nsec3cfg keysz 4096 mxiter 2500
2017/1/26 19:03:21 unbound.exe[4224:0] notice: init module 1: iterator
2017/1/26 19:03:21 unbound.exe[4224:0] debug: target fetch policy for level 0 is 3
2017/1/26 19:03:21 unbound.exe[4224:0] debug: target fetch policy for level 1 is 2
2017/1/26 19:03:21 unbound.exe[4224:0] debug: target fetch policy for level 2 is 1
2017/1/26 19:03:21 unbound.exe[4224:0] debug: target fetch policy for level 3 is 0
2017/1/26 19:03:21 unbound.exe[4224:0] debug: target fetch policy for level 4 is 0
2017/1/26 19:03:22 unbound.exe[4224:0] debug: total of 59493 outgoing ports available
2017/1/26 19:03:22 unbound.exe[4224:0] debug: tube created
2017/1/26 19:03:22 unbound.exe[4224:0] debug: start threads
2017/1/26 19:03:22 unbound.exe[4224:0] debug: winsock_event inited
2017/1/26 19:03:22 unbound.exe[4224:0] debug: event winsock user WSAWaitForMultipleEvents method.
2017/1/26 19:03:22 unbound.exe[4224:0] debug: event_add 031C2898 added=0 fd=288 tv=-1  EV_READ
2017/1/26 19:03:22 unbound.exe[4224:0] debug: event_add 031C2FD0 added=0 fd=284 tv=-1  EV_READ
2017/1/26 19:03:22 unbound.exe[4224:0] debug: Forward zone server list:
2017/1/26 19:03:22 unbound.exe[4224:0] info: DelegationPoint<.>: 0 names (0 missing), 1 addrs (0 result, 1 avail) parentNS
2017/1/26 19:03:22 unbound.exe[4224:0] debug:    ip4 127.0.0.1 port 9103 (len 16)
2017/1/26 19:03:22 unbound.exe[4224:0] debug: no config, using builtin root hints.
2017/1/26 19:03:22 unbound.exe[4224:0] debug: cache memory msg=33040 rrset=33040 infra=1320 val=33156
2017/1/26 19:03:22 unbound.exe[4224:0] debug: set statistics interval 3600 secs
2017/1/26 19:03:22 unbound.exe[4224:0] debug: event_add 015A2E90 added=0 fd=-1 tv=3600000  EV_TIMEOUT
2017/1/26 19:03:22 unbound.exe[4224:0] info: start of service (unbound 1.6.0).
2017/1/26 19:03:22 unbound.exe[4224:0] debug: winsock_event handle_timeouts
2017/1/26 19:03:22 unbound.exe[4224:0] debug: winsock_event wait=3599.998998
2017/1/26 19:03:22 unbound.exe[4224:0] debug: winsock_event handle_select
2017/1/26 19:03:22 unbound.exe[4224:0] debug: winsock_event bmax=3 numwait=3 wait=<wait> timeout=3599998
2017/1/26 19:03:43 unbound.exe[4224:0] debug: winsock_event wake was_timeout=0 startidx=1
2017/1/26 19:03:43 unbound.exe[4224:0] debug: winsock_event signals
2017/1/26 19:03:43 unbound.exe[4224:0] debug: winsock_event net
2017/1/26 19:03:43 unbound.exe[4224:0] debug: winsock event callback 031C2FD0 fd=284  FD_READ ;  EV_READ
2017/1/26 19:03:43 unbound.exe[4224:0] fatal error: recvmsg: No support for IPV6_PKTINFO. Please disable interface-automatic
Comment 5 Wouter Wijngaards 2017-01-26 12:10:48 CET
Hi,

I have changed the error message printouts.  They now suggest turning off do-ip6 for some cases and in this case print all the other options that your OS is not supporting.

The error is not about ipv6, there is no support for the interface-automatic option.  Your OS does not support the options unbound uses for it.  (use recent Linux kernel, for example, to get it).

Best regards, Wouter
Comment 6 Wouter Wijngaards 2017-01-26 12:14:08 CET
Hi,

Yes, your are running windows and the socket options unbound uses are not supported there.  This is why in that #else branch in the code it prints this statement.  And exits unbound, because it cannot receive packets any more ...

Maybe if you run unbound under the OpenSuse personality of Windows it'll support these socket options?  I have no idea if that is even possible; you probably would need to recompile for OpenSuse.

Best regards, Wouter
Comment 7 lenovo_me 2017-01-26 12:28:04 CET
ok, i will disable it on windows
thanks