question

KeiMoon-3644 avatar image
0 Votes"
KeiMoon-3644 asked ryanchill commented

Application gateway with a custom domain name

I have checked this https://stackoverflow.com/questions/37752482/custom-domain-for-azure-application-gateway. I just want to know if it is still not supported to create an application gateway with a custom domain.

Is creating a CName is the only way?

azure-application-gateway
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered ryanchill commented

Hi @KeiMoon-3644,

You can add a public IP to your application gateway and then create an A record in your DNS registrar pointing to your IP address. See https://docs.microsoft.com/en-us/azure/virtual-machines/custom-domain.


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ryanchill, I'm having the same issue. I see the PIP of the Application Gateway is a dynamic one. How can we create an A record for a naked domain?

0 Votes 0 ·

I have two Qs for the same regards. Application Gateway has DNS name DNS name example (mytestlabapp.eastus.cloudapp.azure.com) where I can put CNAME record for my hosted applications..as this wouldn't change...?
Ex:
CNAME mytestlabapp.eastus.cloudapp.azure.com www.contoso.com
CNAME mytestlabapp.eastus.cloudapp.azure.com www.payroll.contoso.com
CNAME mytestlabapp.eastus.cloudapp.azure.com hrapp.contoso.com
...
...?

Question 2:
As there this will be the CNAME entry would be impact DNS TTL? (Should wait to reflect some hours)

Your swift answers much appreciated.

0 Votes 0 ·
ryanchill avatar image ryanchill RamakrishnanVenkataraman-5614 ·

Any CNAME record entries will take a sometime to propagate. A couple of hours is the norm with 24-48hrs being on the high end. Any longer than that should be investigated. I don't "see" anything wrong with your CNAME records but I do question why not just use wildcard record *.contoso.com?

0 Votes 0 ·