nike.com->nike.com/ca

At home, using 8.8.8.8, if I goto www.nike.com, I get rerouted to nike.com/ca. I cleared the dns cache (I’m running Catalina macos) and rebooted just because. Anyone else seen a weirdism on this? thanks

Becki in Detroit

Welcome to Why You Shouldn't Make Customer-Visible Decisions Based On
DNS Resolver Geolocation or DNS Load Balancing Sucks 101.

Nike.com is geolocating the server IP address which requests the web
site address. This isn't yours or 8.8.8.8 but instead some unicast IP
address to which your 8.8.8.8 packet was routed. Possibly in Canada.
Nike appears to think so.

Regards,
Bill Herrin

Though I'm probably talking out my tail since this is an HTTP redirect
which would know your originating IP address (unless you're knowingly
or unknowingly using a proxy).

-Bill

> > At home, using 8.8.8.8, if I goto www.nike.com, I get rerouted to nike.com/ca. I cleared the dns cache (I’m running Catalina macos) and rebooted just because. Anyone else seen a weirdism on this? thanks
>
> Welcome to Why You Shouldn't Make Customer-Visible Decisions Based On
> DNS Resolver Geolocation or DNS Load Balancing Sucks 101.
>
> Nike.com is geolocating the server IP address which requests the web
> site address. This isn't yours or 8.8.8.8 but instead some unicast IP
> address to which your 8.8.8.8 packet was routed. Possibly in Canada.
> Nike appears to think so.

Though I'm probably talking out my tail since this is an HTTP redirect

quite possible' :slight_smile: (you don't normally, but I think the HTTP thing is
the 'gotcha')

which would know your originating IP address (unless you're knowingly
or unknowingly using a proxy).

the flow here is PROBABLY:
  "some dns query which doesn't really matter" by client
"some http(s) connect to the server by the client (beki)"
"server looks up 'client address' in a 'database of geo ip mapping'
and says; "you are in CA(nada) so... 302 /ca pls!"

good times! :slight_smile:
(also, typical geo ip problems :frowning: bummer!)

quite possible' :slight_smile: (you don't normally, but I think the HTTP thing is
the 'gotcha')

Yeah, it got me. I realized it shortly after sending the email.

(also, typical geo ip problems :frowning: bummer!)

Yeah, likely still qualifies as Using GeoIP For Customer-Visible
Purposes Is Doomed To Failure. Though with web there could be a number
of alternate explanations. Stale or misinterpreted cookies. Browser
add-ons that proxy requests. Viruses or anti-virus programs that
intercept and proxy requests. The number of squirrelly things that
browsers and web sites do boggles the mind.

Regards,
Bill Herrin

Yet I could goto the site, via Ford's network (ssssh, shopping at home) and I'm in the same city as Ford.

Go fig

And they want to charge me more for the same running shoes and duty, since they think I'm in Canada. I mean, it's *right* there. I can kayak to Canada but don't buy running shoes :blush:

Hi Becki,

A couple basic things you could try: plug your public IP address into
Whois and see what comes back. Plug it into the Maxmind database and
see what comes back. Poke your ISP if either one says Canada.

Unless you are the Internet provider, I'd stop there, open a trouble
ticket with my ISP and let them worry about it. I'd be dripping with
sarcasm if I said that identifying the current physical location of an
IP address is an inexact science.

Regards,
Bill Herrin

What happens if you use your ISP’s resolvers, instead? Mark.

I fail to see how this is a NANOG issue. Go to the bottom left of the page and select the correct region.

At home, using 8.8.8.8, if I goto www.nike.com, I get rerouted to nike.com/ca. I cleared the dns cache (I’m running Catalina macos) and rebooted just because. Anyone else seen a weirdism on this? thanks

Becki in Detroit

When you send a DNS query to 8.8.8.8 it goes to the “nearest” resolver. Not nearest in terms of location since 8.8.8.8 is an anycast address and exists in many locations. It’s the BGP path to 8.8.8.8 that determines nearest. Next, the resolver does it’s thing and sends a query to the akamai DNS. That DNS is probably also an anycast address so again, how close is it? Akamai then tries to geo locate you but they have the IP of Google, not you. You get an IP and connect to that. Everything up till now probably doesn’t matter as it’s probably not the DNS that is causing what you see. The IP is not Nike but rather an akamai proxy. When you connect to akamai proxy, the proxy can see your IP and may do the Geo location lookup and pass what it thinks as your location to the content server. When it gets to the content server, it may use that Geo information but possibly not. It’s likely it’s not the content server but a load balancer. In either case, they may ignore any Geo lookup done by akamai and try to locate the incoming IP. Well, that’s actually the address of the akamai proxy. Hopefully the developers thought of this and had akamai pass your IP in a header and geo locate on that. It’s probably the content server that is sending an HTTP redirect to get you to the “/ca” location on the site.

So there can be as many as 4 different times you are being geo-located. Which on actually matters is difficult to tell. Assuming Nike did a good job, it’s probably the Akamai proxy going the geo-locate and the code on the content server is consuming that and redirecting you to the location specific part of the site.

* bdantzig@medline.com (Dantzig, Brian) [Thu 07 Jan 2021, 18:07 CET]:

When you send a DNS query to 8.8.8.8 it goes to the “nearest” resolver. Not nearest in terms of location since 8.8.8.8 is an anycast address and exists in many locations. It’s the BGP path to 8.8.8.8 that determines nearest. Next, the resolver does it’s thing and sends a query to the akamai DNS. That DNS is probably also an anycast address so again, how close is it? Akamai then tries to geo locate you but they have the IP of Google, not you. You get an IP and connect to that. Everything up till now probably doesn’t matter as it’s probably not the DNS that is causing what you see. The IP is not Nike but rather an akamai proxy. When you connect to akamai proxy, the proxy can see your IP and may do the Geo location lookup and pass what it thinks as your location to the content server. When it gets to the content server, it may use that Geo information but possibly not. It’s likely it’s not the content server but a load balancer. In either case, they may ignore any Geo lookup done by akamai and try to locate the incoming IP. Well, that’s actually the address of the akamai proxy. Hopefully the developers thought of this and had akamai pass your IP in a header and geo locate on that. It’s probably the content server that is sending an HTTP redirect to get you to the “/ca” location on the site.

I checked off list with Becki Kain and Akamai's geolocation is not placing her in Canada. I can't speculate as to what company Nike would be using for its decision to redirect to /ca on its website.

  -- Niels.