Is there any method (via CLI) of knowing if the server I'm at has IPv4 or IPv6?
EDIT: As for the reason why I'm asking this question (apologies if I wasn't specific enough), I'm referring to this guide by my host (Linode).
Specifically, they say (under the section about updating /etc/hosts) that:
"If you have IPv6 enabled on your Linode, you will also want to add an entry for your IPv6 address […]".
So, I'm simply wondering if and how you can figure this out via commandline. (My OS is Ubuntu 11.10 Oneiric.)
UPDATE: Apart from ifconfig, it seems the ping6 utility might prove useful, as hinted to in this article.