DNS🔖
Resolve domain names, IPv4 and IPv6 addresses, DNS records, and services.
systemd-resolve --status
Show open ports and their processes
netstat -tulpen
Ubuntu/Debian resolv.conf🔖
Add permanent DNS nameservers by extending resolv.conf.
The resolv.conf file will be overwritten on each boot so you cannnot edit it directly.
Instead, edit one of the two files that is used to create the resolv.conf file, the head or base file.
If you want your additional entries to be written to the top of the resolv.conf file, edit the head file.
sudo vim /etc/resolvconf/resolv.conf.d/head
wlan🔖
Get the name of the wlan you're connected to.
iwgetid -r
Ports🔖
Find listening ports on local machine
lsof -i -P -n | grep LISTEN
| Argument | Description |
|---|---|
| -i | select IPv[46] files |
| -P | no port names |
| -n | no host names |