-
DNS Slackware 9.1
toma aeh o script
salve como /etc/rc.d/rc.bind
dê um chmod +x /etc/rc.d/rc.bin
e starta ele
#inicio
bind_start() {
if [ -x /usr/sbin/named ]; then
echo "Starting BIND: /usr/sbin/named"
/usr/sbin/named
fi
}
# Stop bind:
bind_stop() {
killall named
}
# Restart bind:
bind_restart() {
bind_stop
sleep 1
bind_start
}
case "$1" in
'start')
bind_start
;;
'stop')
bind_stop
;;
'restart')
bind_restart
;;
*)
echo "usage $0 start|stop|restart"
esac
#FIM
-
DNS Slackware 9.1
pq não reinstala o bind ? ja tentou o named -u daemon
-
DNS Slackware 9.1
-
DNS Slackware 9.1
Opa valew para script.
Vou executá-lo e depois posto aqui o resultado.
A princípio agredeço a todos.
[ ]´s
-
DNS Slackware 9.1
gente ao q percebi vou precisar de mais um força de vc´s
criei o script conforme o visitante me passou, em seguida executei /etc/rc.d/rc.bind start e blz a resposta foi Starting BIND. Ae q veio o problema qdo pensei q já era então olhei em ps ax e percebi q nada acontecerá.
agora está assim:
root@trigger:~# whereis bind
bind: /usr/man/man2/bind.2.gz /usr/man/mann/bind.n.gz /usr/share/man/man2/bind.2.gz /usr/share/man/mann/bind.n.gz
root@trigger:~# whereis named
named: /usr/sbin/named /etc/named.conf /usr/man/man8/named.8.gz /usr/share/man/man8/named.8.gz
root@trigger:~# rpm -q bind
erro: não consigo abrir o índice de Name usando o db3 - Arquivo ou diretório não encontrado (2)
o pacote bind não está instalado
root@trigger:~# rpm -q named
erro: não consigo abrir o índice de Name usando o db3 - Arquivo ou diretório não encontrado (2)
o pacote named não está instalado
root@trigger:/etc# cat named.conf
options {
directory "/var/named/caching-example";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
logging}{
category lame-server { null; };
category cname { null; };
};
//
// a caching only nameserver config
//
zone "." IN {
type hint;
file "caching-example/named.ca";
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "caching-example/local.rev";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "caching-example/named.local";
};
zone "trigger.zone" {
type master;
file "caching-example/trigger.zone";
allow-update { none; };
root@trigger:/var/named/caching-example# ls
local2.rev local.rev named.ca named.local trigger.zone
Ou seja os diretórios estão ae, o named.conf tbm. mas derepente qdo dou um rpm - q informa q não está instalado.
Ae estou sem saber como prosseguir.
Alguém poderia de ajudar novamente....
Grato.