setting up dns and custom domain for deployed pages

Hi Folks I deployed pages successfully and am able to access those pages using https://<my-pages>.pages.dev/ unfortunately i cant figure how to make sure both www.<myhostname>.com and <myhostname>.com point to that deployment. I am ablet to access www.<myhostname>.com by just adding a CNAME that points to my pages. now <myhostname>.com is still not working . i think i need to add A records. so how do i get the ip address that i need to add where the A records will point to ? thats not covered i nthe docs. The docs also don't mention anything about A records unfortunately they only talk about setting up CNAME records. so i have that working but now i need to also make sure the when someone access the root domain they can type <myhostname>.com and get the same result. Best regards
5 Replies
Cyb3r-Jak3
Cyb3r-Jak33mo ago
You need to add both domains under the Custom Domains section for your pages project
somoni
somoniOP3mo ago
oh !!! woow do i need to add a records ???
Cyb3r-Jak3
Cyb3r-Jak33mo ago
When you add custom domains it makes them automatically
somoni
somoniOP3mo ago
great that works thank you ! i added two custom domains www.mydomain.com and mydomain.com do i need both ? and it is possible to add *.mydomain.com or thats not needed
Cyb3r-Jak3
Cyb3r-Jak33mo ago
You can not do wildcard domains with pages
Want results from more Discord servers?
Add your server