[email protected] skrev: > http://bugs.skolelinux.org/show_bug.cgi?id=1391 > > > > > > --- Comment #2 from Holger Levsen <[email protected]> 2009-10-21 > 12:27:13 --- >> I wonder if it might be a good idea to add all of the old DNS ranges into >> LDAP (static00-49 etc). > > I think it would :) > >
I've written a Python script to generate a LDIF containing the following host/IP ranges: ltspserver00-19 10.0.2.10 printer00-19 10.0.2.30 static00-49 10.0.2.50 dhcp000-154 10.0.2.100 # dhcp000-155 in db.10, but 100+155=255 dhcp155-399 10.0.3.1 # dhcp156-399 in db.10, ends at 10.0.3.245 ltsp001-253 192.168.0.1 # ltsp200-253 are dynamic The script can be found here: http://sepia.ath.cx/~jss/debian-edu/ranges.py The script should be reasonably simple to understand. It's also easy to add new ranges to the script, the table used by the script is pasted verbatim above. And the resulting LDIF: http://sepia.ath.cx/~jss/debian-edu/dns_ranges.ldif.gz I suggest doing the following: * Adding dc=3,dc=0,dc=10,dc=in-addr,dc=arpa,ou=hosts,.., as it is necessary in order to add the PTR records for dhcp155-399 (10.0.3.). * Removing all traces of the ranges above from dns_skole.ldif and dns_arpa.ldif. dns_ranges.ldif is 319K, so that would help keep dns_skole.ldif and dns_arpa.ldif readable. * Importing dns_ranges.ldif (possibly under a better name). I've put a .diff against debian-edu-config/ldap-bootstrap implementing points 1 and 2 here: http://sepia.ath.cx/~jss/debian-edu/dns_ranges.diff John. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

