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 regards5 Replies
You need to add both domains under the Custom Domains section for your pages project
oh !!! woow
do i need to add a records ???
When you add custom domains it makes them automatically
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 neededYou can not do wildcard domains with pages