Hacker News new | past | comments | ask | show | jobs | submit login

They did. They are publicising 1.1.1.1 since it's easy to remember. But they said you can also use 1.0.0.1



Which is really handy. When testing if you're online, running "ping 1.1" is far quicker than "ping 8.8.8.8" or "ping 1.1.1.1"


Why am I today just learning that `ping` will stuff 0's into octets you omit from an address? All of the keystrokes I could have saved and minutes on the phone I could have saved doing `ping 192.168.1` instead!


It's not omitting and it's not just zeros: try `ping 127.256` and `ping 127.65536`.


It's not ping. It's a common C library routine used by quite a number of programs that does this. And this is old behaviour of that library function, that has been around for decades. Here's FreeBSD's library function from 1994, and it was fairly old then:

* https://github.com/dspinellis/unix-history-repo/blob/FreeBSD...


I am even MORE surprised that Windows PING also supports this!


Remember the windows IP stack originated from the BSD stack


Ah yeah, forgot that. :)


Today I also learned. Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: