Пример #1
0
def DigHostsIP(reg, file='/etc/hosts'):
    return dighostip(reg, file='/etc/hosts')[0]
Пример #2
0
def DigHostsIP_Port(reg, port, file='/etc/hosts'):
    return '%s:%s' % (dighostip(reg, file='/etc/hosts')[0], port)