bandwhich: rDNS might not work on latest macos

sudo bandwhich                                                            
Password:
Error: Could not initialize the DNS resolver. Are you offline?
bandwhich                                                                         
Error:

 lo0: No such file or directory (os error 2)
 en5: No such file or directory (os error 2)
 en0: No such file or directory (os error 2)
 awdl0: No such file or directory (os error 2)
 llw0: No such file or directory (os error 2)
 utun0: No such file or directory (os error 2)
 utun1: No such file or directory (os error 2)
 utun2: No such file or directory (os error 2)
 utun3: No such file or directory (os error 2)
uname -a                                                                                    
Darwin RMBP.local 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar  4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64
bandwhich -V                                                                     
bandwhich 0.13.0

Installed via homebrew

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 18 (10 by maintainers)

Commits related to this issue

Most upvoted comments

Hey, thanks for reporting this. That’s quite odd. Would you mind helping me out with a little bit of debugging to find the issue? (I don’t have access to a mac)

If you run bandwhich with the -n flag like this sudo bandwhich -n does it work? Do you see traffic? (This turns off the reverse DNS resolution, which is what’s failing here).

Same error here on Arch Linux, Could not initialize the DNS resolver, using systemd-resolved and googles DNS, 8.8.8.8, the -n flag works tho.

New version released. Starting from version 0.20.0, you can now use the --dns-server flag eg. bandwhich -d 1.1.1.1 to manually specify a DNS server as a workaround for this issue.