settings/hosts.py
changeset 5 86b05c0ab5cd
parent 4 8b633782f02d
child 6 57e8168ba8c4
--- a/settings/hosts.py	Thu Apr 02 22:52:26 2009 +0300
+++ b/settings/hosts.py	Thu Apr 02 23:59:31 2009 +0300
@@ -1,14 +1,40 @@
 from addr import IP, Network
 from host import Interface, Host
 from dhcp import Subnet
+from bind import Settings as BindSettings
+from bind_conf import Interval
 
-dhcp_settings = {
+# BIND stuff
+domain          = "paivola.fi"
+
+nameservers     = [
+        "ranssi.paivola.fi",
+        "misc1.idler.fi",
+        "misc2.idler.fi",
+        "srv.marttila.de",
+    ]
+
+mailservers     = [
+        "mail.paivola.fi",
+    ]
+
+bind_settings   = BindSettings(
+        ttl         = 3601,
+        hostmaster  = "hostmaster",
+        refresh     = Interval(h=1),
+        retry       = Interval(m=3),
+        expire      = Interval(d=28),
+        minimum     = Interval(60)
+    )
+
+# DHCP stuff
+dhcp_settings   = {
     'default-lease-time':   43200,
     'max-lease-time':       86400,
     'authorative':          None,
 }
 
-dhcp_options = {
+dhcp_options    = {
     'domain-name-servers':  IP('194.197.235.145'),
 }
 
@@ -18,6 +44,7 @@
     Subnet(Network('192.168.0.0/23'),   router_idx=1, unknown_clients='deny', comment="Internal network"),
 ]
 
+# general stuff
 hosts           = [
     Host('jumpgate',    IP('194.197.235.1'),    [ ]),
     Host('mikk4',       IP('194.197.235.72'),   [