Setup Custom Domain

Configuring a custom domain for your Autostopping gateway

You can customize the domain name for your Autostopping gateway.

Make sure you add your custom domain to your gateway before configuring your custom domain with your DNS provider. Note: DNS changes can take up to 24 hours to propagate.

Configuring custom domain in lightwing

  • Edit the gateway that you would like to add a custom domain
  • Enter the custom domain in the Custom domain field
  • Domain name should be entered without prefixing the scheme (http/https)
  • Save the gateway

Custom domain

Configuring multiple URLs

A gateway can have multiple URLs. You can enter comma separated values into Custom domain field to support multiple URLs.

  • Eg: staging1.mycompany.com, staging2.mycompany.com. In this case, both will point to same gateway
  • Turning on Allow traffic from all subdomains will allow traffic coming from any subdomains. In this case, it is equivalent to *.staging1.mycompany.com

Configuring CNAME on DNS provider

Navigate to your DNS provider and create a CNAME record that points your subdomain to the lightwing generated URL.

For example, if you want to use the subdomain staging1.mycompany.com for your gateway, create a CNAME record that points staging1.mycompany.com to . For more information about how to create the correct record, see your DNS provider’s documentation.

To confirm that your DNS record configured correctly, use the dig command, replacing staging.mycompany.com with your subdomain.

$ dig staging.mycompany.com +nostats +nocomments +nocmd

;staging.mycompany.com.		IN	A
staging.mycompany.com.	4464	IN	CNAME	1-staging1.gateway.lightwing.io.
1-staging1.gateway.lightwing.io.	4464 IN	CNAME tunnel-lb-250504627.ap-southeast-1.elb.amazonaws.com.
tunnel-lb-250504627.ap-southeast-1.elb.amazonaws.com. 39 IN A 54.254.220.122
tunnel-lb-250504627.ap-southeast-1.elb.amazonaws.com. 39 IN A 52.76.135.36
tunnel-lb-250504627.ap-southeast-1.elb.amazonaws.com. 39 IN A 52.76.64.130