17 lines
326 B
Python
17 lines
326 B
Python
# -*- mode: python; coding: utf-8 -*-
|
|
#
|
|
# Recuperation des addresses ip des serveurs
|
|
|
|
import socket
|
|
|
|
def pubipof(hostname):
|
|
socket.gethostbyname(hostname + ".crans.org")
|
|
|
|
def admipof(hostname):
|
|
socket.gethostbyname(hostname + ".adm.crans.org")
|
|
|
|
def pubip():
|
|
pubip(pubhostname)
|
|
|
|
def admip():
|
|
admip(admhostname)
|