crans_bcfg2/Python/etc/hosts
Nicolas Dandrimont 1c3bc54efb [/etc/hosts] les hosts adm only ont le droit à leur nom raccourci aussi
darcs-hash:20110208230943-ffbb2-4bc6751959fc581f8c149751224cb6fdeb69136e.gz
2011-02-09 00:09:43 +01:00

26 lines
702 B
Python

# -*- coding: utf-8; mode: python -*-
include("ip")
@127.0.0.1 localhost.crans.org localhost
if not has('adm-only'):
print pubip(), pubhostname, hostname
print admip(), admhostname
else:
print admip(), admhostname, hostname+".adm", hostname
@10.231.136.13 fx.adm.crans.org fx.adm fx
if(has("komaz")):
print "138.231.135.5 irts-ext.ens-cachan.fr irts"
print "138.231.135.6 komaz-ext"
print "138.231.136.9 sable.crans.org sable"
print "138.231.136.10 sila.crans.org sila"
@# The following lines are desirable for IPv6 capable hosts
@::1 ip6-localhost ip6-loopback
@fe00::0 ip6-localnet
@ff00::0 ip6-mcastprefix
@ff02::1 ip6-allnodes
@ff02::2 ip6-allrouters
@ff02::3 ip6-allhosts