Live data from Hacker News

Google DNS at 010.010.010.010

8.8.8.8

71–80 of 132 posts

Re: Google DNS at 010.010.010.010

#71
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…

This program, "ip4dec", converts lists of IPv4 addresses to decimal. Wrote this while experimenting with storing domain->ip mappings in a trie, such as https://github.com/tlwg/libdatrie

Name borrowed from https://github.com/ian-hamlin/ipdec

Note the trietool "list" command prints data as %d not %u. To fix, edit list_enum_func() in trietool.c

   sed -n 's/   //;wip4dec.l' {xc} jmp 0;
   {xa}|{xb} {
    switch(o){
     case 0: y=atoi(yytext);if(y255)break;x=x+y*65536;y=0;o++;break;
     case 2: y=atoi(yytext);if(y>255)break;x=x+y*256;y=0;o++;break;
     case 3: y=atoi(yytext);if(y>255)break;x=x+y;printf("%s\t%u\n",getenv("x"),x);unsetenv("x");break;
     default: break;
     }
    }
   .|\n
   %%
   int main(){ yylex();exit(0) ;}

   eof

   flex -8iCrf ip4dec.l
   cc  -std=c89 -Wall -pedantic -I. -pipe lex.yy.c -static -o ip4dec
usage: ip4dec example:

   echo example.com 93.184.216.34 icann|ip4dec
output:

   example.com 1572395042

Re: Google DNS at 010.010.010.010

#72
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…

[deleted]

Re: Google DNS at 010.010.010.010

#73
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…

[deleted]

Re: Google DNS at 010.010.010.010

#74
post #54

This is the first time I've seen a certificate issued to an IP address. Cloudflare does the same thing for 1.1.1.1. X509v3 Subject Alternative Name: DNS:dns.google, DNS:dns.google.com, DNS:*.dns.google.com, DNS:8888.google, DNS:dns64.dns.google, IP Address:8.8.8.8, IP Address:8.8.4.4, IP Address:2001:4860:4860:0:0:0:0:8888, IP Address:2001:4860:4860:0:0:0:0:8844, IP Address:2001:4860:4860:0:0:0:0:6464, IP Address:200…

You can use this for any purpose. These certificates conform to PKIX and are part of the Web PKI if they're issued (as this was) by a trusted CA. In some ways the actual rules for IP addresses are less strict than for DNS names. Perhaps this will get tightened up. Google Trust Services (the part of Google which issues certificates, as distinct from say, Chrome, which on behalf of Relying Parties has to decide if the…

Awesome info, thank you!

Re: Google DNS at 010.010.010.010

#75
post #36
post #33

Earlier quoted context omitted.

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.

Doesn’t this just highlight that php development ecosystem doesn’t value quality much? What even is a “file” in context of a web request? What about dependencies or logic defined in other files?

This is just bizarre, I can’t see a sane codebase where this would be preferable to going on GitHub and pressing “.”

Re: Google DNS at 010.010.010.010

#76
post #32
post #26

Earlier quoted context omitted.

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

In China 114.114.114.114 / 114.114.115.115 or 223.5.5.5 / 223.6.6.6 is used.

Re: Google DNS at 010.010.010.010

#77
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…

This program, "ip4dec", converts lists of IPv4 addresses to decimal and prints them as unsigned integers. Wrote this while experimenting with storing domain->ip mappings in a trie, such as https://github.com/tlwg/libdatrie

Name borrowed from https://github.com/ian-hamlin/ipdec

Note the trietool "list" command prints data as decimal not unsigned integer.

   sed -n 's/   //;wip4dec.l' {xc} jmp 0;
   {xa}|{xb} {
    switch(o){
     case 0: y=atoi(yytext);if(y255)break;x=x+y*65536;y=0;o++;break;
     case 2: y=atoi(yytext);if(y>255)break;x=x+y*256;y=0;o++;break;
     case 3: y=atoi(yytext);if(y>255)break;x=x+y;printf("%s\t%u\n",getenv("x"),x);unsetenv("x");break;
     default: break;
     }
    }
   .|\n
   %%
   int main(){ yylex();exit(0) ;}

   eof

   flex -8iCrf ip4dec.l
   cc  -std=c89 -Wall -pedantic -I. -pipe lex.yy.c -static -o ip4dec
usage: ip4dec < input-file

Re: Google DNS at 010.010.010.010

#78
post #75
post #36

Earlier quoted context omitted.

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.

Doesn’t this just highlight that php development ecosystem doesn’t value quality much? What even is a “file” in context of a web request? What about dependencies or logic defined in other files? This is just bizarre, I can’t see a sane codebase where this would be preferable to going on GitHub and pressing “.”

__FILE__ returns the path to the source file in which it's used. It's from C's equivalent preprocessor macro.
Post reply on HN