I am not the first one, but looked for hours, tested, and did not find the solution.
My netlify website is graphandco-next.netlify.app
My own domain is graphandco.com, hosted on 1&1/Ionos provider. I have a wordpress multisite on subdomain sites.graphandco.com, and other domains pointing to these sites. Everything works fine.
My goal is simply to point my main domain graphandco.com to my netlify site. I tried to change the server names in the my domain configuration, but it breaks all my wordpress sites. I tried to add a CNAMe record with www for the host and graphandco-next.netlify.app for the value. Not working either.
Did something change on netlify configuration ? I might be wrong but I remember putting an IP adress on a A or AAAA record, but I don’t see the IP adress of my netlify site, and found some answers saying that it has multiples adresses…
As you can see I am a litte bit lost, and not comfortable with these bloody DNS !!
Thanks in advance.
Currently, I see the www subdomain is pointing to graphandco-next.netlify.app which is correct. The apex graphandco.com is currently pointing to 22.214.171.124 instead of Netlify’s load balancer IP or hostname as outlined in this documentation.
The current configuration is leading to an infinite loop as the subdomain redirects to the apex and vice versa
Thanks for feeding back ! I actually see the loop you are talking about. I think changing server names is not the best option, as I have to manage several others domains linked to my wordpress installation.
I might also have irrelevant entries, as I tried different options and already configured this domain before. I thought that the CNAME would be enough, I have a subdomain pointing to another netlify site, the only entry is a CNAME configured like my apex, but obviously instead of www I put my sudomain alias. Makes me think I have conflictual entries…
Okay. I removed the AAA record. The piece I was missing is “what to put in this A record ?” I searched other topics, found 126.96.36.199 and tried with no big hope. And it worked !! Note sure if the configuration is very clean but everything looks fine.
Thank you for your precious help
Additionally, I see you have a inactive DNS Zone configured:
dig graphandco.com NS +trace | tail -n 6
graphandco.com. 86400 IN NS ns1092.ui-dns.com.
graphandco.com. 86400 IN NS ns1101.ui-dns.org.
graphandco.com. 86400 IN NS ns1037.ui-dns.biz.
graphandco.com. 86400 IN NS ns1024.ui-dns.de.
;; Received 163 bytes from 188.8.131.52#53(ns1037.ui-dns.biz) in 40 ms
The last line, ;; Received 163 bytes from 184.108.40.206#53(ns1037.ui-dns.biz) in 40 ms, shows the name server that answered this query last. Since it’s not a Netlify name server the DNS Zone is inactive.
To summarize, you’ll want to use 220.127.116.11 for the A Record for graphandco.com. For www.graphandco.com you’ll continue to use graphandco-next.netlify.app as @coelmay mentioned and you’ll want to fix the inactive DNS Zone.
When you are using the external DNS instructions, we strongly recommend making the www subdomain (www.graphandco.com) or some other subdomain primary. The only time we recommend ever making the apex domain primary is if Netlify DNS is being used (or a supported variation CNAME flattening is being used for the apex). Again, as you are using the IP address 18.104.22.168 for the apex, we recommend making www.graphandco.com the primary custom domain for this site.
Hi @loganpowell. The A record for the apex domain doesn’t use geographical routing. That IP address routes to a system physically in California in the USA. If you use the A record for the apex domain and then make that the primary domain for the site, it will route all traffic for your site to that one IP address.
In contrast, if you use the CNAME record pointing to the site subdomain under netlify.app geographical IP routing will be used. This means when the DNS request is made for the CNAME, it will return different IP addresses based where someone is in the world. This will route them to the closest CDN node and the site’s performance will be improved when this is done.