@staticmethod
def number_to_ip(val):
    """convert long int to dotted quad string"""
    denom = 256 * 256 * 256
    quad = []
    while denom > 0:
        seg, val = divmod(val, denom)
        quad.append(str(int(seg)))
        denom = denom / 256
    return '.'.join(quad)
