$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/named $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/bind
$(CP) \
- ./files/bind/db.0 \
- ./files/bind/db.127 \
- ./files/bind/db.255 \
- ./files/bind/db.local \
./files/bind/db.root \
./files/bind/bind.keys \
$(1)/etc/bind/
- sed -e '1s/ broadcast / empty rfc1918 /' \
- < ./files/bind/db.0 \
- > $(1)/etc/bind/db.empty
$(CP) ./files/bind/named.conf.example $(1)/etc/bind/named.conf
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/named.init $(1)/etc/init.d/named
- find $(1)/etc/bind/ -name ".svn" | xargs rm -rf
endef
define Package/bind-server/conffiles
-/etc/bind/db.0
-/etc/bind/db.127
-/etc/bind/db.255
-/etc/bind/db.local
/etc/bind/db.root
/etc/bind/named.conf
endef
+++ /dev/null
-;
-; BIND reverse data file for broadcast zone
-;
-$TTL 604800
-@ IN SOA localhost. root.localhost. (
- 1 ; Serial
- 604800 ; Refresh
- 86400 ; Retry
- 2419200 ; Expire
- 604800 ) ; Negative Cache TTL
-;
-@ IN NS localhost.
+++ /dev/null
-;
-; BIND reverse data file for local loopback interface
-;
-$TTL 604800
-@ IN SOA localhost. root.localhost. (
- 1 ; Serial
- 604800 ; Refresh
- 86400 ; Retry
- 2419200 ; Expire
- 604800 ) ; Negative Cache TTL
-;
-@ IN NS localhost.
-1.0.0 IN PTR localhost.
+++ /dev/null
-;
-; BIND reverse data file for broadcast zone
-;
-$TTL 604800
-@ IN SOA localhost. root.localhost. (
- 1 ; Serial
- 604800 ; Refresh
- 86400 ; Retry
- 2419200 ; Expire
- 604800 ) ; Negative Cache TTL
-;
-@ IN NS localhost.
+++ /dev/null
-;
-; BIND data file for local loopback interface
-;
-$TTL 604800
-@ IN SOA localhost. root.localhost. (
- 1 ; Serial
- 604800 ; Refresh
- 86400 ; Retry
- 2419200 ; Expire
- 604800 ) ; Negative Cache TTL
-;
-@ IN NS localhost.
-@ IN A 127.0.0.1
type hint;
file "/etc/bind/db.root";
};
-
-// be authoritative for the localhost forward and reverse zones, and for
-// broadcast zones as per RFC 1912
-
-zone "localhost" {
- type primary;
- file "/etc/bind/db.local";
-};
-
-zone "127.in-addr.arpa" {
- type primary;
- file "/etc/bind/db.127";
-};
-
-zone "0.in-addr.arpa" {
- type primary;
- file "/etc/bind/db.0";
-};
-
-zone "255.in-addr.arpa" {
- type primary;
- file "/etc/bind/db.255";
-};