Y
Hacker News
new
|
ask
|
show
|
jobs
by
apearson
1207 days ago
Like fd::1? Valid ipv6 that is shorter than an ipv4 address
2 comments
Miiko
1207 days ago
Nah, "1.1" is a valid IPv4 address (Cloudflare DNS) and it's shorter
link
apearson
1207 days ago
Touché, I guess I should’ve said a typical v4 address. Short hand v4 addresses aren’t as common knowledge though
link
p1mrx
1206 days ago
fd::1 is a reserved address. Did you mean fd00::1?
link
apearson
1206 days ago
fd::1 == 00fd::1. The :: expands to fill the available bits with 0
link
p1mrx
1206 days ago
fd::1 == 00fd::0001, which is reserved by IETF.
The :: only expands to fill all-zero hextets.
link
apearson
1206 days ago
Good catch, that is correct. Thank you
link
hot_gril
1206 days ago
...This thread shows that the ipv6 notation is more complicated. It's good to at least use a smaller address space on a LAN like this, but I want the basic decimal notation.
link
p1mrx
1206 days ago
Decimal is actually a nightmare for dealing with common CIDR prefixes. Would you rather write '1111111111110000' as fff0 or 65520?
link