def int_as_ip(ip_address):
    """convert int to dot notation

    """
    return ".".join(map(str, [ip_address >> 24,
                              (ip_address & 0b111111111111111111111111) >> 16,
                              (ip_address & 0b1111111111111111) >> 8,
                              ip_address & 0b11111111]))