I am unable to find the proper setup of DNS records with URL Redirect service for a basic web server where:
- Any URL with
www.Example.com
should go to server with IPv4 address192.0.2.4
- Any URL for
example.com
orExample.com
should be replaced with a URL ofwww.Example.com
.- I do not really understand forwarding versus redirecting. What I want is to transform any "example.com" request to a "www.Example.com" request (always using the 'www', and not respecting the naked 'example.com').
- No other services rendered on this server except the web server (and
ping
etc.). So no concern about email servers, FTP servers, etc. - Sites will be accessed over HTTPS, hence with certificates.
Should it be:
- Type: A Record
- Host: @
- Value: 192.0.2.4
- TTL: Automatic
- Type: CNAME Record
- Host: www
- Value: example.com
- TTL: Automatic
- Type: URL Redirect Record
- Host: @
- Value:
http://www.Example.com/
Unmasked