[debian-lan-devel] [SCM] Debian-LAN development and packaging branch, master, updated. 0.5-6-gd4d6a00
Andreas B. Mundt
andi.mundt at web.de
Mon Apr 9 19:59:09 UTC 2012
The following commit has been merged in the master branch:
commit d4d6a00f86c91b2e58d57f5a848a451f7537eb43
Author: Andreas B. Mundt <andi.mundt at web.de>
Date: Mon Apr 9 21:51:07 2012 +0200
Replace all hard-coded IP addresses by variables, part 3.
Automatically generate the DNS configuration (zone definition).
diff --git a/fai/config/files/etc/bind/db.10.in-addr.arpa/EXT_GATEWAY b/fai/config/files/etc/bind/db.10.in-addr.arpa/EXT_GATEWAY
deleted file mode 100644
index 741fa27..0000000
--- a/fai/config/files/etc/bind/db.10.in-addr.arpa/EXT_GATEWAY
+++ /dev/null
@@ -1,210 +0,0 @@
-$TTL 500
-@ IN SOA mainserver.intern. root.postoffice.intern. (
- 1 ; Serialnumber
- 3600 ; Refresh
- 1800 ; Retry
- 720000 ; Expire
- 6400 ) ; Minimum TTL
- NS mainserver.intern.
- MX 10 mainserver.intern.
-10.0.0 PTR mainserver.intern.
-50.0.0 PTR workstation00.intern.
-51.0.0 PTR workstation01.intern.
-52.0.0 PTR workstation02.intern.
-53.0.0 PTR workstation03.intern.
-54.0.0 PTR workstation04.intern.
-55.0.0 PTR workstation05.intern.
-56.0.0 PTR workstation06.intern.
-57.0.0 PTR workstation07.intern.
-58.0.0 PTR workstation08.intern.
-59.0.0 PTR workstation09.intern.
-60.0.0 PTR workstation10.intern.
-61.0.0 PTR workstation11.intern.
-62.0.0 PTR workstation12.intern.
-63.0.0 PTR workstation13.intern.
-64.0.0 PTR workstation14.intern.
-65.0.0 PTR workstation15.intern.
-66.0.0 PTR workstation16.intern.
-67.0.0 PTR workstation17.intern.
-68.0.0 PTR workstation18.intern.
-69.0.0 PTR workstation19.intern.
-70.0.0 PTR workstation20.intern.
-71.0.0 PTR workstation21.intern.
-72.0.0 PTR workstation22.intern.
-73.0.0 PTR workstation23.intern.
-74.0.0 PTR workstation24.intern.
-75.0.0 PTR workstation25.intern.
-76.0.0 PTR workstation26.intern.
-77.0.0 PTR workstation27.intern.
-78.0.0 PTR workstation28.intern.
-79.0.0 PTR workstation29.intern.
-80.0.0 PTR workstation30.intern.
-81.0.0 PTR workstation31.intern.
-82.0.0 PTR workstation32.intern.
-83.0.0 PTR workstation33.intern.
-84.0.0 PTR workstation34.intern.
-85.0.0 PTR workstation35.intern.
-86.0.0 PTR workstation36.intern.
-87.0.0 PTR workstation37.intern.
-88.0.0 PTR workstation38.intern.
-89.0.0 PTR workstation39.intern.
-90.0.0 PTR workstation40.intern.
-91.0.0 PTR workstation41.intern.
-92.0.0 PTR workstation42.intern.
-93.0.0 PTR workstation43.intern.
-94.0.0 PTR workstation44.intern.
-95.0.0 PTR workstation45.intern.
-96.0.0 PTR workstation46.intern.
-97.0.0 PTR workstation47.intern.
-98.0.0 PTR workstation48.intern.
-99.0.0 PTR workstation49.intern.
-100.0.0 PTR workstation50.intern.
-101.0.0 PTR workstation51.intern.
-102.0.0 PTR workstation52.intern.
-103.0.0 PTR workstation53.intern.
-104.0.0 PTR workstation54.intern.
-105.0.0 PTR workstation55.intern.
-106.0.0 PTR workstation56.intern.
-107.0.0 PTR workstation57.intern.
-108.0.0 PTR workstation58.intern.
-109.0.0 PTR workstation59.intern.
-110.0.0 PTR workstation60.intern.
-111.0.0 PTR workstation61.intern.
-112.0.0 PTR workstation62.intern.
-113.0.0 PTR workstation63.intern.
-114.0.0 PTR workstation64.intern.
-115.0.0 PTR workstation65.intern.
-116.0.0 PTR workstation66.intern.
-117.0.0 PTR workstation67.intern.
-118.0.0 PTR workstation68.intern.
-119.0.0 PTR workstation69.intern.
-120.0.0 PTR workstation70.intern.
-121.0.0 PTR workstation71.intern.
-122.0.0 PTR workstation72.intern.
-123.0.0 PTR workstation73.intern.
-124.0.0 PTR workstation74.intern.
-125.0.0 PTR workstation75.intern.
-126.0.0 PTR workstation76.intern.
-127.0.0 PTR workstation77.intern.
-128.0.0 PTR workstation78.intern.
-129.0.0 PTR workstation79.intern.
-130.0.0 PTR workstation80.intern.
-131.0.0 PTR workstation81.intern.
-132.0.0 PTR workstation82.intern.
-133.0.0 PTR workstation83.intern.
-134.0.0 PTR workstation84.intern.
-135.0.0 PTR workstation85.intern.
-136.0.0 PTR workstation86.intern.
-137.0.0 PTR workstation87.intern.
-138.0.0 PTR workstation88.intern.
-139.0.0 PTR workstation89.intern.
-140.0.0 PTR workstation90.intern.
-141.0.0 PTR workstation91.intern.
-142.0.0 PTR workstation92.intern.
-143.0.0 PTR workstation93.intern.
-144.0.0 PTR workstation94.intern.
-145.0.0 PTR workstation95.intern.
-146.0.0 PTR workstation96.intern.
-147.0.0 PTR workstation97.intern.
-148.0.0 PTR workstation98.intern.
-149.0.0 PTR workstation99.intern.
-150.0.0 PTR diskless00.intern.
-151.0.0 PTR diskless01.intern.
-152.0.0 PTR diskless02.intern.
-153.0.0 PTR diskless03.intern.
-154.0.0 PTR diskless04.intern.
-155.0.0 PTR diskless05.intern.
-156.0.0 PTR diskless06.intern.
-157.0.0 PTR diskless07.intern.
-158.0.0 PTR diskless08.intern.
-159.0.0 PTR diskless09.intern.
-160.0.0 PTR diskless10.intern.
-161.0.0 PTR diskless11.intern.
-162.0.0 PTR diskless12.intern.
-163.0.0 PTR diskless13.intern.
-164.0.0 PTR diskless14.intern.
-165.0.0 PTR diskless15.intern.
-166.0.0 PTR diskless16.intern.
-167.0.0 PTR diskless17.intern.
-168.0.0 PTR diskless18.intern.
-169.0.0 PTR diskless19.intern.
-170.0.0 PTR diskless20.intern.
-171.0.0 PTR diskless21.intern.
-172.0.0 PTR diskless22.intern.
-173.0.0 PTR diskless23.intern.
-174.0.0 PTR diskless24.intern.
-175.0.0 PTR diskless25.intern.
-176.0.0 PTR diskless26.intern.
-177.0.0 PTR diskless27.intern.
-178.0.0 PTR diskless28.intern.
-179.0.0 PTR diskless29.intern.
-180.0.0 PTR diskless30.intern.
-181.0.0 PTR diskless31.intern.
-182.0.0 PTR diskless32.intern.
-183.0.0 PTR diskless33.intern.
-184.0.0 PTR diskless34.intern.
-185.0.0 PTR diskless35.intern.
-186.0.0 PTR diskless36.intern.
-187.0.0 PTR diskless37.intern.
-188.0.0 PTR diskless38.intern.
-189.0.0 PTR diskless39.intern.
-190.0.0 PTR diskless40.intern.
-191.0.0 PTR diskless41.intern.
-192.0.0 PTR diskless42.intern.
-193.0.0 PTR diskless43.intern.
-194.0.0 PTR diskless44.intern.
-195.0.0 PTR diskless45.intern.
-196.0.0 PTR diskless46.intern.
-197.0.0 PTR diskless47.intern.
-198.0.0 PTR diskless48.intern.
-199.0.0 PTR diskless49.intern.
-200.0.0 PTR diskless50.intern.
-201.0.0 PTR diskless51.intern.
-202.0.0 PTR diskless52.intern.
-203.0.0 PTR diskless53.intern.
-204.0.0 PTR diskless54.intern.
-205.0.0 PTR diskless55.intern.
-206.0.0 PTR diskless56.intern.
-207.0.0 PTR diskless57.intern.
-208.0.0 PTR diskless58.intern.
-209.0.0 PTR diskless59.intern.
-210.0.0 PTR diskless60.intern.
-211.0.0 PTR diskless61.intern.
-212.0.0 PTR diskless62.intern.
-213.0.0 PTR diskless63.intern.
-214.0.0 PTR diskless64.intern.
-215.0.0 PTR diskless65.intern.
-216.0.0 PTR diskless66.intern.
-217.0.0 PTR diskless67.intern.
-218.0.0 PTR diskless68.intern.
-219.0.0 PTR diskless69.intern.
-220.0.0 PTR diskless70.intern.
-221.0.0 PTR diskless71.intern.
-222.0.0 PTR diskless72.intern.
-223.0.0 PTR diskless73.intern.
-224.0.0 PTR diskless74.intern.
-225.0.0 PTR diskless75.intern.
-226.0.0 PTR diskless76.intern.
-227.0.0 PTR diskless77.intern.
-228.0.0 PTR diskless78.intern.
-229.0.0 PTR diskless79.intern.
-230.0.0 PTR diskless80.intern.
-231.0.0 PTR diskless81.intern.
-232.0.0 PTR diskless82.intern.
-233.0.0 PTR diskless83.intern.
-234.0.0 PTR diskless84.intern.
-235.0.0 PTR diskless85.intern.
-236.0.0 PTR diskless86.intern.
-237.0.0 PTR diskless87.intern.
-238.0.0 PTR diskless88.intern.
-239.0.0 PTR diskless89.intern.
-240.0.0 PTR diskless90.intern.
-241.0.0 PTR diskless91.intern.
-242.0.0 PTR diskless92.intern.
-243.0.0 PTR diskless93.intern.
-244.0.0 PTR diskless94.intern.
-245.0.0 PTR diskless95.intern.
-246.0.0 PTR diskless96.intern.
-247.0.0 PTR diskless97.intern.
-248.0.0 PTR diskless98.intern.
-249.0.0 PTR diskless99.intern.
diff --git a/fai/config/files/etc/bind/db.10.in-addr.arpa/INT_GATEWAY b/fai/config/files/etc/bind/db.10.in-addr.arpa/INT_GATEWAY
deleted file mode 100644
index 379b8b8..0000000
--- a/fai/config/files/etc/bind/db.10.in-addr.arpa/INT_GATEWAY
+++ /dev/null
@@ -1,210 +0,0 @@
-$TTL 500
-@ IN SOA mainserver.intern. root.postoffice.intern. (
- 1 ; Serialnumber
- 3600 ; Refresh
- 1800 ; Retry
- 720000 ; Expire
- 6400 ) ; Minimum TTL
- NS mainserver.intern.
- MX 10 mainserver.intern.
-1.0.0 PTR mainserver.intern.
-50.0.0 PTR workstation00.intern.
-51.0.0 PTR workstation01.intern.
-52.0.0 PTR workstation02.intern.
-53.0.0 PTR workstation03.intern.
-54.0.0 PTR workstation04.intern.
-55.0.0 PTR workstation05.intern.
-56.0.0 PTR workstation06.intern.
-57.0.0 PTR workstation07.intern.
-58.0.0 PTR workstation08.intern.
-59.0.0 PTR workstation09.intern.
-60.0.0 PTR workstation10.intern.
-61.0.0 PTR workstation11.intern.
-62.0.0 PTR workstation12.intern.
-63.0.0 PTR workstation13.intern.
-64.0.0 PTR workstation14.intern.
-65.0.0 PTR workstation15.intern.
-66.0.0 PTR workstation16.intern.
-67.0.0 PTR workstation17.intern.
-68.0.0 PTR workstation18.intern.
-69.0.0 PTR workstation19.intern.
-70.0.0 PTR workstation20.intern.
-71.0.0 PTR workstation21.intern.
-72.0.0 PTR workstation22.intern.
-73.0.0 PTR workstation23.intern.
-74.0.0 PTR workstation24.intern.
-75.0.0 PTR workstation25.intern.
-76.0.0 PTR workstation26.intern.
-77.0.0 PTR workstation27.intern.
-78.0.0 PTR workstation28.intern.
-79.0.0 PTR workstation29.intern.
-80.0.0 PTR workstation30.intern.
-81.0.0 PTR workstation31.intern.
-82.0.0 PTR workstation32.intern.
-83.0.0 PTR workstation33.intern.
-84.0.0 PTR workstation34.intern.
-85.0.0 PTR workstation35.intern.
-86.0.0 PTR workstation36.intern.
-87.0.0 PTR workstation37.intern.
-88.0.0 PTR workstation38.intern.
-89.0.0 PTR workstation39.intern.
-90.0.0 PTR workstation40.intern.
-91.0.0 PTR workstation41.intern.
-92.0.0 PTR workstation42.intern.
-93.0.0 PTR workstation43.intern.
-94.0.0 PTR workstation44.intern.
-95.0.0 PTR workstation45.intern.
-96.0.0 PTR workstation46.intern.
-97.0.0 PTR workstation47.intern.
-98.0.0 PTR workstation48.intern.
-99.0.0 PTR workstation49.intern.
-100.0.0 PTR workstation50.intern.
-101.0.0 PTR workstation51.intern.
-102.0.0 PTR workstation52.intern.
-103.0.0 PTR workstation53.intern.
-104.0.0 PTR workstation54.intern.
-105.0.0 PTR workstation55.intern.
-106.0.0 PTR workstation56.intern.
-107.0.0 PTR workstation57.intern.
-108.0.0 PTR workstation58.intern.
-109.0.0 PTR workstation59.intern.
-110.0.0 PTR workstation60.intern.
-111.0.0 PTR workstation61.intern.
-112.0.0 PTR workstation62.intern.
-113.0.0 PTR workstation63.intern.
-114.0.0 PTR workstation64.intern.
-115.0.0 PTR workstation65.intern.
-116.0.0 PTR workstation66.intern.
-117.0.0 PTR workstation67.intern.
-118.0.0 PTR workstation68.intern.
-119.0.0 PTR workstation69.intern.
-120.0.0 PTR workstation70.intern.
-121.0.0 PTR workstation71.intern.
-122.0.0 PTR workstation72.intern.
-123.0.0 PTR workstation73.intern.
-124.0.0 PTR workstation74.intern.
-125.0.0 PTR workstation75.intern.
-126.0.0 PTR workstation76.intern.
-127.0.0 PTR workstation77.intern.
-128.0.0 PTR workstation78.intern.
-129.0.0 PTR workstation79.intern.
-130.0.0 PTR workstation80.intern.
-131.0.0 PTR workstation81.intern.
-132.0.0 PTR workstation82.intern.
-133.0.0 PTR workstation83.intern.
-134.0.0 PTR workstation84.intern.
-135.0.0 PTR workstation85.intern.
-136.0.0 PTR workstation86.intern.
-137.0.0 PTR workstation87.intern.
-138.0.0 PTR workstation88.intern.
-139.0.0 PTR workstation89.intern.
-140.0.0 PTR workstation90.intern.
-141.0.0 PTR workstation91.intern.
-142.0.0 PTR workstation92.intern.
-143.0.0 PTR workstation93.intern.
-144.0.0 PTR workstation94.intern.
-145.0.0 PTR workstation95.intern.
-146.0.0 PTR workstation96.intern.
-147.0.0 PTR workstation97.intern.
-148.0.0 PTR workstation98.intern.
-149.0.0 PTR workstation99.intern.
-150.0.0 PTR diskless00.intern.
-151.0.0 PTR diskless01.intern.
-152.0.0 PTR diskless02.intern.
-153.0.0 PTR diskless03.intern.
-154.0.0 PTR diskless04.intern.
-155.0.0 PTR diskless05.intern.
-156.0.0 PTR diskless06.intern.
-157.0.0 PTR diskless07.intern.
-158.0.0 PTR diskless08.intern.
-159.0.0 PTR diskless09.intern.
-160.0.0 PTR diskless10.intern.
-161.0.0 PTR diskless11.intern.
-162.0.0 PTR diskless12.intern.
-163.0.0 PTR diskless13.intern.
-164.0.0 PTR diskless14.intern.
-165.0.0 PTR diskless15.intern.
-166.0.0 PTR diskless16.intern.
-167.0.0 PTR diskless17.intern.
-168.0.0 PTR diskless18.intern.
-169.0.0 PTR diskless19.intern.
-170.0.0 PTR diskless20.intern.
-171.0.0 PTR diskless21.intern.
-172.0.0 PTR diskless22.intern.
-173.0.0 PTR diskless23.intern.
-174.0.0 PTR diskless24.intern.
-175.0.0 PTR diskless25.intern.
-176.0.0 PTR diskless26.intern.
-177.0.0 PTR diskless27.intern.
-178.0.0 PTR diskless28.intern.
-179.0.0 PTR diskless29.intern.
-180.0.0 PTR diskless30.intern.
-181.0.0 PTR diskless31.intern.
-182.0.0 PTR diskless32.intern.
-183.0.0 PTR diskless33.intern.
-184.0.0 PTR diskless34.intern.
-185.0.0 PTR diskless35.intern.
-186.0.0 PTR diskless36.intern.
-187.0.0 PTR diskless37.intern.
-188.0.0 PTR diskless38.intern.
-189.0.0 PTR diskless39.intern.
-190.0.0 PTR diskless40.intern.
-191.0.0 PTR diskless41.intern.
-192.0.0 PTR diskless42.intern.
-193.0.0 PTR diskless43.intern.
-194.0.0 PTR diskless44.intern.
-195.0.0 PTR diskless45.intern.
-196.0.0 PTR diskless46.intern.
-197.0.0 PTR diskless47.intern.
-198.0.0 PTR diskless48.intern.
-199.0.0 PTR diskless49.intern.
-200.0.0 PTR diskless50.intern.
-201.0.0 PTR diskless51.intern.
-202.0.0 PTR diskless52.intern.
-203.0.0 PTR diskless53.intern.
-204.0.0 PTR diskless54.intern.
-205.0.0 PTR diskless55.intern.
-206.0.0 PTR diskless56.intern.
-207.0.0 PTR diskless57.intern.
-208.0.0 PTR diskless58.intern.
-209.0.0 PTR diskless59.intern.
-210.0.0 PTR diskless60.intern.
-211.0.0 PTR diskless61.intern.
-212.0.0 PTR diskless62.intern.
-213.0.0 PTR diskless63.intern.
-214.0.0 PTR diskless64.intern.
-215.0.0 PTR diskless65.intern.
-216.0.0 PTR diskless66.intern.
-217.0.0 PTR diskless67.intern.
-218.0.0 PTR diskless68.intern.
-219.0.0 PTR diskless69.intern.
-220.0.0 PTR diskless70.intern.
-221.0.0 PTR diskless71.intern.
-222.0.0 PTR diskless72.intern.
-223.0.0 PTR diskless73.intern.
-224.0.0 PTR diskless74.intern.
-225.0.0 PTR diskless75.intern.
-226.0.0 PTR diskless76.intern.
-227.0.0 PTR diskless77.intern.
-228.0.0 PTR diskless78.intern.
-229.0.0 PTR diskless79.intern.
-230.0.0 PTR diskless80.intern.
-231.0.0 PTR diskless81.intern.
-232.0.0 PTR diskless82.intern.
-233.0.0 PTR diskless83.intern.
-234.0.0 PTR diskless84.intern.
-235.0.0 PTR diskless85.intern.
-236.0.0 PTR diskless86.intern.
-237.0.0 PTR diskless87.intern.
-238.0.0 PTR diskless88.intern.
-239.0.0 PTR diskless89.intern.
-240.0.0 PTR diskless90.intern.
-241.0.0 PTR diskless91.intern.
-242.0.0 PTR diskless92.intern.
-243.0.0 PTR diskless93.intern.
-244.0.0 PTR diskless94.intern.
-245.0.0 PTR diskless95.intern.
-246.0.0 PTR diskless96.intern.
-247.0.0 PTR diskless97.intern.
-248.0.0 PTR diskless98.intern.
-249.0.0 PTR diskless99.intern.
diff --git a/fai/config/files/etc/bind/db.intern/EXT_GATEWAY b/fai/config/files/etc/bind/db.intern/EXT_GATEWAY
deleted file mode 100644
index aa11951..0000000
--- a/fai/config/files/etc/bind/db.intern/EXT_GATEWAY
+++ /dev/null
@@ -1,234 +0,0 @@
-$TTL 500
-@ IN SOA mainserver.intern. root.postoffice.intern. (
- 1 ; Serialnumber
- 3600 ; Refresh
- 1800 ; Retry
- 720000 ; Expire
- 6400 ) ; Minimum TTL
- NS mainserver.intern.
- MX 10 mainserver.intern.
-mainserver A 10.0.0.10
-_ldap._tcp SRV 100 0 389 mainserver.intern.
-_syslog._udp SRV 100 0 514 mainserver.intern.
-_kerberos._udp SRV 100 0 88 mainserver.intern.
-_kerberos-adm._tcp SRV 100 0 749 mainserver.intern.
-_kpasswd._udp SRV 100 0 464 mainserver.intern.
-ns CNAME mainserver.intern.
-www CNAME mainserver.intern.
-ntp CNAME mainserver.intern.
-webcache CNAME mainserver.intern.
-cfengine CNAME mainserver.intern.
-bootps CNAME mainserver.intern.
-homes CNAME mainserver.intern.
-wpad CNAME mainserver.intern.
-db CNAME mainserver.intern.
-backup CNAME mainserver.intern.
-ssh CNAME mainserver.intern.
-ltsp CNAME mainserver.intern.
-domain CNAME mainserver.intern.
-ldap CNAME mainserver.intern.
-kerberos CNAME mainserver.intern.
-postoffice CNAME mainserver.intern.
-syslog CNAME mainserver.intern.
-faiserver CNAME mainserver.intern.
-swapserver CNAME mainserver.intern.
-workstation00 A 10.0.0.50
-workstation01 A 10.0.0.51
-workstation02 A 10.0.0.52
-workstation03 A 10.0.0.53
-workstation04 A 10.0.0.54
-workstation05 A 10.0.0.55
-workstation06 A 10.0.0.56
-workstation07 A 10.0.0.57
-workstation08 A 10.0.0.58
-workstation09 A 10.0.0.59
-workstation10 A 10.0.0.60
-workstation11 A 10.0.0.61
-workstation12 A 10.0.0.62
-workstation13 A 10.0.0.63
-workstation14 A 10.0.0.64
-workstation15 A 10.0.0.65
-workstation16 A 10.0.0.66
-workstation17 A 10.0.0.67
-workstation18 A 10.0.0.68
-workstation19 A 10.0.0.69
-workstation20 A 10.0.0.70
-workstation21 A 10.0.0.71
-workstation22 A 10.0.0.72
-workstation23 A 10.0.0.73
-workstation24 A 10.0.0.74
-workstation25 A 10.0.0.75
-workstation26 A 10.0.0.76
-workstation27 A 10.0.0.77
-workstation28 A 10.0.0.78
-workstation29 A 10.0.0.79
-workstation30 A 10.0.0.80
-workstation31 A 10.0.0.81
-workstation32 A 10.0.0.82
-workstation33 A 10.0.0.83
-workstation34 A 10.0.0.84
-workstation35 A 10.0.0.85
-workstation36 A 10.0.0.86
-workstation37 A 10.0.0.87
-workstation38 A 10.0.0.88
-workstation39 A 10.0.0.89
-workstation40 A 10.0.0.90
-workstation41 A 10.0.0.91
-workstation42 A 10.0.0.92
-workstation43 A 10.0.0.93
-workstation44 A 10.0.0.94
-workstation45 A 10.0.0.95
-workstation46 A 10.0.0.96
-workstation47 A 10.0.0.97
-workstation48 A 10.0.0.98
-workstation49 A 10.0.0.99
-workstation50 A 10.0.0.100
-workstation51 A 10.0.0.101
-workstation52 A 10.0.0.102
-workstation53 A 10.0.0.103
-workstation54 A 10.0.0.104
-workstation55 A 10.0.0.105
-workstation56 A 10.0.0.106
-workstation57 A 10.0.0.107
-workstation58 A 10.0.0.108
-workstation59 A 10.0.0.109
-workstation60 A 10.0.0.110
-workstation61 A 10.0.0.111
-workstation62 A 10.0.0.112
-workstation63 A 10.0.0.113
-workstation64 A 10.0.0.114
-workstation65 A 10.0.0.115
-workstation66 A 10.0.0.116
-workstation67 A 10.0.0.117
-workstation68 A 10.0.0.118
-workstation69 A 10.0.0.119
-workstation70 A 10.0.0.120
-workstation71 A 10.0.0.121
-workstation72 A 10.0.0.122
-workstation73 A 10.0.0.123
-workstation74 A 10.0.0.124
-workstation75 A 10.0.0.125
-workstation76 A 10.0.0.126
-workstation77 A 10.0.0.127
-workstation78 A 10.0.0.128
-workstation79 A 10.0.0.129
-workstation80 A 10.0.0.130
-workstation81 A 10.0.0.131
-workstation82 A 10.0.0.132
-workstation83 A 10.0.0.133
-workstation84 A 10.0.0.134
-workstation85 A 10.0.0.135
-workstation86 A 10.0.0.136
-workstation87 A 10.0.0.137
-workstation88 A 10.0.0.138
-workstation89 A 10.0.0.139
-workstation90 A 10.0.0.140
-workstation91 A 10.0.0.141
-workstation92 A 10.0.0.142
-workstation93 A 10.0.0.143
-workstation94 A 10.0.0.144
-workstation95 A 10.0.0.145
-workstation96 A 10.0.0.146
-workstation97 A 10.0.0.147
-workstation98 A 10.0.0.148
-workstation99 A 10.0.0.149
-diskless00 A 10.0.0.150
-diskless01 A 10.0.0.151
-diskless02 A 10.0.0.152
-diskless03 A 10.0.0.153
-diskless04 A 10.0.0.154
-diskless05 A 10.0.0.155
-diskless06 A 10.0.0.156
-diskless07 A 10.0.0.157
-diskless08 A 10.0.0.158
-diskless09 A 10.0.0.159
-diskless10 A 10.0.0.160
-diskless11 A 10.0.0.161
-diskless12 A 10.0.0.162
-diskless13 A 10.0.0.163
-diskless14 A 10.0.0.164
-diskless15 A 10.0.0.165
-diskless16 A 10.0.0.166
-diskless17 A 10.0.0.167
-diskless18 A 10.0.0.168
-diskless19 A 10.0.0.169
-diskless20 A 10.0.0.170
-diskless21 A 10.0.0.171
-diskless22 A 10.0.0.172
-diskless23 A 10.0.0.173
-diskless24 A 10.0.0.174
-diskless25 A 10.0.0.175
-diskless26 A 10.0.0.176
-diskless27 A 10.0.0.177
-diskless28 A 10.0.0.178
-diskless29 A 10.0.0.179
-diskless30 A 10.0.0.180
-diskless31 A 10.0.0.181
-diskless32 A 10.0.0.182
-diskless33 A 10.0.0.183
-diskless34 A 10.0.0.184
-diskless35 A 10.0.0.185
-diskless36 A 10.0.0.186
-diskless37 A 10.0.0.187
-diskless38 A 10.0.0.188
-diskless39 A 10.0.0.189
-diskless40 A 10.0.0.190
-diskless41 A 10.0.0.191
-diskless42 A 10.0.0.192
-diskless43 A 10.0.0.193
-diskless44 A 10.0.0.194
-diskless45 A 10.0.0.195
-diskless46 A 10.0.0.196
-diskless47 A 10.0.0.197
-diskless48 A 10.0.0.198
-diskless49 A 10.0.0.199
-diskless50 A 10.0.0.200
-diskless51 A 10.0.0.201
-diskless52 A 10.0.0.202
-diskless53 A 10.0.0.203
-diskless54 A 10.0.0.204
-diskless55 A 10.0.0.205
-diskless56 A 10.0.0.206
-diskless57 A 10.0.0.207
-diskless58 A 10.0.0.208
-diskless59 A 10.0.0.209
-diskless60 A 10.0.0.210
-diskless61 A 10.0.0.211
-diskless62 A 10.0.0.212
-diskless63 A 10.0.0.213
-diskless64 A 10.0.0.214
-diskless65 A 10.0.0.215
-diskless66 A 10.0.0.216
-diskless67 A 10.0.0.217
-diskless68 A 10.0.0.218
-diskless69 A 10.0.0.219
-diskless70 A 10.0.0.220
-diskless71 A 10.0.0.221
-diskless72 A 10.0.0.222
-diskless73 A 10.0.0.223
-diskless74 A 10.0.0.224
-diskless75 A 10.0.0.225
-diskless76 A 10.0.0.226
-diskless77 A 10.0.0.227
-diskless78 A 10.0.0.228
-diskless79 A 10.0.0.229
-diskless80 A 10.0.0.230
-diskless81 A 10.0.0.231
-diskless82 A 10.0.0.232
-diskless83 A 10.0.0.233
-diskless84 A 10.0.0.234
-diskless85 A 10.0.0.235
-diskless86 A 10.0.0.236
-diskless87 A 10.0.0.237
-diskless88 A 10.0.0.238
-diskless89 A 10.0.0.239
-diskless90 A 10.0.0.240
-diskless91 A 10.0.0.241
-diskless92 A 10.0.0.242
-diskless93 A 10.0.0.243
-diskless94 A 10.0.0.244
-diskless95 A 10.0.0.245
-diskless96 A 10.0.0.246
-diskless97 A 10.0.0.247
-diskless98 A 10.0.0.248
-diskless99 A 10.0.0.249
diff --git a/fai/config/files/etc/bind/db.intern/INT_GATEWAY b/fai/config/files/etc/bind/db.intern/INT_GATEWAY
deleted file mode 100644
index 9b47cde..0000000
--- a/fai/config/files/etc/bind/db.intern/INT_GATEWAY
+++ /dev/null
@@ -1,234 +0,0 @@
-$TTL 500
-@ IN SOA mainserver.intern. root.postoffice.intern. (
- 1 ; Serialnumber
- 3600 ; Refresh
- 1800 ; Retry
- 720000 ; Expire
- 6400 ) ; Minimum TTL
- NS mainserver.intern.
- MX 10 mainserver.intern.
-mainserver A 10.0.0.1
-_ldap._tcp SRV 100 0 389 mainserver.intern.
-_syslog._udp SRV 100 0 514 mainserver.intern.
-_kerberos._udp SRV 100 0 88 mainserver.intern.
-_kerberos-adm._tcp SRV 100 0 749 mainserver.intern.
-_kpasswd._udp SRV 100 0 464 mainserver.intern.
-ns CNAME mainserver.intern.
-www CNAME mainserver.intern.
-ntp CNAME mainserver.intern.
-webcache CNAME mainserver.intern.
-cfengine CNAME mainserver.intern.
-bootps CNAME mainserver.intern.
-homes CNAME mainserver.intern.
-wpad CNAME mainserver.intern.
-db CNAME mainserver.intern.
-backup CNAME mainserver.intern.
-ssh CNAME mainserver.intern.
-ltsp CNAME mainserver.intern.
-domain CNAME mainserver.intern.
-ldap CNAME mainserver.intern.
-kerberos CNAME mainserver.intern.
-postoffice CNAME mainserver.intern.
-syslog CNAME mainserver.intern.
-faiserver CNAME mainserver.intern.
-swapserver CNAME mainserver.intern.
-workstation00 A 10.0.0.50
-workstation01 A 10.0.0.51
-workstation02 A 10.0.0.52
-workstation03 A 10.0.0.53
-workstation04 A 10.0.0.54
-workstation05 A 10.0.0.55
-workstation06 A 10.0.0.56
-workstation07 A 10.0.0.57
-workstation08 A 10.0.0.58
-workstation09 A 10.0.0.59
-workstation10 A 10.0.0.60
-workstation11 A 10.0.0.61
-workstation12 A 10.0.0.62
-workstation13 A 10.0.0.63
-workstation14 A 10.0.0.64
-workstation15 A 10.0.0.65
-workstation16 A 10.0.0.66
-workstation17 A 10.0.0.67
-workstation18 A 10.0.0.68
-workstation19 A 10.0.0.69
-workstation20 A 10.0.0.70
-workstation21 A 10.0.0.71
-workstation22 A 10.0.0.72
-workstation23 A 10.0.0.73
-workstation24 A 10.0.0.74
-workstation25 A 10.0.0.75
-workstation26 A 10.0.0.76
-workstation27 A 10.0.0.77
-workstation28 A 10.0.0.78
-workstation29 A 10.0.0.79
-workstation30 A 10.0.0.80
-workstation31 A 10.0.0.81
-workstation32 A 10.0.0.82
-workstation33 A 10.0.0.83
-workstation34 A 10.0.0.84
-workstation35 A 10.0.0.85
-workstation36 A 10.0.0.86
-workstation37 A 10.0.0.87
-workstation38 A 10.0.0.88
-workstation39 A 10.0.0.89
-workstation40 A 10.0.0.90
-workstation41 A 10.0.0.91
-workstation42 A 10.0.0.92
-workstation43 A 10.0.0.93
-workstation44 A 10.0.0.94
-workstation45 A 10.0.0.95
-workstation46 A 10.0.0.96
-workstation47 A 10.0.0.97
-workstation48 A 10.0.0.98
-workstation49 A 10.0.0.99
-workstation50 A 10.0.0.100
-workstation51 A 10.0.0.101
-workstation52 A 10.0.0.102
-workstation53 A 10.0.0.103
-workstation54 A 10.0.0.104
-workstation55 A 10.0.0.105
-workstation56 A 10.0.0.106
-workstation57 A 10.0.0.107
-workstation58 A 10.0.0.108
-workstation59 A 10.0.0.109
-workstation60 A 10.0.0.110
-workstation61 A 10.0.0.111
-workstation62 A 10.0.0.112
-workstation63 A 10.0.0.113
-workstation64 A 10.0.0.114
-workstation65 A 10.0.0.115
-workstation66 A 10.0.0.116
-workstation67 A 10.0.0.117
-workstation68 A 10.0.0.118
-workstation69 A 10.0.0.119
-workstation70 A 10.0.0.120
-workstation71 A 10.0.0.121
-workstation72 A 10.0.0.122
-workstation73 A 10.0.0.123
-workstation74 A 10.0.0.124
-workstation75 A 10.0.0.125
-workstation76 A 10.0.0.126
-workstation77 A 10.0.0.127
-workstation78 A 10.0.0.128
-workstation79 A 10.0.0.129
-workstation80 A 10.0.0.130
-workstation81 A 10.0.0.131
-workstation82 A 10.0.0.132
-workstation83 A 10.0.0.133
-workstation84 A 10.0.0.134
-workstation85 A 10.0.0.135
-workstation86 A 10.0.0.136
-workstation87 A 10.0.0.137
-workstation88 A 10.0.0.138
-workstation89 A 10.0.0.139
-workstation90 A 10.0.0.140
-workstation91 A 10.0.0.141
-workstation92 A 10.0.0.142
-workstation93 A 10.0.0.143
-workstation94 A 10.0.0.144
-workstation95 A 10.0.0.145
-workstation96 A 10.0.0.146
-workstation97 A 10.0.0.147
-workstation98 A 10.0.0.148
-workstation99 A 10.0.0.149
-diskless00 A 10.0.0.150
-diskless01 A 10.0.0.151
-diskless02 A 10.0.0.152
-diskless03 A 10.0.0.153
-diskless04 A 10.0.0.154
-diskless05 A 10.0.0.155
-diskless06 A 10.0.0.156
-diskless07 A 10.0.0.157
-diskless08 A 10.0.0.158
-diskless09 A 10.0.0.159
-diskless10 A 10.0.0.160
-diskless11 A 10.0.0.161
-diskless12 A 10.0.0.162
-diskless13 A 10.0.0.163
-diskless14 A 10.0.0.164
-diskless15 A 10.0.0.165
-diskless16 A 10.0.0.166
-diskless17 A 10.0.0.167
-diskless18 A 10.0.0.168
-diskless19 A 10.0.0.169
-diskless20 A 10.0.0.170
-diskless21 A 10.0.0.171
-diskless22 A 10.0.0.172
-diskless23 A 10.0.0.173
-diskless24 A 10.0.0.174
-diskless25 A 10.0.0.175
-diskless26 A 10.0.0.176
-diskless27 A 10.0.0.177
-diskless28 A 10.0.0.178
-diskless29 A 10.0.0.179
-diskless30 A 10.0.0.180
-diskless31 A 10.0.0.181
-diskless32 A 10.0.0.182
-diskless33 A 10.0.0.183
-diskless34 A 10.0.0.184
-diskless35 A 10.0.0.185
-diskless36 A 10.0.0.186
-diskless37 A 10.0.0.187
-diskless38 A 10.0.0.188
-diskless39 A 10.0.0.189
-diskless40 A 10.0.0.190
-diskless41 A 10.0.0.191
-diskless42 A 10.0.0.192
-diskless43 A 10.0.0.193
-diskless44 A 10.0.0.194
-diskless45 A 10.0.0.195
-diskless46 A 10.0.0.196
-diskless47 A 10.0.0.197
-diskless48 A 10.0.0.198
-diskless49 A 10.0.0.199
-diskless50 A 10.0.0.200
-diskless51 A 10.0.0.201
-diskless52 A 10.0.0.202
-diskless53 A 10.0.0.203
-diskless54 A 10.0.0.204
-diskless55 A 10.0.0.205
-diskless56 A 10.0.0.206
-diskless57 A 10.0.0.207
-diskless58 A 10.0.0.208
-diskless59 A 10.0.0.209
-diskless60 A 10.0.0.210
-diskless61 A 10.0.0.211
-diskless62 A 10.0.0.212
-diskless63 A 10.0.0.213
-diskless64 A 10.0.0.214
-diskless65 A 10.0.0.215
-diskless66 A 10.0.0.216
-diskless67 A 10.0.0.217
-diskless68 A 10.0.0.218
-diskless69 A 10.0.0.219
-diskless70 A 10.0.0.220
-diskless71 A 10.0.0.221
-diskless72 A 10.0.0.222
-diskless73 A 10.0.0.223
-diskless74 A 10.0.0.224
-diskless75 A 10.0.0.225
-diskless76 A 10.0.0.226
-diskless77 A 10.0.0.227
-diskless78 A 10.0.0.228
-diskless79 A 10.0.0.229
-diskless80 A 10.0.0.230
-diskless81 A 10.0.0.231
-diskless82 A 10.0.0.232
-diskless83 A 10.0.0.233
-diskless84 A 10.0.0.234
-diskless85 A 10.0.0.235
-diskless86 A 10.0.0.236
-diskless87 A 10.0.0.237
-diskless88 A 10.0.0.238
-diskless89 A 10.0.0.239
-diskless90 A 10.0.0.240
-diskless91 A 10.0.0.241
-diskless92 A 10.0.0.242
-diskless93 A 10.0.0.243
-diskless94 A 10.0.0.244
-diskless95 A 10.0.0.245
-diskless96 A 10.0.0.246
-diskless97 A 10.0.0.247
-diskless98 A 10.0.0.248
-diskless99 A 10.0.0.249
diff --git a/fai/config/files/etc/bind/localzones/SERVER_A b/fai/config/files/etc/bind/localzones/SERVER_A
deleted file mode 100644
index 3592703..0000000
--- a/fai/config/files/etc/bind/localzones/SERVER_A
+++ /dev/null
@@ -1,15 +0,0 @@
-zone "10.in-addr.arpa" {
- type master;
- notify yes;
- file "/etc/bind/db.10.in-addr.arpa";
-
-
-};
-
-zone "intern" {
- type master;
- notify yes;
- file "/etc/bind/db.intern";
-
-
-};
diff --git a/fai/config/scripts/DNS_SERVER/10-zones b/fai/config/scripts/DNS_SERVER/10-zones
index d878746..21c24aa 100755
--- a/fai/config/scripts/DNS_SERVER/10-zones
+++ b/fai/config/scripts/DNS_SERVER/10-zones
@@ -2,6 +2,111 @@
#
set -e
-fcopy -r /etc/bind/
+if [ $FAI_ACTION != "install" ]; then
+ exit 0
+fi
ainsl $target/etc/bind/named.conf.local "include \"/etc/bind/localzones\";"
+
+## Generate the DNS configuration.
+## Use variables from corresponding class/*.var file.
+
+cat > $target/etc/bind/db.intern <<EOF
+\$TTL 500
+@ IN SOA mainserver.intern. root.postoffice.intern. (
+ 1 ; Serialnumber
+ 3600 ; Refresh
+ 1800 ; Retry
+ 720000 ; Expire
+ 6400 ) ; Minimum TTL
+ NS mainserver.intern.
+ MX 10 mainserver.intern.
+mainserver A ${MAINSERVER_IPADDR}
+_ldap._tcp SRV 100 0 389 mainserver.intern.
+_syslog._udp SRV 100 0 514 mainserver.intern.
+_kerberos._udp SRV 100 0 88 mainserver.intern.
+_kerberos-adm._tcp SRV 100 0 749 mainserver.intern.
+_kpasswd._udp SRV 100 0 464 mainserver.intern.
+ns CNAME mainserver.intern.
+www CNAME mainserver.intern.
+ntp CNAME mainserver.intern.
+webcache CNAME mainserver.intern.
+cfengine CNAME mainserver.intern.
+bootps CNAME mainserver.intern.
+homes CNAME mainserver.intern.
+wpad CNAME mainserver.intern.
+db CNAME mainserver.intern.
+backup CNAME mainserver.intern.
+ssh CNAME mainserver.intern.
+ltsp CNAME mainserver.intern.
+domain CNAME mainserver.intern.
+ldap CNAME mainserver.intern.
+kerberos CNAME mainserver.intern.
+postoffice CNAME mainserver.intern.
+syslog CNAME mainserver.intern.
+faiserver CNAME mainserver.intern.
+swapserver CNAME mainserver.intern.
+EOF
+
+PREFIX=`echo $SUBNET | cut -d "." --fields=1,2,3`
+
+for i in `seq 50 149` ; do
+ NUM=`printf "%02d" $(($i-50))`
+ IPADDR=$i
+ echo "workstation$NUM A $PREFIX.$IPADDR" \
+ >> $target/etc/bind/db.intern
+done
+for i in `seq 150 249` ; do
+ NUM=`printf "%02d" $(($i-150))`
+ IPADDR=$i
+ echo "diskless$NUM A $PREFIX.$IPADDR" \
+ >> $target/etc/bind/db.intern
+done
+
+###################
+
+PREFIX=`echo $SUBNET | cut -d "." --fields=1,2`
+FILE="/etc/bind/db.$PREFIX.in-addr.arpa"
+
+cat > $target/etc/bind/localzones <<EOF
+zone "${PREFIX}.in-addr.arpa" {
+ type master;
+ notify yes;
+ file "$FILE";
+};
+
+zone "intern" {
+ type master;
+ notify yes;
+ file "/etc/bind/db.intern";
+};
+EOF
+
+###################
+
+REV=`echo $MAINSERVER_IPADDR | cut -d "." --fields=4`
+
+cat > $target$FILE <<EOF
+\$TTL 500
+@ IN SOA mainserver.intern. root.postoffice.intern. (
+ 1 ; Serialnumber
+ 3600 ; Refresh
+ 1800 ; Retry
+ 720000 ; Expire
+ 6400 ) ; Minimum TTL
+ NS mainserver.intern.
+ MX 10 mainserver.intern.
+$REV.0 PTR mainserver.intern.
+EOF
+for i in `seq 50 149` ; do
+ NUM=`printf "%02d" $(($i-50))`
+ IPADDR=$i
+ echo "${IPADDR}.0 PTR workstation${NUM}.intern." \
+ >> $target$FILE
+done
+for i in `seq 150 249` ; do
+ NUM=`printf "%02d" $(($i-150))`
+ IPADDR=$i
+ echo "${IPADDR}.0 PTR diskless${NUM}.intern." \
+ >> $target$FILE
+done
--
Debian-LAN development and packaging
More information about the debian-lan-devel
mailing list