Comment on Help making sense of IPs and A records
Rivalarrival@lemmy.today 2 days ago
An A record maps to an IP address. A CNAME record maps to another URL. Since you are trying to map to an IP address rather than a URL, you will want an A record.
If all of your sites will be served from the same proxy server at 204.230.30.104, you can create a single, wildcard A record for *.newexample.com. This will point every subdomain to your proxy’s IP address. You don’t need to create an A record for each subdomain.
If you are planning on serving some subdomains from 204.230.30.104 and other subdomains from another proxy at 69.4.20.187, you would need A records for pointing the subdomains toward their respective proxies.
Maroon@lemmy.world 2 days ago
Thanks for the reply. That makes sense. I now understand how to point the domains / subdomains using “A” record.
Could you please also clarify which IP I need to open ports 80 and 443 to, in the router? Or does the IP in the router actually refer to the internal IP device addresses? (Like 142.168.0.6, etc)?
Rivalarrival@lemmy.today 2 days ago
It depends on how you want to do it; how your reverse proxy server is setup. I use Pangolin running on a VPS as my proxy server. It uses a tunnel (“Newt”) between web servers running on my home network and the VPS, so I don’t need any open/forwarded ports on my home router.