Advanced·Troubleshoot the network
dig: Query DNS records
Syntax
dig hostExamples
dig example.comUsage and sandbox support
The teaching subset only returns A records; the real dig supports specifying DNS servers and record types.
Hands-on exercises
Related commands
ipQuery address and routingssView sockets and listening portspingCheck host connectivitynslookupQuery host addresscurlRequest URL or download contentwgetDownload filesshLog in to the remote machinescpCopy files via SSHhostQuery DNStracerouteProbing network routestracepathDetection path and MTUmtrContinuously observe routing and packet lossncTest connection or listening portsocatConnect data streams to socketstcpdumpCapture network packetsnmapDetect authorized host portethtoolQuery network interface informationnmcliManage NetworkManager connectionssftpTransfer files interactively through SSHssh-keygenGenerate SSH keyssh-copy-idInstall the SSH public keyopensslCheck TLS with certificate