On Sat, Feb 06 2021, Florian Obser <[email protected]> wrote:
> On Sat, Feb 06, 2021 at 01:23:35AM +0100, Jeremie Courreges-Anglas wrote:
>> On Fri, Jan 29 2021, Florian Obser <[email protected]> wrote:
>> > Last piece of the puzzle...
>> >
>> > Re-try to open DNSSEC trust anchor file if /var is not mounted yet.
>> > With this we are able to start unwind before the network is up and
>> > partitions are mounted.
>>
>> Sorry for being late to the party, I just upgraded to the latest snaps
>> and DNS broke. Reverting this diff unbreaks unwind(8) operations.
>>
>
> Could you be more specific what broke?
Yes, sorry for the lack of details. I just didn't get any reply from
unwind(8).
Debug output with "preference { recursor }":
--8<--
shannon /usr/src/sbin/unwind$ sudo obj/unwind -dvv &
[1] 22635
shannon /usr/src/sbin/unwind$ fstat | grep unwind
_unwind unwind 54878 text /usr/obj 103939 -rwxr-xr-x r 11104216
_unwind unwind 54878 wd /var 155539 drwxr-xr-x r 512
_unwind unwind 54878 root /var 155539 drwxr-xr-x r 512
_unwind unwind 54878 0 / 104248 crw--w---- rw ttyp6
_unwind unwind 54878 1 / 104248 crw--w---- rw ttyp6
_unwind unwind 54878 2 / 104248 crw--w---- rw ttyp6
_unwind unwind 54878 3* unix stream 0x0
_unwind unwind 54878 4 kqueue 0x0 0 state: W
_unwind unwind 54878 5* unix stream 0x0
_unwind unwind 54878 6* internet dgram udp 127.0.0.1:53
_unwind unwind 54878 7* internet6 dgram udp [::1]:53
_unwind unwind 54878 8* internet stream tcp 0x0 127.0.0.1:53
_unwind unwind 54878 9* internet6 stream tcp 0x0 [::1]:53
_unwind unwind 54878 10* unix stream 0x0 /dev/unwind.sock
_unwind unwind 54878 11* route raw 0 0x0
_unwind unwind 54878 12 /var 234193 -rw-r--r-- rwp 376
_unwind unwind 39065 text /usr/obj 103939 -rwxr-xr-x r 11104216
_unwind unwind 39065 wd /usr/src 398245 drwxr-xr-x r 4096
_unwind unwind 39065 0 / 104248 crw--w---- rw ttyp6
_unwind unwind 39065 1 / 104248 crw--w---- rw ttyp6
_unwind unwind 39065 2 / 104248 crw--w---- rw ttyp6
_unwind unwind 39065 3* unix stream 0x0
_unwind unwind 39065 4 kqueue 0x0 0 state: W
_unwind unwind 39065 5* unix stream 0x0
root unwind 22635 text /usr/obj 103939 -rwxr-xr-x r 11104216
root unwind 22635 wd /usr/src 398245 drwxr-xr-x r 4096
root unwind 22635 0 / 104248 crw--w---- rw ttyp6
root unwind 22635 1 / 104248 crw--w---- rw ttyp6
root unwind 22635 2 / 104248 crw--w---- rw ttyp6
root unwind 22635 3* unix stream 0x0
root unwind 22635 4 kqueue 0x0 0 state: W
root unwind 22635 5* unix stream 0x0
root unwind 22635 14* route raw 0 0x0
shannon /usr/src/sbin/unwind$ dig openbsd.org @127.0.0.1
from: [127.0.0.1]:14381
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 26482
;; flags: rd ad ; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
openbsd.org. IN A
;; ANSWER SECTION:
;; AUTHORITY SECTION:
;; ADDITIONAL SECTION:
; EDNS: version: 0; flags: ; udp: 4096
;; MSG SIZE rcvd: 40
[127.0.0.1]:14381: openbsd.org. IN A ?
try_next_resolver: could not find (any more) working resolvers
from: [127.0.0.1]:14381
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 26482
;; flags: rd ad ; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
openbsd.org. IN A
;; ANSWER SECTION:
;; AUTHORITY SECTION:
;; ADDITIONAL SECTION:
; EDNS: version: 0; flags: ; udp: 4096
;; MSG SIZE rcvd: 40
[127.0.0.1]:14381: openbsd.org. IN A ?
try_next_resolver: could not find (any more) working resolvers
from: [127.0.0.1]:14381
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 26482
;; flags: rd ad ; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
openbsd.org. IN A
;; ANSWER SECTION:
;; AUTHORITY SECTION:
;; ADDITIONAL SECTION:
; EDNS: version: 0; flags: ; udp: 4096
;; MSG SIZE rcvd: 40
[127.0.0.1]:14381: openbsd.org. IN A ?
try_next_resolver: could not find (any more) working resolvers
[... etc etc]
^C
shannon /usr/src/sbin/unwind$
-->8--
--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE