#### file generated by gen-dhcpd.pl, Fri, 05 Oct 2012 16:04:13 +0200

# IPv6 address valid lifetime
#  (at the end the address is no longer usable by the client)
#  (set to 30 days, the usual IPv6 default)
default-lease-time 2592000;

# IPv6 address preferred lifetime
#  (at the end the address is deprecated, i.e., the client should use
#   other addresses for new connections)
#  (set to 7 days, the  usual IPv6 default)
preferred-lifetime 604800;

# T1, the delay before Renew
#  (default is 1/2 preferred lifetime)
#  (set to 1 hour)
option dhcp-renewal-time 3600;

# T2, the delay before Rebind (if Renews failed)
#  (default is 3/4 preferred lifetime)
#  (set to 2 hours)
option dhcp-rebinding-time 7200;

# Enable RFC 5007 support
allow leasequery;

# The delay before information-request refresh
#  (minimum is 10 minutes, maximum one day, default is to not refresh)
#  (set to 6 hours)
option dhcp6.info-refresh-time 21600;

# The path of the lease file
dhcpv6-lease-file-name "/var/db/dhcpd6/dhcpd6.leases";

# Don't let clients set their own FQDN
ignore client-updates;

# enable ddns
ddns-update-style interim;

# set TTL for ddns
# should match the TTL set in BIND
ddns-ttl 600;

# make server authorative
authoritative;

# send logs to syslog
log-facility local7;

# Global definitions for name server address(es) and domain search list
option domain-name "party.bylan.net";
option dhcp6.name-servers 2001:20a0:4000:500::143, 2001:20a0:4000:500::163;

# set ddns-hostname
if exists host-name {
        ddns-hostname = lcase(option host-name);
} elsif exists fqdn.hostname {
        ddns-hostname = lcase(option fqdn.hostname);
} else {
        # "2001:20a0:4000:300::123" would produce "300-0-0-0-123" as the ddns-hostname
        ddns-hostname = binary-to-ascii(16, 16, "-", suffix(substring(option dhcp6.ia-na, 16, 16), 10));
}

# ddns-key
key "ddns_key" {
        algorithm hmac-md5;
        secret "RÅKKJÅDD <3";
}
	
# 2001:20a0:4000:500::/64 (servers)
subnet6 2001:20a0:4000:500::/64 {
}

# 2001:20a0:4000:101::/64 (row01a.party.bylan.net)
subnet6 2001:20a0:4000:101::/64 {
        option domain-name "row01a.party.bylan.net";
        ddns-domainname "row01a.party.bylan.net";
	
	range6 2001:20a0:4000:101::1000 2001:20a0:4000:101::4999;
}
zone row01a.party.bylan.net. { primary 89.10.192.111; key "ddns_key"; }
zone 1.0.1.0.0.0.0.4.0.a.0.2.1.0.0.2.ip6.arpa. { primary 89.10.192.111; key "ddns_key"; }

# 2001:20a0:4000:201::/64 (row01b.party.bylan.net)
subnet6 2001:20a0:4000:201::/64 {
        option domain-name "row01b.party.bylan.net";
        ddns-domainname "row01b.party.bylan.net";
	
	range6 2001:20a0:4000:201::1000 2001:20a0:4000:201::4999;
}
zone row01b.party.bylan.net. { primary 89.10.192.111; key "ddns_key"; }
zone 1.0.2.0.0.0.0.4.0.a.0.2.1.0.0.2.ip6.arpa. { primary 89.10.192.111; key "ddns_key"; }

*snip*

# 2001:20a0:4000:400::/64 (noc.party.bylan.net)
subnet6 2001:20a0:4000:400::/64 {
        option domain-name "noc.party.bylan.net";
        ddns-domainname "noc.party.bylan.net";
	
	range6 2001:20a0:4000:400::1000 2001:20a0:4000:400::4999;
}
zone noc.party.bylan.net. { primary 89.10.192.111; key "ddns_key"; }
zone 0.0.4.0.0.0.0.4.0.a.0.2.1.0.0.2.ip6.arpa. { primary 89.10.192.111; key "ddns_key"; }

# 2001:20a0:4000:401::/64 (noc-wlan.party.bylan.net)
subnet6 2001:20a0:4000:401::/64 {
        option domain-name "noc-wlan.party.bylan.net";
        ddns-domainname "noc-wlan.party.bylan.net";
	
	range6 2001:20a0:4000:401::1000 2001:20a0:4000:401::4999;
}
zone noc-wlan.party.bylan.net. { primary 89.10.192.111; key "ddns_key"; }
zone 1.0.4.0.0.0.0.4.0.a.0.2.1.0.0.2.ip6.arpa. { primary 89.10.192.111; key "ddns_key"; }

# 2001:20a0:4000:600::/64 (wlan.party.bylan.net)
subnet6 2001:20a0:4000:600::/64 {
        option domain-name "wlan.party.bylan.net";
        ddns-domainname "wlan.party.bylan.net";
	
	range6 2001:20a0:4000:600::1000 2001:20a0:4000:600::4999;
}
zone wlan.party.bylan.net. { primary 89.10.192.111; key "ddns_key"; }
zone 0.0.6.0.0.0.0.4.0.a.0.2.1.0.0.2.ip6.arpa. { primary 89.10.192.111; key "ddns_key"; }

