Live data from Hacker News

Google DNS at 010.010.010.010

8.8.8.8

31–40 of 132 posts

Re: Google DNS at 010.010.010.010

#31
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.

Edge (and I presume Chromium) interprets a https://010.010.010.010 URL as https://8.8.8.8

You can check it by hovering over the link

Re: Google DNS at 010.010.010.010

#32
post #26
post #25

For those interested in more memorable DNS IPs, there is the following: Just be careful, because TWNIC/Quad101 was subjected to a BGP hijack in 2019[0] 101.101.101.101 [TWNIC] 80.80.80.80 [FREENOM][1] 4.2.2.2 [Level 3] [0] https://www.manrs.org/2019/05/public-dns-in-taiwan-the-lates... [1] https://www.freenom.world/en/index.html?lang=en

Don't forget 1.1.1.1 and 1.0.0.1 (aka 1.1) [Cloudflare]

Yeah I left that out for a reason. Most geeks know about that. Also 9.9.9.9 is an obvious one. I wanted to point out lesser known/esoteric ones

Re: Google DNS at 010.010.010.010

#33
post #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" :-)

What does it do?

Re: Google DNS at 010.010.010.010

#36
post #33
post #18

Earlier quoted context omitted.

+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" :-)

What does it do?

If you provide the GET parameter "source" (which means you try /the-url?source"), it prints a pretty-printed version of the source code.

So basically it allows the reader to read the source directly without hunting it down on github of something.

Re: Google DNS at 010.010.010.010

#37
post #33
post #18

Earlier quoted context omitted.

+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" :-)

What does it do?

It prints the source off itself, when source is present as a query parameter:

https://lucb1e.com/randomprojects/php/funnip.php?source

Re: Google DNS at 010.010.010.010

#38
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.

Google’s server doesn’t handle that as a special case; it redirects any host other than dns.google to dns.google. These give the same result:

    curl -v -H "Host: 010.010.010.010" https://8.8.8.8
    curl -v -H "Host: 222.222.222.222" https://8.8.8.8
    curl -v -H "Host: example.com" https://8.8.8.8

Re: Google DNS at 010.010.010.010

#39
post #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" :-)

[deleted]
Post reply on HN