Computers are often connects to each other, so called computer networks. Linux provides various commands for network configuration and trouble shooting.
Basic commands
Command | Description | Ref |
---|---|---|
ip | Show or manage network interface info | |
dig <Type> <URL/IP> | Retrieve domain name info and DNS records | |
ping <URL/IP> | Confirm network connectivity and reachability | Internet 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.
Bash Bash_scripting INFO1112 Bash_utilities Network_config_and_troubleshooting Computer_networks DNS_record