Become a MacRumors Supporter for $25/year with no ads, private forums, and more!

Namebench replacement?

Tomb01

macrumors 6502
Original poster
Jan 6, 2009
402
24
Colleyville, TX
there was a utility that analyzed dns performance called namebench. Sadly it is only 32 bit, so does not work on Catalina. Is anyone aware of something that replaces it? thanks in advance.
 

HDFan

Contributor
Jun 30, 2007
2,768
854
NAMEinator DNS Benchmark tool (namebench successor) https://github.com/mwiora/NAMEinator
Works from Terminal in Catalina.

Couldn't get it work.

Instructions say:

go get github.com/miekg/dns
cd ~/go/src/github.com/mwiora/NAMEinator/

After running the get command mwiora/NAMEinator directory doesn't exist. miekg/dns does.

go build works there, but no executable called NAMEinator is created.
 
Comment

bogdanw

macrumors 65816
Mar 10, 2009
1,050
545
The steps are:
1. install Go (macOS package installer from https://golang.org/doc/install)
2. go get github.com/mwiora/NAMEinator
3. go get github.com/miekg/dns
4. cd ~/go/src/github.com/mwiora/NAMEinator/
5. go build
6. ./NAMEinator
The folder structure
go.jpg

Results
NAMEinator.jpg
 
  • Like
Reactions: HDFan
Comment

bogdanw

macrumors 65816
Mar 10, 2009
1,050
545
That worked. Thanks!
If you got it working, here is an AppleScript that can be saved as an app to run NAMEinator without opening Terminal:
Code:
display dialog "Running NAMEinator, please wait" giving up after 5
set DNSResults to do shell script "cd ~/go/src/github.com/mwiora/NAMEinator/; ./NAMEinator"
display dialog DNSResults buttons {"Close"} default button 1
The first dialog window closes after 5 seconds, the execution continues in the background and then it displays results like this:
NAMEinatorApp.jpg
 
Comment

HDFan

Contributor
Jun 30, 2007
2,768
854
Comment

nmeed

macrumors 6502
Dec 1, 2014
458
134
Has anyone found a program with a GUI that’s just a simple install?
 
Comment

bogdanw

macrumors 65816
Mar 10, 2009
1,050
545
There might be a way of running 1.3.1 with a GUI. The Python version of NAMEinator can be run in Catalina like this
Code:
git clone --single-branch --branch namebench_python_1.3.1_freeze https://github.com/mwiora/NAMEinator
cd NAMEinator
./namebench.py
I don't quite understand what beeuhtricks has done:" I managed to get a gui by commenting out the mac platform checks and hardcoding the launch, by the way."
https://github.com/mwiora/NAMEinator/issues/11
 
Comment

casperes1996

macrumors 603
Jan 26, 2014
5,905
3,776
Horsens, Denmark
There might be a way of running 1.3.1 with a GUI. The Python version of NAMEinator can be run in Catalina like this
Code:
git clone --single-branch --branch namebench_python_1.3.1_freeze https://github.com/mwiora/NAMEinator
cd NAMEinator
./namebench.py
I don't quite understand what beeuhtricks has done:" I managed to get a gui by commenting out the mac platform checks and hardcoding the launch, by the way."
https://github.com/mwiora/NAMEinator/issues/11

As per the request of bogdanw, I had a look at this - The Python version of Namebench can be made to work with a GUI on later releases of macOS. I cloned the GitHub repo, and opened the Xcode project from the cocoa folder (You must be on the Python branch, I have not looked at the Go branch).
Set all compiler flags and build targets to a more recent version of macOS; I set it all to 10.13, but you can choose for yourself. This is setting a minimum build target, and anything relatively recent should work on all new releases.
Open the .xib file, and select the window it shows and set its build target to be the same as you set for the project. Build the app. If you get no errors, yay. The app likely still won't open though; It didn't for me at least. For me the app bundle wasn't quite good enough at packaging together what it needed. - Open the products pane in Xcode, and reveal the .app bundle in the Finder. Place it somewhere nice. Open up the package and go to its Resources, and just chug in all the stuff from the Namebench folder.
Now it should open.

If all of that sounds like a bloody hassle; I can send to you a "finished" .app. But I make no guarantees about it. I have performed no testing, I have no extensive knowledge of Namebench - I just quickly looked at it, and got the GUI up for it - Namebench is not my code, I just messed with it to get the GUI up.

And yes, it works in Catalina :)
 
  • Like
Reactions: nmeed and bogdanw
Comment

nmeed

