m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/network.md
blob: 392db868fdc62474e6fb2bc9da6c005b92dabe5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Basic networking operations

## Basic networking info

    ifconfig

## Find process binding a port

    # specifically tcp
    lsof -i tcp:8000
    # any protocol
    lsof -i :8000

## DNS

DNS lookup:

    drill <hostname> [record type]


So to lookup TXT records,

    drill host.com TXT

## Connecting to WIFI with iwctl

    iwctl
    device list

Ensure device and adapter are turned on:

    device <device> set-property Powered on
    adapter <adapter> set-property Powered on

Begin scan (no output), list networks, connect:

    station <device> scan
    station <device> get-networks
    station <device> connect SSID