Pointing a domain to your VM with A and AAAA records
Create an A record for the VM’s public IPv4 address and an AAAA record for its IPv6 address. Use the hostname portion required by your DNS provider: commonly @ for the zone apex or a label such as www.
- Make the web service listen on the intended address and port.
- Permit the port in the guest firewall.
- Test the VM directly by address.
- Publish DNS with a short TTL during initial validation.
- Check the authoritative answer, then test from an unrelated network.
dig +short A host.example.com
dig +short AAAA host.example.com
DNS maps names to addresses; it does not install TLS, open a firewall, or configure a web server.