Google Cloud DNS provides basic domain forwarding, but it lacks critical features like HTTPS and analytics.
When you set up a redirect with Google Cloud DNS, you’re responsible for managing SSL certificates. Without proper SSL, visitors will encounter errors when accessing your site via HTTPS.
So, how do you secure your site with HTTPS using Google Cloud DNS?
That’s where RedirHub comes in. We handle SSL certificate installation and renewal automatically, keeping your site secure without any hassle. Plus, redirecting your apex domain to the www version (or vice versa) is straightforward.
Here’s how to set it up:
Step 1: Create a RedirHub account
Start by creating an account: RedirHub Registration.
Step 2: Add your domain to RedirHub
Add the domain you want to redirect. For this example, we’ll use ‘redirhub-forward.xyz’ registered with Google Cloud DNS. Enter this domain in the ‘Source URL’ field. It’s best to add both the www and apex (non-www) versions.
[Image]
Step 3: Navigate to Google Cloud DNS
To set up redirects through RedirHub, a one-time DNS change at Google Cloud DNS is needed. Log in with your Google Cloud credentials, navigate to ‘Cloud DNS’, and click on your domain.
[Image]
Step 4: Changing the DNS
Now, update the DNS settings. You’ll likely see a screen that looks like this:
[Image]
Before adding the new DNS records, make sure any existing A, AAAA, or CNAME records for ‘www’ and ‘@’ are removed. Other records can stay.
Add these records:
- Record with Type ‘A’, Name ‘@’, and Value ‘89.106.200.1’
- Record with Type ‘CNAME’, Name ‘www’, and Value ‘edge.redirhub.com’
Your screen should now look like this:
[Image]
Step 5: DNS verification in RedirHub
The DNS changes are made! It might take a few hours for these changes to propagate, depending on the TTL settings.
RedirHub will automatically verify the DNS records. Once confirmed, an SSL certificate will be requested and installed.
[Image]
Closing: RedirHub is now set up with automatic HTTPS!
You’re all set! You’ve successfully configured RedirHub with Google Cloud DNS. Your domain now has full HTTPS support and redirects through RedirHub. With our Automatic HTTPS feature, all your URLs will securely redirect to the HTTPS version of your site. Plus, your SSL certificates will be automatically renewed, ensuring continuous security.
Optional: Redirect all pages to the apex or www version of your website
After setting up RedirHub, think about optimizing your redirects. You can redirect all pages from your apex domain (naked or root domain) to the www version, or vice versa. For more details, check our support page.
If you love our service, consider subscribing to one of our paid plans to support us!