1

Report network latency issue

If you are experiencing some latency issue or non-ideal routing, please use our diagnostic tool to report it. The tool can run on your computer or router. It gathers and submit network measurements that will help us improve our network.

Please follow the instruction for your platform below:

MacOS, Linux, *BSD, Linux based routers

Open a terminal, run the following command and follow the instructions:

sh -c 'sh -c "$(curl -s https://nextdns.io/diag)"'

Windows

  1. Download and run this program.
  2. If you get a virus alert, you can disregard it, see note below.
  3. Follow the instructions

Note: windows virus scanners tend to flag this program as virus/trojan because it is contacting a lot of different IP. This is the nature of this program, and those warning can be safely ignored.

If you find bugs in the tool itself, please log an issues on the Github repository.

27replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • On Mac, I see this notice:

    ```

    ➜ ~ sh -c 'sh -c "$(curl -s https://nextdns.io/diag)"'

    zsh: no such file or directory: sh -c sh -c "$(curl -s https://nextdns.io/diag)

    ```

    Is there something specific that I must do to run this snippet?

    Like
    • arun can you please try to type it manually instead of copy paste? I suspect some non-ascii spaces are being used here.

      Like
    • arun Try this on Mac OS X...

      sudo /bin/sh -c "$(curl -s https://nextdns.io/diag)"

      This will prompt you to enter your sudo password. 

      Like
      • S M
      • S_M
      • 3 wk ago
      • Reported - view

      Olivier Poitrey 

      Somewhat off topic, but just to point out that I think the ‘copy’ button (which is a nice feature of the template you’re using) seems to introduce those problematic characters, at least on iOS. If I copy manually by selecting the characters on screen it works fine, but if I use the copy button to the right of the code block I get the same error as above. Not sure if the template is at fault or just the page. 

      Like
  • cant run on windows 10 64 bit

    Like
  • a bit strange, when i download this program, windows defender blocks it because it detects a virus / trojan ...

    Like
    • Alpha Beta windows virus scanners don't link it because it is contacting a lot of different IPs. You can safely execute it.

      Like 1
  • I tried running the tool, but this is what I got after I entered the sudo password.

    /tmp/nextdns-diag-1798: line 1: Not: command not found
    Like
    • Preshit which platform?

      Like
      • Preshit
      • Preshit
      • 4 wk ago
      • Reported - view

      Olivier Poitrey macOS Big Sur 11.1

      Like
    • Preshit no other error or warning before that? Did you try several times?

      Like
      • Preshit
      • Preshit
      • 4 wk ago
      • Reported - view

      Olivier Poitrey Yes, I've tried multiple times, even after your last reply. I keep getting the same error, with one change. The number in the /tmp/nextdns-diag-nnnn keeps changing on every try.

      Like
    • Preshit What do you get for uname -a

      Like
      • Preshit
      • Preshit
      • 4 wk ago
      • Reported - view

      Olivier Poitrey 

      Darwin redacted.local 20.2.0 Darwin Kernel Version 20.2.0: Wed Dec  2 20:40:21 PST 2020; root:xnu-7195.60.75~1/RELEASE_ARM64_T8101 arm64
      
      Like
    • Preshit that's a M1, it's not yet supported. You have to run the shell in Rosetta 2 mode.

      Like
      • Preshit
      • Preshit
      • 2 wk ago
      • Reported - view

      Olivier Poitrey Hi, I ran the test using an Intel Mac and while the test completed, it gave a bunch of errors within and towards the end.

      Fetching PoP name for primary IPv4 (45.90.28.0)
      Fetch error: Get "https://dns.nextdns.io/info": dial tcp 45.90.28.0:443: connect: operation timed out
      Fetching PoP name for secondary IPv4 (45.90.30.0)
        anexia-ams: 130.003ms
      Fetching PoP name for primary IPv6 (2a07:a8c0::)
      Fetch error: Get "https://dns.nextdns.io/info": dial tcp [2a07:a8c0::]:443: connect: operation timed out
      Fetching PoP name for secondary IPv6 (2a07:a8c1::)
        anexia-ams: 135.585ms
      

       

      and towards the end

      Post unsuccessful: status 400
      {"error":"0: instance requires property \"Primary\"\n"}%
      
      Like
      • Gaurav
      • iamtheanon
      • 8 days ago
      • Reported - view

      Olivier Poitrey Hi, any plans on adding native support for the official app (on the Appstore) and to the diag tool for M1 architecture. Currently, to enable system wide DNS I am using the CLI of NextDNS on my M1 Mac which seems to be working without a hitch! :)

      Like
  • Hi 
    When running the command sh -c 'sh -c "$(curl -s https://nextdns.io/diag)"' on an Edgeouter I see this message " environment: line 85: detect_endiannes: command not found "
    Looks like not complete...

    Fetching https://test.nextdns.io
    status: unconfigured

    See attached file...

    Steen

     

    Like
  • Hi  Olivier Poitrey  , this is an issue I have been facing for a long time now. I am connecting continuously to very far away servers thereby increasing ping by around 240 ms on average. 

    I have posted my diag results here: https://nextdns.io/diag/990f9f00-49b8-11eb-aaee-adbaa1733145

    Request you to please look into the same. 

    Like
  • Can you help me? I have been getting very high latency for a few days and therefore cannot access sites. 

    https://nextdns.io/diag/a4409560-491c-11eb-b38e-c1ae9e6f6c08

    Like
  • I am unable to post:

     

    Do you want to send this report? [Y/n]: y
    Optional email in case we need additional info: xxxxx
    Post unsuccessful: status 400
    {"error":"0: instance.Test requires property \"Client\"\n"}%
    yeri-macbookpro1 ~ $ uname -a
    Darwin yeri-macbookpro1.roam.corp.xxxx 20.2.0 Darwin Kernel Version 20.2.0: Wed Dec  2 20:39:59 PST 2020; root:xnu-7195.60.75~1/RELEASE_X86_64 x86_64

    Like
  • Experiencing high latency in India, seems to pick up far away servers due to bad routing? Logs of different ISPs are pasted below.

     

    Airtel 4G:

    https://nextdns.io/diag/9b05fb40-4cee-11eb-b1e7-537a0e39f0e9

    BSNL 3G:

    https://nextdns.io/diag/86309e40-4cef-11eb-b1e7-537a0e39f0e9

    Jio 4G

    https://nextdns.io/diag/679370b0-4cf0-11eb-b1e7-537a0e39f0e9

    Like
  • Yesterday, 2021/1/1 some of my amazon echoes (2/5) didn't connect due to excessive latency nextdns reply...spent many time to factory reset the echos before I figuring out the problem was your dns :( 

    today, some hops are missing

    https://nextdns.io/diag/4fec72f0-4d3a-11eb-b1e7-537a0e39f0e9

    Like