Command

Posted on

DNS

nslookup -type=A google.com 1.1.1.1
host google.com 1.1.1.1
dig google.com

Generate a test certificate for localhost

openssl req -x509 -sha256 -nodes -addext "subjectAltName = DNS:localhost" -newkey rsa:2048 -days 365 -keyout localhost.key -out localhost.crt