Blame tests/p_bind/0-install_bind.sh

Athmane Madjoudj 6417b7
#!/bin/bash
Athmane Madjoudj 6417b7
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 6417b7
Athmane Madjoudj 6417b7
t_InstallPackage bind bind-utils
Athmane Madjoudj 6417b7
Athmane Madjoudj d3a5dd
if (t_GetPkgRel basesystem | grep -q el5)
Athmane Madjoudj d3a5dd
then
Athmane Madjoudj d3a5dd
   cat > /etc/named.conf <
Athmane Madjoudj d3a5dd
options {
Athmane Madjoudj d3a5dd
        listen-on port 53 { 127.0.0.1; };
Athmane Madjoudj d3a5dd
        listen-on-v6 port 53 { ::1; };
Athmane Madjoudj d3a5dd
        directory       "/var/named";
Athmane Madjoudj d3a5dd
        dump-file       "/var/named/data/cache_dump.db";
Athmane Madjoudj d3a5dd
        statistics-file "/var/named/data/named_stats.txt";
Athmane Madjoudj d3a5dd
        memstatistics-file "/var/named/data/named_mem_stats.txt";
Athmane Madjoudj d3a5dd
        allow-query     { localhost; };
Athmane Madjoudj d3a5dd
        recursion yes;
Athmane Madjoudj d3a5dd
Athmane Madjoudj d3a5dd
};
Athmane Madjoudj d3a5dd
Athmane Madjoudj d3a5dd
zone "." IN {
Athmane Madjoudj d3a5dd
        type hint;
Athmane Madjoudj d3a5dd
        file "named.root";
Athmane Madjoudj d3a5dd
};
Athmane Madjoudj d3a5dd
Athmane Madjoudj d3a5dd
include "/etc/named.rfc1912.zones";
Athmane Madjoudj d3a5dd
Athmane Madjoudj d3a5dd
EOF
Athmane Madjoudj d3a5dd
Athmane Madjoudj d3a5dd
Athmane Madjoudj d3a5dd
    cp /usr/share/doc/bind-*/sample/etc/named.rfc1912.zones /etc/
Athmane Madjoudj d3a5dd
    cp -R /usr/share/doc/bind-*/sample/var/named/local* /var/named/
Athmane Madjoudj d3a5dd
    cp -R /usr/share/doc/bind-*/sample/var/named/named.* /var/named/
Athmane Madjoudj d3a5dd
    chown -R named:named /var/named/* /etc/named.*
Athmane Madjoudj d3a5dd
fi
Athmane Madjoudj d3a5dd
Athmane Madjoudj 6417b7
t_ServiceControl named start