The Network CLI Tool is a command-line tool that allows you to query various DNS records (such as Name Servers, IP addresses, CNAMEs, and MX records) for a particular host.
The CLI tool provides the following commands:
ns
: Looks up the Name Servers for a particular host.ip
: Looks up the IP addresses for a particular host.cn
: Looks up the CNAME for a particular host.mx
: Looks up the MX records for a particular host.help
,h
Shows a list of commands or help for one command
To use the CLI tool, follow the steps below:
- Clone the repository:
git clone https://github.com/lucasgrvarela/network-cli-tool.git
- Change into the project directory:
cd network-cli-tool
- Build the executable:
go build -o cli
- Run the CLI tool with the desired command:
./cli [COMMAND] --host [HOSTNAME]
Replace [COMMAND] with one of the available commands (ns, ip, cn, or mx) and [HOSTNAME] with the target hostname.
For example, to lookup the IP addresses for a host, use the following command:
./cli ip --host example.com
93.184.216.34
2606:2800:220:1:248:1893:25c8:1946
Contributions to this project are welcome! If you have any suggestions, bug reports, or want to add new features, feel free to open an issue or submit a pull request.