Computers are often connects to each other, so called computer networks. Linux provides various commands for network configuration and trouble shooting.

Basic commands

CommandDescriptionRef
ipShow or manage network interface info
dig <Type> <URL/IP>Retrieve domain name info and DNS records
ping <URL/IP>Confirm network connectivity and reachabilityInternet Control Message Protocol (ICMP)

Querying DNS records (dig)

This command provides detailed information about DNS configurations. It can be used to retrieve various types of DNS records, such as A record, AAAA record, MX record and more. (more details on Computer Networks/Record types)

To retrieve an A record (map domain name to IPv4):

dig A example.com

This will show the IPv4 address associated with the domain name.


BashBash_scriptingINFO1112Bash_utilitiesNetwork_config_and_troubleshootingComputer_networksDNS_record