😀
Notes
  • My Notes
  • Software Development
    • Getting Started
    • VSCodium
    • Go
  • System Administration
    • Networking cheatsheet
    • Infra security check tools
    • Using Ubuntu as a workstation
  • Application Infrastructure
    • Message Brokers
      • Kafka
      • NATS
    • Databases
      • MongoDB
      • MySQL
      • PostgreSQL
      • Redis
    • Kubernetes
      • Standard resources cheatsheet
      • Istio
      • Prometheus
    • Workflow Orchestrators
      • Airflow
  • Cloud Infrastructure
    • Terraform
      • AWS
        • Kubernetes IAM roles
  • Climbing
    • Overview of Climbing
    • Singapore
  • Crypto
    • Introduction to Crypto
    • Web3 terminology
  • Guides
    • Beginner's Guide to Personal Operational Security
Powered by GitBook
On this page
  • Get DNS records
  • Setup HTTP server with netcat
  • Verifying port connectivity
  1. System Administration

Networking cheatsheet

Get DNS records

Using default DNS resolvers:

nslookup google.com

Using Cloudflare (1.1.1.1) DNS resolver:

nslookup google.com 1.1.1.1

Setup HTTP server with netcat

Run the following to start a HTTP responder on port 5555:

while :; do echo -e "HTTP/1.1 200 OK\nContent-Length: 3\n\n ok" | nc -l -p 5555; done

To verify TCP connectivity, run the above and then:

curl localhost:5555
# or
wget -qO - localhost:5555

Verifying port connectivity

To verify that port 443 is open on google.com, use:

nc -zv google.com 443

Generic structure of command:

nc -zv ${HOSTNAME} ${PORT}

PreviousGoNextInfra security check tools

Last updated 10 months ago