Hello,
I recently noticed an absurd issue with one of my websites and can’t get to the bottom of it:
Scenario:
We have 2 domains, for 2 distinct sites ( I will refer to them as xx.com and zz.it ),
- both domains are registered on the same registrar (register.it);
- both domains use the same Cloudflare account and the same nameservers;
- both domains are configured to be proxied by Cloudflare;
- both sites are hosted on the same nginx server along with other sites (same A and AAAA records for both);
- both domains are configured like this since more than 2 years with no changes to nameservers, the only change happened 4 months ago when we migrated both sites to a different server;
So if one site works fine the other should also, right? apparently not.
2 coworkers from Italy using 2 different ISPs (VeryMobile and NES Internet Solutions) couldn’t connect to our main site xx.com: error was about name resolution, chrome couldn’t find our domain, I asked them to try zz.it and it worked fine though.
Then I asked them to change their dns settings to use 1.1.1.1 as their dns server and it started working.
before changing dns I asked one of the coworkers to run a dig
on our xx.com domain:
dig xx.com
; <<>> DiG 9.10.6 <<>> xx.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31404
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;xx.com. IN A
;; ANSWER SECTION:
xx.com. 31 IN A 188.114.X.Y apparently cloudflare columbia?
xx.com. 31 IN A 188.114.Z.Y apparently cloudflare columbia?
;; AUTHORITY SECTION:
com. 80398 IN SOA e.gtld-servers.net.
com. 80398 IN SOA a.gtld-servers.net.
com. 80398 IN SOA k.gtld-servers.net.
com. 80398 IN SOA j.gtld-servers.net.
com. 80398 IN SOA b.gtld-servers.net.
com. 80398 IN SOA f.gtld-servers.net.
com. 80398 IN SOA h.gtld-servers.net.
com. 80398 IN SOA i.gtld-servers.net.
com. 80398 IN SOA g.gtld-servers.net.
com. 80398 IN SOA m.gtld-servers.net.
com. 80398 IN SOA d.gtld-servers.net.
com. 80398 IN SOA l.gtld-servers.net.
com. 80398 IN SOA c.gtld-servers.net.
;; ADDITIONAL SECTION:
......................
(more gltd server addresses)
......................
;; Query time: 236 msec
;; SERVER: 185.62.X.X#53(185.62.X.X)
;; WHEN: Mon Jan 26 12:39:56 CET 2022
;; MSG SIZE rcvd: 869
We need to fix this as I can't ask my customers to change their pc settings to be able to login to my website. :sweat_smile: