0

nextdns high cpu on USG

Hi all.  I have a Unifi Security Gateway I just got and installed nextdns on it.  But with nextdns running, it uses close to 100% CPU on the USG, which causes my network to come to a crawl.  I know it's nextdns because if I stop the nextdns service, the USG runs like 2% CPU.  Any ideas?  could have a configuration problem?  With that said, is there a way to just delete the config and start over?  Thank you.

23 replies

null
    • olivier
    • 3 yrs ago
    • Reported - view

    Next time you get a 100% CPU, can you please copy/paste the output of the following command on the USG: "nextdns trace"

      • green_camera
      • 3 yrs ago
      • Reported - view

      Olivier Poitrey sure will do.  i've got nextdns off at the moment as I'm trying to work haha.  i'll enable it after work and run that trace.  thanks.

      • green_camera
      • 3 yrs ago
      • Reported - view

      Olivier Poitrey 

      goroutine 745 [running]:
      main.run.func4(0x0, 0x0, 0xc0004aabc0, 0x5)
              /home/runner/work/nextdns/nextdns/run.go:177 +0x80
      github.com/nextdns/nextdns/ctl.(*Server).handle(0xc0000f4070, 0x50b260, 0xc00000c120, 0xc0004aabc0, 0x5, 0x0, 0x0, 0x0)
              /home/runner/work/nextdns/nextdns/ctl/server.go:125 +0x140
      github.com/nextdns/nextdns/ctl.(*Server).handleEvents(0xc0000f4070, 0x50b260, 0xc00000c120)
              /home/runner/work/nextdns/nextdns/ctl/server.go:114 +0x154
      created by github.com/nextdns/nextdns/ctl.(*Server).run
              /home/runner/work/nextdns/nextdns/ctl/server.go:85 +0xc0

      goroutine 1 [chan receive]:
      github.com/nextdns/nextdns/host/service.runService(0x482bb7, 0x7, 0x507640, 0xc000106000, 0x10000c000020280, 0xc00000a5a0)
              /home/runner/work/nextdns/nextdns/host/service/run_unix.go:22 +0xb4
      github.com/nextdns/nextdns/host/service.Run(0x482bb7, 0x7, 0x507640, 0xc000106000, 0x1, 0x1)
              /home/runner/work/nextdns/nextdns/host/service/run.go:19 +0xdc
      main.run(0xc00009a030, 0x1, 0x0, 0x0, 0x0)
              /home/runner/work/nextdns/nextdns/run.go:384 +0xaf0
      main.main()
              /home/runner/work/nextdns/nextdns/main.go:72 +0x1c0

      goroutine 18 [IO wait]:
      internal/poll.runtime_pollWait(0xffcf085fd0, 0x72, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/runtime/netpoll.go:220 +0x60
      internal/poll.(*pollDesc).wait(0xc0000fe298, 0x72, 0x0, 0x0, 0x482a75)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_poll_runtime.go:87 +0x50
      internal/poll.(*pollDesc).waitRead(...)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_poll_runtime.go:92
      internal/poll.(*FD).Accept(0xc0000fe280, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_unix.go:394 +0x218
      net.(*netFD).accept(0xc0000fe280, 0xc00000c120, 0x0, 0x5c48c)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/fd_unix.go:172 +0x44
      net.(*UnixListener).accept(0xc000085020, 0xc000088fa0, 0xc000088fa8, 0x1800000000)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/unixsock_posix.go:162 +0x40
      net.(*UnixListener).Accept(0xc000085020, 0x4a22a0, 0xc0000f4070, 0x50b260, 0xc00000c120)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/unixsock.go:260 +0x88
      github.com/nextdns/nextdns/ctl.(*Server).run(0xc0000f4070, 0x5076c0, 0xc000085020)
              /home/runner/work/nextdns/nextdns/ctl/server.go:80 +0x44
      created by github.com/nextdns/nextdns/ctl.(*Server).Start
              /home/runner/work/nextdns/nextdns/ctl/server.go:52 +0xe4

      goroutine 64 [runnable]:
      github.com/nextdns/nextdns/internal/dnsmessage.(*Parser).AdditionalHeader(...)
              /home/runner/work/nextdns/nextdns/internal/dnsmessage/message.go:805
      github.com/nextdns/nextdns/resolver/query.(*Query).parse(0xc000257b00, 0x10, 0x10)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:172 +0x320
      github.com/nextdns/nextdns/resolver/query.New(0xc0001c2000, 0x20d, 0xffff, 0xc00032068c, 0x10, 0x10, 0x0, 0x0, 0x0, 0x0, ...)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:135 +0xb8
      github.com/nextdns/nextdns/proxy.Proxy.serveUDP.func2(0xc0002d0b80, 0x20d, 0xc00031f800, 0xc000028030, 0x1, 0x1, 0x504dc0, 0xc00000a440, 0x500ca0, 0xc00000a540, ...)
              /home/runner/work/nextdns/nextdns/proxy/udp.go:79 +0xd4
      created by github.com/nextdns/nextdns/proxy.Proxy.serveUDP
              /home/runner/work/nextdns/nextdns/proxy/udp.go:75 +0x26c

      goroutine 8 [chan receive, 3 minutes]:
      github.com/nextdns/nextdns/proxy.Proxy.ListenAndServe(0xc000028030, 0x1, 0x1, 0x504dc0, 0xc00000a440, 0x500ca0, 0xc00000a540, 0x504dc0, 0xc00000a4e0, 0x100000000000000, ...)
              /home/runner/work/nextdns/nextdns/proxy/proxy.go:135 +0x3b8
      main.(*proxySvc).start.func1(0xc000028270, 0xc000106000, 0xc000028260, 0xc000190180)
              /home/runner/work/nextdns/nextdns/run.go:96 +0x1d0
      created by main.(*proxySvc).start
              /home/runner/work/nextdns/nextdns/run.go:88 +0xcc

      goroutine 6 [runnable]:
      os/signal.signal_recv(0x5050c0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/runtime/sigqueue.go:147 +0x150
      os/signal.loop()
              /opt/hostedtoolcache/go/1.15.1/x64/src/os/signal/signal_unix.go:23 +0x34
      created by os/signal.Notify.func1.1
              /opt/hostedtoolcache/go/1.15.1/x64/src/os/signal/signal.go:150 +0x60

      goroutine 24 [IO wait]:
      internal/poll.runtime_pollWait(0xffcf085d30, 0x72, 0x28)
              /opt/hostedtoolcache/go/1.15.1/x64/src/runtime/netpoll.go:220 +0x60
      internal/poll.(*pollDesc).wait(0xc0001a8218, 0x72, 0xffff, 0xffff, 0xc00007c7e0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_poll_runtime.go:87 +0x50
      internal/poll.(*pollDesc).waitRead(...)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_poll_runtime.go:92
      internal/poll.(*FD).ReadMsg(0xc0001a8200, 0xc000656000, 0xffff, 0xffff, 0xc00007c7e0, 0x28, 0x28, 0x0, 0x0, 0x0, ...)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_unix.go:242 +0x1f0
      net.(*netFD).readMsg(0xc0001a8200, 0xc000656000, 0xffff, 0xffff, 0xc00007c7e0, 0x28, 0x28, 0x4427e0, 0x3a3bdc, 0x4, ...)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/fd_posix.go:67 +0x74
      net.(*UDPConn).readMsg(0xc00000c078, 0xc000656000, 0xffff, 0xffff, 0xc00007c7e0, 0x28, 0x28, 0xfff5d0e7d0, 0x0, 0x1ebd4, ...)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/udpsock_posix.go:59 +0x74
      net.(*UDPConn).ReadMsgUDP(0xc00000c078, 0xc000656000, 0xffff, 0xffff, 0xc00007c7e0, 0x28, 0x28, 0x0, 0x5c48c, 0x3b5348, ...)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/udpsock.go:139 +0x7c
      github.com/nextdns/nextdns/proxy.readUDP(0xc00000c078, 0xc000656000, 0xffff, 0xffff, 0xc00016a810, 0xc000028030, 0x1, 0x1, 0x504dc0, 0xc00000a440, ...)
              /home/runner/work/nextdns/nextdns/proxy/udp.go:137 +0xb4
      github.com/nextdns/nextdns/proxy.Proxy.serveUDP(0xc000028030, 0x1, 0x1, 0x504dc0, 0xc00000a440, 0x500ca0, 0xc00000a540, 0x504dc0, 0xc00000a4e0, 0x100000000000000, ...)
              /home/runner/work/nextdns/nextdns/proxy/udp.go:62 +0x15c
      github.com/nextdns/nextdns/proxy.Proxy.ListenAndServe.func1(0xc000028030, 0x1, 0x1, 0x504dc0, 0xc00000a440, 0x500ca0, 0xc00000a540, 0x504dc0, 0xc00000a4e0, 0x100000000000000, ...)
              /home/runner/work/nextdns/nextdns/proxy/proxy.go:110 +0x2a4
      created by github.com/nextdns/nextdns/proxy.Proxy.ListenAndServe
              /home/runner/work/nextdns/nextdns/proxy/proxy.go:104 +0x308

      goroutine 25 [IO wait, 3 minutes]:
      internal/poll.runtime_pollWait(0xffcf085c50, 0x72, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/runtime/netpoll.go:220 +0x60
      internal/poll.(*pollDesc).wait(0xc0001a8198, 0x72, 0x0, 0x0, 0x482a75)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_poll_runtime.go:87 +0x50
      internal/poll.(*pollDesc).waitRead(...)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_poll_runtime.go:92
      internal/poll.(*FD).Accept(0xc0001a8180, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_unix.go:394 +0x218
      net.(*netFD).accept(0xc0001a8180, 0xfff5d0e108, 0x0, 0xc00000c070)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/fd_unix.go:172 +0x44
      net.(*TCPListener).accept(0xc00000a5e0, 0x3b4a58, 0x30, 0x45e160)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/tcpsock_posix.go:139 +0x40
      net.(*TCPListener).Accept(0xc00000a5e0, 0xc000182870, 0xc00011c000, 0x3, 0xfff5d0e108)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/tcpsock.go:261 +0x88
      github.com/nextdns/nextdns/proxy.Proxy.serveTCP(0xc000028030, 0x1, 0x1, 0x504dc0, 0xc00000a440, 0x500ca0, 0xc00000a540, 0x504dc0, 0xc00000a4e0, 0x100000000000000, ...)
              /home/runner/work/nextdns/nextdns/proxy/tcp.go:29 +0x78
      github.com/nextdns/nextdns/proxy.Proxy.ListenAndServe.func2(0xc000028030, 0x1, 0x1, 0x504dc0, 0xc00000a440, 0x500ca0, 0xc00000a540, 0x504dc0, 0xc00000a4e0, 0x100000000000000, ...)
              /home/runner/work/nextdns/nextdns/proxy/proxy.go:125 +0x2a4
      created by github.com/nextdns/nextdns/proxy.Proxy.ListenAndServe
              /home/runner/work/nextdns/nextdns/proxy/proxy.go:119 +0x370

      goroutine 26 [IO wait]:
      internal/poll.runtime_pollWait(0xffcf085e10, 0x72, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/runtime/netpoll.go:220 +0x60
      internal/poll.(*pollDesc).wait(0xc0000fe818, 0x72, 0x10000, 0x10000, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_poll_runtime.go:87 +0x50
      internal/poll.(*pollDesc).waitRead(...)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_poll_runtime.go:92
      internal/poll.(*FD).ReadFrom(0xc0000fe800, 0xc0001d2000, 0x10000, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_unix.go:215 +0x1bc
      net.(*netFD).readFrom(0xc0000fe800, 0xc0001d2000, 0x10000, 0x10000, 0x0, 0x2540bd494, 0x15e1bc, 0xc0000fe800, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/fd_posix.go:61 +0x58
      net.(*UDPConn).readFrom(0xc0000a80a8, 0xc0001d2000, 0x10000, 0x10000, 0xc00c24345aa8c338, 0x3087dfbadf, 0x73b460, 0x72)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/udpsock_posix.go:47 +0x58
      net.(*UDPConn).ReadFromUDP(0xc0000a80a8, 0xc0001d2000, 0x10000, 0x10000, 0x0, 0x0, 0x73b460, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/udpsock.go:106 +0x60
      github.com/nextdns/nextdns/discovery.(*MDNS).read(0xc000182780, 0x508400, 0xc0000ae840, 0xc0000a80a8)
              /home/runner/work/nextdns/nextdns/discovery/mdns.go:179 +0xf8
      created by github.com/nextdns/nextdns/discovery.(*MDNS).Start
              /home/runner/work/nextdns/nextdns/discovery/mdns.go:64 +0x34c

      goroutine 27 [IO wait]:
      internal/poll.runtime_pollWait(0xffcf085ef0, 0x72, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/runtime/netpoll.go:220 +0x60
      internal/poll.(*pollDesc).wait(0xc0000fe918, 0x72, 0x10000, 0x10000, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_poll_runtime.go:87 +0x50
      internal/poll.(*pollDesc).waitRead(...)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_poll_runtime.go:92
      internal/poll.(*FD).ReadFrom(0xc0000fe900, 0xc0001e2000, 0x10000, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_unix.go:215 +0x1bc
      net.(*netFD).readFrom(0xc0000fe900, 0xc0001e2000, 0x10000, 0x10000, 0x0, 0x2540bcef4, 0x15e1bc, 0xc0000fe900, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/fd_posix.go:61 +0x58
      net.(*UDPConn).readFrom(0xc0000a80b8, 0xc0001e2000, 0x10000, 0x10000, 0xc00c24345aa2f82d, 0x3087d9f1d0, 0x73b460, 0x72)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/udpsock_posix.go:47 +0x58
      net.(*UDPConn).ReadFromUDP(0xc0000a80b8, 0xc0001e2000, 0x10000, 0x10000, 0x0, 0x0, 0x73b460, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/udpsock.go:106 +0x60
      github.com/nextdns/nextdns/discovery.(*MDNS).read(0xc000182780, 0x508400, 0xc0000ae840, 0xc0000a80b8)
              /home/runner/work/nextdns/nextdns/discovery/mdns.go:179 +0xf8
      created by github.com/nextdns/nextdns/discovery.(*MDNS).Start
              /home/runner/work/nextdns/nextdns/discovery/mdns.go:68 +0x254

      goroutine 28 [IO wait]:
      internal/poll.runtime_pollWait(0xffcf085b70, 0x72, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/runtime/netpoll.go:220 +0x60
      internal/poll.(*pollDesc).wait(0xc0000fe998, 0x72, 0x10000, 0x10000, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_poll_runtime.go:87 +0x50
      internal/poll.(*pollDesc).waitRead(...)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_poll_runtime.go:92
      internal/poll.(*FD).ReadFrom(0xc0000fe980, 0xc000200000, 0x10000, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_unix.go:215 +0x1bc
      net.(*netFD).readFrom(0xc0000fe980, 0xc000200000, 0x10000, 0x10000, 0x0, 0x2540bcf64, 0x15e1bc, 0xc0000fe980, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/fd_posix.go:61 +0x58
      net.(*UDPConn).readFrom(0xc0000a80c0, 0xc000200000, 0x10000, 0x10000, 0xc00c24345aac4157, 0x3087e337d6, 0x73b460, 0x72)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/udpsock_posix.go:47 +0x58
      net.(*UDPConn).ReadFromUDP(0xc0000a80c0, 0xc000200000, 0x10000, 0x10000, 0x0, 0x0, 0x73b460, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/udpsock.go:106 +0x60
      github.com/nextdns/nextdns/discovery.(*MDNS).read(0xc000182780, 0x508400, 0xc0000ae840, 0xc0000a80c0)
              /home/runner/work/nextdns/nextdns/discovery/mdns.go:179 +0xf8
      created by github.com/nextdns/nextdns/discovery.(*MDNS).Start
              /home/runner/work/nextdns/nextdns/discovery/mdns.go:64 +0x34c

      goroutine 29 [IO wait]:
      internal/poll.runtime_pollWait(0xffcf085a90, 0x72, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/runtime/netpoll.go:220 +0x60
      internal/poll.(*pollDesc).wait(0xc0000fea98, 0x72, 0x10000, 0x10000, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_poll_runtime.go:87 +0x50
      internal/poll.(*pollDesc).waitRead(...)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_poll_runtime.go:92
      internal/poll.(*FD).ReadFrom(0xc0000fea80, 0xc000210000, 0x10000, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_unix.go:215 +0x1bc
      net.(*netFD).readFrom(0xc0000fea80, 0xc000210000, 0x10000, 0x10000, 0x0, 0x2540bd1c8, 0x15e1bc, 0xc0000fea80, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/fd_posix.go:61 +0x58
      net.(*UDPConn).readFrom(0xc0000a80c8, 0xc000210000, 0x10000, 0x10000, 0xc00c24345aa57d89, 0x3087dc7236, 0x73b460, 0x72)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/udpsock_posix.go:47 +0x58
      net.(*UDPConn).ReadFromUDP(0xc0000a80c8, 0xc000210000, 0x10000, 0x10000, 0x0, 0x0, 0x73b460, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/udpsock.go:106 +0x60
      github.com/nextdns/nextdns/discovery.(*MDNS).read(0xc000182780, 0x508400, 0xc0000ae840, 0xc0000a80c8)
              /home/runner/work/nextdns/nextdns/discovery/mdns.go:179 +0xf8
      created by github.com/nextdns/nextdns/discovery.(*MDNS).Start
              /home/runner/work/nextdns/nextdns/discovery/mdns.go:68 +0x254

      goroutine 30 [chan receive, 3 minutes]:
      github.com/nextdns/nextdns/discovery.(*MDNS).Start.func1(0xc000182780, 0xc00009b0e0, 0x4, 0x4, 0x508400, 0xc0000ae840)
              /home/runner/work/nextdns/nextdns/discovery/mdns.go:98 +0x24c
      created by github.com/nextdns/nextdns/discovery.(*MDNS).Start
              /home/runner/work/nextdns/nextdns/discovery/mdns.go:76 +0x1f4

      goroutine 62 [IO wait]:
      internal/poll.runtime_pollWait(0xffcf0857f0, 0x72, 0x501dc0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/runtime/netpoll.go:220 +0x60
      internal/poll.(*pollDesc).wait(0xc0000ff498, 0x72, 0xc000310000, 0xe57, 0xe57)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_poll_runtime.go:87 +0x50
      internal/poll.(*pollDesc).waitRead(...)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_poll_runtime.go:92
      internal/poll.(*FD).Read(0xc0000ff480, 0xc000310000, 0xe57, 0xe57, 0x0, 0x0, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/internal/poll/fd_unix.go:159 +0x1c4
      net.(*netFD).Read(0xc0000ff480, 0xc000310000, 0xe57, 0xe57, 0x291f28, 0x0, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/fd_posix.go:55 +0x58
      net.(*conn).Read(0xc00000c030, 0xc000310000, 0xe57, 0xe57, 0x0, 0x0, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/net.go:182 +0x9c
      crypto/tls.(*atLeastReader).Read(0xc0004930e0, 0xc000310000, 0xe57, 0xe57, 0xd3d, 0x500c40, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/crypto/tls/conn.go:779 +0x6c
      bytes.(*Buffer).ReadFrom(0xc00019e280, 0x500b20, 0xc0004930e0, 0x29375c, 0x4235a0, 0x4629a0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/bytes/buffer.go:204 +0xcc
      crypto/tls.(*Conn).readFromUntil(0xc00019e000, 0xffcf090ab8, 0xc00043ed60, 0x5, 0xc00043ed60, 0x73)
              /opt/hostedtoolcache/go/1.15.1/x64/src/crypto/tls/conn.go:801 +0x100
      crypto/tls.(*Conn).readRecordOrCCS(0xc00019e000, 0x0, 0x0, 0x15484)
              /opt/hostedtoolcache/go/1.15.1/x64/src/crypto/tls/conn.go:608 +0x104
      crypto/tls.(*Conn).readRecord(...)
              /opt/hostedtoolcache/go/1.15.1/x64/src/crypto/tls/conn.go:576
      crypto/tls.(*Conn).Read(0xc00019e000, 0xc000316000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/crypto/tls/conn.go:1252 +0x174
      bufio.(*Reader).Read(0xc0000ab7a0, 0xc0002df298, 0x9, 0x9, 0x1000000004a2c70, 0x320fac, 0xc0003121e0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/bufio/bufio.go:227 +0x280
      io.ReadAtLeast(0x5009e0, 0xc0000ab7a0, 0xc0002df298, 0x9, 0x9, 0x9, 0xc000082050, 0x31e3e8, 0xc000255fb0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/io/io.go:314 +0x98
      io.ReadFull(...)
              /opt/hostedtoolcache/go/1.15.1/x64/src/io/io.go:333
      net/http.http2readFrameHeader(0xc0002df298, 0x9, 0x9, 0x5009e0, 0xc0000ab7a0, 0x0, 0x504480, 0x6a, 0xd3)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/http/h2_bundle.go:1477 +0x78
      net/http.(*http2Framer).ReadFrame(0xc0002df260, 0xc000085860, 0x0, 0x0, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/http/h2_bundle.go:1735 +0x94
      net/http.(*http2clientConnReadLoop).run(0xc000255fb0, 0xc000190ba0, 0x0)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/http/h2_bundle.go:8240 +0x90
      net/http.(*http2ClientConn).readLoop(0xc00024e600)
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/http/h2_bundle.go:8168 +0x78
      created by net/http.(*http2Transport).newClientConn
              /opt/hostedtoolcache/go/1.15.1/x64/src/net/http/h2_bundle.go:7173 +0x63c

      goroutine 593 [runnable]:
      github.com/nextdns/nextdns/internal/dnsmessage.(*Parser).resourceHeader(0xc00025b980, 0x500000000000000, 0x2e00000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
              /home/runner/work/nextdns/nextdns/internal/dnsmessage/message.go:587 +0x20
      github.com/nextdns/nextdns/internal/dnsmessage.(*Parser).AdditionalHeader(...)
              /home/runner/work/nextdns/nextdns/internal/dnsmessage/message.go:805
      github.com/nextdns/nextdns/resolver/query.(*Query).parse(0xc00025bb00, 0x10, 0x10)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:172 +0x2f0
      github.com/nextdns/nextdns/resolver/query.New(0xc00059c000, 0x20d, 0xffff, 0xc00048af0c, 0x10, 0x10, 0x0, 0x0, 0x0, 0x0, ...)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:135 +0xb8
      github.com/nextdns/nextdns/proxy.Proxy.serveUDP.func2(0xc0004337a0, 0x20d, 0xc000378120, 0xc000028030, 0x1, 0x1, 0x504dc0, 0xc00000a440, 0x500ca0, 0xc00000a540, ...)
              /home/runner/work/nextdns/nextdns/proxy/udp.go:79 +0xd4
      created by github.com/nextdns/nextdns/proxy.Proxy.serveUDP
              /home/runner/work/nextdns/nextdns/proxy/udp.go:75 +0x26c

      goroutine 105 [runnable]:
      github.com/nextdns/nextdns/internal/dnsmessage.(*Parser).resourceHeader(0xc000531980, 0x500000000000000, 0x2e00000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
              /home/runner/work/nextdns/nextdns/internal/dnsmessage/message.go:587 +0x20
      github.com/nextdns/nextdns/internal/dnsmessage.(*Parser).AdditionalHeader(...)
              /home/runner/work/nextdns/nextdns/internal/dnsmessage/message.go:805
      github.com/nextdns/nextdns/resolver/query.(*Query).parse(0xc000531b00, 0x10, 0x10)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:172 +0x2f0
      github.com/nextdns/nextdns/resolver/query.New(0xc0004cc000, 0x20d, 0xffff, 0xc00032048c, 0x10, 0x10, 0x0, 0x0, 0x0, 0x0, ...)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:135 +0xb8
      github.com/nextdns/nextdns/proxy.Proxy.serveUDP.func2(0xc00047a420, 0x20d, 0xc0004c0f30, 0xc000028030, 0x1, 0x1, 0x504dc0, 0xc00000a440, 0x500ca0, 0xc00000a540, ...)
              /home/runner/work/nextdns/nextdns/proxy/udp.go:79 +0xd4
      created by github.com/nextdns/nextdns/proxy.Proxy.serveUDP
              /home/runner/work/nextdns/nextdns/proxy/udp.go:75 +0x26c

      goroutine 501 [runnable]:
      github.com/nextdns/nextdns/internal/dnsmessage.(*Parser).resourceHeader(0xc000241980, 0x500000000000000, 0x2e00000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
              /home/runner/work/nextdns/nextdns/internal/dnsmessage/message.go:587 +0x20
      github.com/nextdns/nextdns/internal/dnsmessage.(*Parser).AdditionalHeader(...)
              /home/runner/work/nextdns/nextdns/internal/dnsmessage/message.go:805
      github.com/nextdns/nextdns/resolver/query.(*Query).parse(0xc000241b00, 0x10, 0x10)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:172 +0x2f0
      github.com/nextdns/nextdns/resolver/query.New(0xc00058c000, 0x20d, 0xffff, 0xc000320b4c, 0x10, 0x10, 0x0, 0x0, 0x0, 0x0, ...)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:135 +0xb8
      github.com/nextdns/nextdns/proxy.Proxy.serveUDP.func2(0xc0003ac9c0, 0x20d, 0xc00046bec0, 0xc000028030, 0x1, 0x1, 0x504dc0, 0xc00000a440, 0x500ca0, 0xc00000a540, ...)
              /home/runner/work/nextdns/nextdns/proxy/udp.go:79 +0xd4
      created by github.com/nextdns/nextdns/proxy.Proxy.serveUDP
              /home/runner/work/nextdns/nextdns/proxy/udp.go:75 +0x26c

      goroutine 198 [runnable]:
      github.com/nextdns/nextdns/internal/dnsmessage.(*Parser).resourceHeader(0xc0000ef980, 0x500000000000000, 0x2e00000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
              /home/runner/work/nextdns/nextdns/internal/dnsmessage/message.go:587 +0x20
      github.com/nextdns/nextdns/internal/dnsmessage.(*Parser).AdditionalHeader(...)
              /home/runner/work/nextdns/nextdns/internal/dnsmessage/message.go:805
      github.com/nextdns/nextdns/resolver/query.(*Query).parse(0xc0000efb00, 0x10, 0x10)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:172 +0x2f0
      github.com/nextdns/nextdns/resolver/query.New(0xc000520000, 0x20d, 0xffff, 0xc00048b0cc, 0x10, 0x10, 0x0, 0x0, 0x0, 0x0, ...)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:135 +0xb8
      github.com/nextdns/nextdns/proxy.Proxy.serveUDP.func2(0xc0003ac4a0, 0x20d, 0xc00031f620, 0xc000028030, 0x1, 0x1, 0x504dc0, 0xc00000a440, 0x500ca0, 0xc00000a540, ...)
              /home/runner/work/nextdns/nextdns/proxy/udp.go:79 +0xd4
      created by github.com/nextdns/nextdns/proxy.Proxy.serveUDP
              /home/runner/work/nextdns/nextdns/proxy/udp.go:75 +0x26c

      goroutine 313 [runnable]:
      github.com/nextdns/nextdns/internal/dnsmessage.(*Parser).resourceHeader(0xc000243980, 0x500000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
              /home/runner/work/nextdns/nextdns/internal/dnsmessage/message.go:587 +0x44
      github.com/nextdns/nextdns/internal/dnsmessage.(*Parser).AdditionalHeader(...)
              /home/runner/work/nextdns/nextdns/internal/dnsmessage/message.go:805
      github.com/nextdns/nextdns/resolver/query.(*Query).parse(0xc000243b00, 0x10, 0x10)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:172 +0x2f0
      github.com/nextdns/nextdns/resolver/query.New(0xc0004e2000, 0x20d, 0xffff, 0xc0002d32cc, 0x10, 0x10, 0x0, 0x0, 0x0, 0x0, ...)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:135 +0xb8
      github.com/nextdns/nextdns/proxy.Proxy.serveUDP.func2(0xc000353ea0, 0x20d, 0xc00016a900, 0xc000028030, 0x1, 0x1, 0x504dc0, 0xc00000a440, 0x500ca0, 0xc00000a540, ...)
              /home/runner/work/nextdns/nextdns/proxy/udp.go:79 +0xd4
      created by github.com/nextdns/nextdns/proxy.Proxy.serveUDP
              /home/runner/work/nextdns/nextdns/proxy/udp.go:75 +0x26c

      goroutine 638 [runnable]:
      github.com/nextdns/nextdns/internal/dnsmessage.(*Parser).resourceHeader(0xc000535980, 0x500000000000000, 0x2e00000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
              /home/runner/work/nextdns/nextdns/internal/dnsmessage/message.go:587 +0x20
      github.com/nextdns/nextdns/internal/dnsmessage.(*Parser).AdditionalHeader(...)
              /home/runner/work/nextdns/nextdns/internal/dnsmessage/message.go:805
      github.com/nextdns/nextdns/resolver/query.(*Query).parse(0xc000535b00, 0x10, 0x10)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:172 +0x2f0
      github.com/nextdns/nextdns/resolver/query.New(0xc0005bc000, 0x20d, 0xffff, 0xc0003b814c, 0x10, 0x10, 0x0, 0x0, 0x0, 0x0, ...)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:135 +0xb8
      github.com/nextdns/nextdns/proxy.Proxy.serveUDP.func2(0xc000178080, 0x20d, 0xc0006063c0, 0xc000028030, 0x1, 0x1, 0x504dc0, 0xc00000a440, 0x500ca0, 0xc00000a540, ...)
              /home/runner/work/nextdns/nextdns/proxy/udp.go:79 +0xd4
      created by github.com/nextdns/nextdns/proxy.Proxy.serveUDP
              /home/runner/work/nextdns/nextdns/proxy/udp.go:75 +0x26c

      goroutine 462 [runnable]:
      github.com/nextdns/nextdns/internal/dnsmessage.(*Parser).AdditionalHeader(...)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:172
      github.com/nextdns/nextdns/resolver/query.(*Query).parse(0xc0001f3b00, 0x10, 0x10)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:172 +0x2d0
      github.com/nextdns/nextdns/resolver/query.New(0xc000220000, 0x20d, 0xffff, 0xc0000a09cc, 0x10, 0x10, 0x0, 0x0, 0x0, 0x0, ...)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:135 +0xb8
      github.com/nextdns/nextdns/proxy.Proxy.serveUDP.func2(0xc000485720, 0x20d, 0xc00031f4a0, 0xc000028030, 0x1, 0x1, 0x504dc0, 0xc00000a440, 0x500ca0, 0xc00000a540, ...)
              /home/runner/work/nextdns/nextdns/proxy/udp.go:79 +0xd4
      created by github.com/nextdns/nextdns/proxy.Proxy.serveUDP
              /home/runner/work/nextdns/nextdns/proxy/udp.go:75 +0x26c

      goroutine 743 [runnable]:
      github.com/nextdns/nextdns/internal/dnsmessage.(*Parser).resourceHeader(0xc00023d980, 0x500000000000000, 0x2e00000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
              /home/runner/work/nextdns/nextdns/internal/dnsmessage/message.go:589 +0x2e8
      github.com/nextdns/nextdns/internal/dnsmessage.(*Parser).AdditionalHeader(...)
              /home/runner/work/nextdns/nextdns/internal/dnsmessage/message.go:805
      github.com/nextdns/nextdns/resolver/query.(*Query).parse(0xc00023db00, 0x10, 0x10)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:172 +0x2f0
      github.com/nextdns/nextdns/resolver/query.New(0xc000558000, 0x20d, 0xffff, 0xc0003b9a8c, 0x10, 0x10, 0x0, 0x0, 0x0, 0x0, ...)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:135 +0xb8
      github.com/nextdns/nextdns/proxy.Proxy.serveUDP.func2(0xc0004bd720, 0x20d, 0xc00016a120, 0xc000028030, 0x1, 0x1, 0x504dc0, 0xc00000a440, 0x500ca0, 0xc00000a540, ...)
              /home/runner/work/nextdns/nextdns/proxy/udp.go:79 +0xd4
      created by github.com/nextdns/nextdns/proxy.Proxy.serveUDP
              /home/runner/work/nextdns/nextdns/proxy/udp.go:75 +0x26c

      goroutine 563 [runnable]:
      github.com/nextdns/nextdns/internal/dnsmessage.(*Parser).resourceHeader(0xc0005d3980, 0x500000000000000, 0x2e00000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
              /home/runner/work/nextdns/nextdns/internal/dnsmessage/message.go:587 +0x20
      github.com/nextdns/nextdns/internal/dnsmessage.(*Parser).AdditionalHeader(...)
              /home/runner/work/nextdns/nextdns/internal/dnsmessage/message.go:805
      github.com/nextdns/nextdns/resolver/query.(*Query).parse(0xc0005d3b00, 0x10, 0x10)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:172 +0x2f0
      github.com/nextdns/nextdns/resolver/query.New(0xc000548000, 0x20d, 0xffff, 0xc00048a0cc, 0x10, 0x10, 0x0, 0x0, 0x0, 0x0, ...)
              /home/runner/work/nextdns/nextdns/resolver/query/query.go:135 +0xb8
      github.com/nextdns/nextdns/proxy.Proxy.serveUDP.func2(0xc0003f4620, 0x20d, 0xc000340990, 0xc000028030, 0x1, 0x1, 0x504dc0, 0xc00000a440, 0x500ca0, 0xc00000a540, ...)
              /home/runner/work/nextdns/nextdns/proxy/udp.go:79 +0xd4
      created by github.com/nextdns/nextdns/proxy.Proxy.serveUDP
              /home/runner/work/nextdns/nextdns/proxy/udp.go:75 +0x26c

    • olivier
    • 3 yrs ago
    • Reported - view

    Do you have discovery-dns option set?

      • Terje_Stromberg
      • 3 yrs ago
      • Reported - view

      Olivier Poitrey 

       

      what is discovery-dns option  and where is that setting in NEXT DNS app? If it is a NEXT DNS SETTING.

      • olivier
      • 3 yrs ago
      • Reported - view

      Terje Strømberg what is the output of "nextdns config"

      • green_camera
      • 3 yrs ago
      • Reported - view

      Olivier Poitrey I do yes

      • olivier
      • 3 yrs ago
      • Reported - view

      JP what is it set to?

      • green_camera
      • 3 yrs ago
      • Reported - view

      Olivier Poitrey it just simply says discovery-dns

      • green_camera
      • 3 yrs ago
      • Reported - view

      Olivier Poitrey any ideas?  also, how do you remove entries from the config file?

      • olivier
      • 3 yrs ago
      • Reported - view

      JP can you please show the output of "nextdns config"?

      • green_camera
      • 3 yrs ago
      • Reported - view

      Olivier Poitrey 

      forwarder geekpoint.local.=192.168.1.11
      report-client-info true
      listen localhost:53
      detect-captive-portals false
      config<redacted>
      log-queries false
      cache-max-age 0s
      use-hosts true
      timeout 5s
      setup-router true
      auto-activate true
      control /var/run/nextdns.sock
      max-ttl 5s
      discovery-dns
      hardened-privacy false
      bogus-priv true
      cache-size 10MB

       

      there are two entries i need to delete as they are not valid.  they were just tests i was trying originally when going through the nextdns documentation but i am not sure how to delete anything.

      • olivier
      • 3 yrs ago
      • Reported - view

      JP please try removing the forwarder.

      • green_camera
      • 3 yrs ago
      • Reported - view

      Olivier Poitrey how do I remove an entry?  
       

      and I’ve had that forwarder one a past USG and it was fine.  I have a domain so need local traffic on the domain to go to the domain controller first.

      • olivier
      • 3 yrs ago
      • Reported - view

      JP you will have to edit the config file. The file should be in /data/nextdns.conf

      • green_camera
      • 3 yrs ago
      • Reported - view

      Olivier Poitrey how do i edit the /data/nextdns.conf file directly?

      • olivier
      • 3 yrs ago
      • Reported - view

      JP with vi

      • green_camera
      • 3 yrs ago
      • Reported - view

      Olivier Poitrey ok when type vi /data/nextdns.conf there is nothing there

      • green_camera
      • 3 yrs ago
      • Reported - view

      Olivier Poitrey nvm i got it.  removed my forwarder.  testing now.

      • green_camera
      • 3 yrs ago
      • Reported - view

       Olivier Poitrey so with the forwarder removed, it's fine.  but why is that?  i've done the same forwarder before on a past Unifi Security Gateway and on my previous pfsense as well without issues.  Am I doing something wrong?

      • olivier
      • 3 yrs ago
      • Reported - view

      JP it’s probably a bug. Is 192.168.1.11 pointing back to your USG?

      • green_camera
      • 3 yrs ago
      • Reported - view

      Olivier Poitrey no it goes to my domain controller.

      I added it back to the config and seems to be fine now.  Not sure why.  It’s literally the same config as before.  But will monitor it in the next couple days.

      • green_camera
      • 3 yrs ago
      • Reported - view

      Olivier Poitrey issue came back a day later.  odd issue.

Content aside

  • 3 yrs agoLast active
  • 23Replies
  • 505Views
  • 2 Following