static function getByName(string $hostname): IPAddress {
        $host = gethostbyname($hostname);
        if ($host === $hostname) {
            throw new \InvalidArgumentException($hostname);
        }
        return new self($host);
    }