macrumors 6502
Dec 1, 2014
458
134
As per the request of bogdanw, I had a look at this - The Python version of Namebench can be made to work with a GUI on later releases of macOS. I cloned the GitHub repo, and opened the Xcode project from the cocoa folder (You must be on the Python branch, I have not looked at the Go branch).
Set all compiler flags and build targets to a more recent version of macOS; I set it all to 10.13, but you can choose for yourself. This is setting a minimum build target, and anything relatively recent should work on all new releases.
Open the .xib file, and select the window it shows and set its build target to be the same as you set for the project. Build the app. If you get no errors, yay. The app likely still won't open though; It didn't for me at least. For me the app bundle wasn't quite good enough at packaging together what it needed. - Open the products pane in Xcode, and reveal the .app bundle in the Finder. Place it somewhere nice. Open up the package and go to its Resources, and just chug in all the stuff from the Namebench folder.
Now it should open.

If all of that sounds like a bloody hassle; I can send to you a "finished" .app. But I make no guarantees about it. I have performed no testing, I have no extensive knowledge of Namebench - I just quickly looked at it, and got the GUI up for it - Namebench is not my code, I just messed with it to get the GUI up.

And yes, it works in Catalina :)

if you could send me it that would be great! Thank you!
 
Comment

bogdanw

macrumors 65816
Mar 10, 2009
1,050
545
casperes1996 was kind to test and confirm that it’s working, but let’s not get him in trouble with Apple :) The app can not respect the requirements for Catalina (notarization and so on) and might end up being flagged as suspect.

Having tested the GUI app, my impression is that is not that great. It just says: “8.8.8.8 is the fastest”, without any details. If you are interested in the real speed, the command line version is better.

On a related topic, I’ve posted scripts for using DNS over HTTPS here
https://github.com/b0gdanw/cloudflared-macos
https://github.com/b0gdanw/dnscrypt-proxy-macos
and DNS over TLS can be easily set up with Stubby GUI for macOS https://dnsprivacy.org/wiki/display/DP/Stubby+GUI+for+macOS
 
Comment

casperes1996

macrumors 603
Jan 26, 2014
5,905
3,776
Horsens, Denmark
if you could send me it that would be great! Thank you!

You can get it from my server here
Namebench.zip

casperes1996 was kind to test and confirm that it’s working, but let’s not get him in trouble with Apple :) The app can not respect the requirements for Catalina (notarization and so on) and might end up being flagged as suspect.

Having tested the GUI app, my impression is that is not that great. It just says: “8.8.8.8 is the fastest”, without any details. If you are interested in the real speed, the command line version is better.

On a related topic, I’ve posted scripts for using DNS over HTTPS here
https://github.com/b0gdanw/cloudflared-macos
https://github.com/b0gdanw/dnscrypt-proxy-macos
and DNS over TLS can be easily set up with Stubby GUI for macOS https://dnsprivacy.org/wiki/display/DP/Stubby+GUI+for+macOS

No need to worry. No trouble with Apple. This is all above board. If one had an Apple developer license I also foresee no issues getting it notarised. Of course it isn't, but as you showed yourself you can still run it. While defaults air on the side of caution the user is still in control on macOS, and Apple has no interest in limiting these sorts of things as far as I can tell.
 
Comment

Jassbag

macrumors newbie
Dec 27, 2017
19
5
Athens
You can get it from my server here
Namebench.zip

Thank you so much @casperes1996 ! Really appreciate this

Having tested the GUI app, my impression is that is not that great. It just says: “8.8.8.8 is the fastest”, without any details. If you are interested in the real speed, the command line version is better.

It's the same as the original namebench. It creates a .csv & .html files with detailed results. The difference is that in this "recompiled" version the html file doesn't open automatically after finishing.

You can find the generated .html file here:

private/var/folders/<two_random_characaters>/<many_random_characters>/T/namebench-<date>.html
 
Comment

casperes1996

macrumors 603
Jan 26, 2014
5,905
3,776
Horsens, Denmark
Thank you so much @casperes1996 ! Really appreciate this



It's the same as the original namebench. It creates a .csv & .html files with detailed results. The difference is that in this "recompiled" version the html file doesn't open automatically after finishing.

You can find the generated .html file here:

private/var/folders/<two_random_characaters>/<many_random_characters>/T/namebench-<date>.html

You're very welcome :) - A long time since I did this now, but I think the bundle is still on my server in case anyone's reading this, but it won't necessarily stay there forever :)


Oh and in terms of opening the file automatically; I only had a slight glance at the main Python code, and primarily looked at the macOS specific GUI parts, but the source files I think I left inside the app bundle to not breach the license for the software while distributing it so informally, so you can probably fairly easily adapt it to open the file
 
Comment
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.