Netchk
Simple tool to troubleshoot internet connectivity issues. This tool verifies:
- your computer has at least one IP address
- you have at least one DNS configured
- you can reach the configured nameservers
- the nameservers can resolve hosts
Finally, some ICMP ping statistics are presented with average durations and error rates.
Installation
gem install netchk
Usage
Just run netchk
from your terminal and basic diagnosis will start showing you progress and
any error if present.
Note: On Linux system, this gem requires sudo
to perform the ICMP ping operations. On macOS, this is not needed.
You also can configure how netchk verifies your connections by configuring a ~/.netchk.yaml
or ~/.netchk.yml
file
like below.
dns:
resolv.conf: /etc/resolv.conf
resolv:
resolv.conf: /etc/resolv.conf
domains:
- google.com
- youtube.com
- facebook.com
icmp:
hosts:
- 1.1.1.1
- 8.8.8.8
count: 20
interval: 0.2
Each value is optional. If one is missing the default value will be used. The file above shows the default values.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/moray95/netchk.