Check if host is a dragon.

        Check if the specified host is a dragon based on simple heuristic.
        The code simply checks if particular strings are in the index page.
        It should work for DragonMint or Innosilicon branded miners.

def is_dragon(host, timeout=1):
        """
        Check if host is a dragon.

        Check if the specified host is a dragon based on simple heuristic.
        The code simply checks if particular strings are in the index page.
        It should work for DragonMint or Innosilicon branded miners.
        """
        try:
            r = requests.get('http://{}/'.format(host), timeout=timeout)
            if r.status_code == 200:
                if '<title>DragonMint</title>' in r.text or \
                        '<title>AsicMiner</title>' in r.text:
                    return True
        except requests.exceptions.RequestException:
            pass
        return False