DNS and SSL Documentation

DNS maps domains to the VPS IP. SSL secures browser traffic.

DNS A Records

vaishaktech.com  A  5.39.37.7
vaishaklabs.com  A  5.39.37.7
vpnetwork.io     A  5.39.37.7
myfirewall.in    A  5.39.37.7

How Many Domains Share One IP

All domains resolve to the same server. The browser sends the requested hostname in the HTTP Host header. Nginx or Kubernetes Ingress reads that header and routes the request to the correct application.

CNAME Records

www.vaishaktech.com  CNAME  vaishaktech.com
docs.vaishaktech.com CNAME vaishaktech.com

Current SSL State

Because there is no domain yet, HTTPS uses a self-signed certificate for the public IP. This encrypts traffic but browsers will warn because it is not trusted by a public Certificate Authority.

Let's Encrypt Flow

1. Buy domain
2. Create DNS A record to 5.39.37.7
3. Run Certbot
4. Let's Encrypt validates domain ownership
5. Certificate is installed in Nginx
6. Browser shows trusted HTTPS

Command

/opt/cloud-platform/scripts/issue-ssl-certificates.sh