Live data from Hacker News

Google DNS at 010.010.010.010

8.8.8.8

11–20 of 132 posts

Re: Google DNS at 010.010.010.010

#11
post #10

Octal 010 is 8. Dotted quads can apparently be in octal, so that’s just 8.8.8.8 . What are we looking at here that’s new?

"News" in Hacker News doesn't necessarily mean everything is new that comes up. Everyone might not know what you know, so sometimes it's interesting enough to end up on the front page.

Re: Google DNS at 010.010.010.010

#12
post #10

Octal 010 is 8. Dotted quads can apparently be in octal, so that’s just 8.8.8.8 . What are we looking at here that’s new?

"News" in Hacker News doesn't necessarily mean everything is new that comes up. Everyone might not know what you know, so sometimes it's interesting enough to end up on the front page.

Sounds like Reddit.

Re: Google DNS at 010.010.010.010

#13

I found this quite amusing as it seems as if Google is trying to impersonate Cloudflare's 1.1.1.1, whereas 010.010.010.010 is indeed the octal representation of 8.8.8.8. Credit: IPv4 addresses are silly, inet_aton(3) doubly so. https://www.netmeister.org/blog/inet_aton.html

Ever tried to google 192.168.1.1? Here at least it gives lots of bogosity (all in the name of keeping us safe from what we actually wanted to get to).

Re: Google DNS at 010.010.010.010

#14
It's also at 010.010.2056 or 0x8080808 or 01002004010. I made a little tool a while ago that iterates over all the options that I know of:

https://lucb1e.com/randomprojects/php/funnip.php?ip=8.8.8.8

The variant found by OP is apparently the very last option that my tool generates. These days, Firefox is a bit boring (okay, okay, I'll admit it's a good choice for security) and translates these at the first opportunity. Even hyperlinks are translated on hover in the 'status bar' (if we can still call it that). For mobile users, this is what it shows when you paste one of those addresses in Firefox: https://snipboard.io/kbLTso.jpg

Re: Google DNS at 010.010.010.010

#16
post #10

Octal 010 is 8. Dotted quads can apparently be in octal, so that’s just 8.8.8.8 . What are we looking at here that’s new?

Google's server handles the octal case if it's provided directly. Not sure if this is an explicit code path or if the server handles all IP forms.

Try this:

  curl -v -H "Host: 010.010.010.010" https://8.8.8.8
Trying to do the same with other websites doesn't seem to work.

Re: Google DNS at 010.010.010.010

#18
post #14

It's also at 010.010.2056 or 0x8080808 or 01002004010. I made a little tool a while ago that iterates over all the options that I know of: https://lucb1e.com/randomprojects/php/funnip.php?ip=8.8.8.8 The variant found by OP is apparently the very last option that my tool generates. These days, Firefox is a bit boring (okay, okay, I'll admit it's a good choice for security) and translates these at the first opportunity…

+1 for

    
This is such a useful and nice snippet I add to many of my PHP files. Open Source at its finest, literally "in place" :-)

Re: Google DNS at 010.010.010.010

#19
post #14

It's also at 010.010.2056 or 0x8080808 or 01002004010. I made a little tool a while ago that iterates over all the options that I know of: https://lucb1e.com/randomprojects/php/funnip.php?ip=8.8.8.8 The variant found by OP is apparently the very last option that my tool generates. These days, Firefox is a bit boring (okay, okay, I'll admit it's a good choice for security) and translates these at the first opportunity…

It's weird that this is just a side-effect of the way strtol works, but there's no way (that I can figure out) to get + or - involved.
Post reply on HN