m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/network.md
blob: 12b4703c5640357c568cbfd818d07b93d0e8a5e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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