Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not seem to work with zsh running on OSX #2

Closed
nodesocket opened this issue Apr 2, 2018 · 13 comments
Closed

Does not seem to work with zsh running on OSX #2

nodesocket opened this issue Apr 2, 2018 · 13 comments

Comments

@nodesocket
Copy link

iMac ➜  Desktop ./dnstest.sh
               test1   test2   test3   test4   test5   test6   test7   test8   test9   test10  Average
cloudflare      ms     expr: syntax error
@nodesocket nodesocket changed the title Does not seem to work on zsh running on OSX Does not seem to work with zsh running on OSX Apr 2, 2018
@cleanbrowsing
Copy link
Owner

Try to run it as:

sh ./dnstest.sh

To force the "sh" shell instead of zsh. It seems to be missing the expr command on zsh.

@dgirgenti
Copy link

it's not the expr that's failing, it's the dig.

Trying to dig www.google.com @1.1.1.1 results in:

; <<>> DiG 9.8.3-P1 <<>> www.google.com @1.1.1.1
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached

I believe in my case this may be due to my company's firewall blocking external DNS, but I've not verified this yet

@dgirgenti
Copy link

Yeah I just verified that my company is blocking external DNS traffic (and the same command works when I hard-code my local DNS), I'll try the tool out when I get home and verify that it works on zsh

@nodesocket
Copy link
Author

@dgirgenti the dig command is working fine. I believe it is the expr command on zsh.

@dgirgenti
Copy link

so dig www.google.com @1.1.1.1 works fine for you? for me the expr works fine when given a valid result from dig which is failing for me

@JohnKacz
Copy link

JohnKacz commented Apr 2, 2018

Yea I'm seeing the same issue as @dgirgenti

$ dig google.com @1.1.1.1
; <<>> DiG 9.8.3-P1 <<>> google.com @1.1.1.1
;; global options: +cmd
;; connection timed out; no servers could be reached

@nodesocket
Copy link
Author

nodesocket commented Apr 2, 2018

Stange this works on my MacBook Pro running zsh, but not on my iMac running zsh.

What version of dig are you running? On my MacBook Pro I am running:

MacBook-Pro ➜  ~ dig -v
DiG 9.10.6

@dgirgenti
Copy link

I'm on macOS 10.12.6 and dig is 9.8.3-P1. Are either of those machines on high sierra?

@nodesocket
Copy link
Author

I think I figured out the issue, it seems my home ISP (AT&T fiber) is blocking the dig request for some strange reason even though I am using 1.1.1.1 successfully at home.

From my office:

MacBook-Pro ➜  ~ dig google.com @1.1.1.1

; <<>> DiG 9.10.6 <<>> google.com @1.1.1.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50804
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1536
;; QUESTION SECTION:
;google.com.			IN	A

;; ANSWER SECTION:
google.com.		39	IN	A	172.217.0.78

;; Query time: 4 msec
;; SERVER: 1.1.1.1#53(1.1.1.1)
;; WHEN: Mon Apr 02 14:39:35 CDT 2018
;; MSG SIZE  rcvd: 55

VPNing into my home:

MacBook-Pro ➜  ~ dig google.com @1.1.1.1

; <<>> DiG 9.10.6 <<>> google.com @1.1.1.1
;; global options: +cmd
;; connection timed out; no servers could be reached

@GreenZapdos
Copy link

Looks like some ISPs are having problems with 1.1.1.1. You can change that line in the script to 1.0.0.1 (the alternate ip for Cloudflare) and it may work.

@cleanbrowsing
Copy link
Owner

Yes, 1.1.1.1 is not accessible from a bunch of locations due to mis-configured ISPs and routers.

Unfortunately, many people can't use it right now.

@kriskhaira
Copy link

Works fine for me on macOS 10.13.4 and zsh 5.3.

@mrdatawolf
Copy link

Works correctly for me on macOs 10.13.3 and zsh 5.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants