How do I ensure a request for one of my two domains pointing at my linode doesn't become the other domain in the user's browser?
I think this is a DNS problem, so I'll explain...
I have a linode and 2 domains (
second.com). I want them to both pointing at my single linode. If I visit
second.com, I want to see
second.com in my URL bar, NOT
But when I request
second.com, the browser requests
first.com instead. It's not a redirect (verified with wireshark).
I have configured the registrar for both domains to point at linode's nameservers, and made dns zones for each domain, according to linode's docs.
This has to be something wrong with my DNS configuration because it happens on many different (but not all) computers and mobile devices.
My DNS config is by the book:
These are my zones:
first.com master 2015-03-22 02:47:07 ACTIVE second.com master 2015-03-22 02:45:18 ACTIVE
The zones are identical except where it says the actual domain name, of course.
Here's the zone for
; first.com  $TTL 300 @ IN SOA ns1.linode.com. myemail.gmail.com. 2015032193 14400 14400 1209600 300 @ NS ns1.linode.com. @ NS ns2.linode.com. @ NS ns3.linode.com. @ NS ns4.linode.com. @ NS ns5.linode.com. @ A 188.8.131.52 www A 184.108.40.206 @ AAAA 2600:3c00::f03c:91ff:fe6e:392c www AAAA 2600:3c00::f03c:91ff:fe6e:392c
Here's the zone for
; second.com  $TTL 86400 @ IN SOA ns1.linode.com. myemail.gmail.com. 2015032191 14400 14400 1209600 86400 @ NS ns1.linode.com. @ NS ns2.linode.com. @ NS ns3.linode.com. @ NS ns4.linode.com. @ NS ns5.linode.com. @ A 220.127.116.11 www A 18.104.22.168 @ AAAA 2600:3c00::f03c:91ff:fe6e:392c www AAAA 2600:3c00::f03c:91ff:fe6e:392c
Strangely, "incognito mode" or "private browsing" in my browser(s) works properly (
second.com). Flushing the DNS cache didn't work.
For the record, I don't care what page gets served, and I've verified the host application is not forwarding or issuing a redirect (it happens even if I'm hosting with
ncat on my server).