macOS also comes with a terminal service window, much like Unix or Microsoft Windows Command Prompt.
Here’s how to use the ping utility in macOS from the command line:
1) Press Command button and Space Button to launch Spotlight.
2) Key in "Terminal" and open it.
3) After you have opened the Terminal you may just perform a ping for the domain that you wish for.
Example:
ping exabytes.com.my
4) Press Control and Z button to stop the ping.