Olá pessoal estou com muitas dificuldades pra configurar um servidor dns pra testes!!!
qdo executo service named start ele da a mensgem [OK] porem nao funciona
qdo executo o comando
named -g ele dá a seguinte mensagem:
[root@laboratorio named]# named -g
May 21 13:31:15.603 starting BIND 9.2.2-P3 -g
May 21 13:31:15.605 using 1 CPU
May 21 13:31:15.612 loading configuration from '/etc/named.conf'
May 21 13:31:15.650 no IPv6 interfaces found
May 21 13:31:15.651 listening on IPv4 interface lo, 127.0.0.1#53
May 21 13:31:15.653 binding TCP socket: address in use
May 21 13:31:15.653 listening on IPv4 interface eth0, 192.168.0.1#53
May 21 13:31:15.654 binding TCP socket: address in use
May 21 13:31:15.661 /etc/named.conf:19: couldn't add command channel 127.0.0.1#953: address in use
May 21 13:31:15.662 ignoring config file logging statement due to -g option
May 21 13:31:15.663 couldn't open pid file '/var/run/named/named.pid': Permission denied
May 21 13:31:15.663 exiting (due to early fatal error)
[root@laboratorio named]#
já dei permisao de execucao na pasta chmod -R 755 /var/run/named/
mas tb nao funcionou!!!pq ele está dando essa mensagem de erro???
aki está o log /var/log/messages
May 21 13:38:20 laboratorio named: inÃcio de named succeeded
May 21 12:38:20 laboratorio named[2797]: starting BIND 9.2.2-P3 -u named -t /var/named/chroot
May 21 12:38:20 laboratorio named[2797]: using 1 CPU
May 21 12:38:21 laboratorio named[2797]: loading configuration from '/etc/named.conf'
May 21 12:38:21 laboratorio named[2797]: no IPv6 interfaces found
May 21 12:38:21 laboratorio named[2797]: listening on IPv4 interface lo, 127.0.0.1#53
May 21 12:38:21 laboratorio named[2797]: listening on IPv4 interface eth0, 192.168.0.1#53
May 21 12:38:21 laboratorio named[2797]: command channel listening on 127.0.0.1#953
May 21 12:38:21 laboratorio named[2797]: running
aki está as configuracoes de alguns arquivos
[root@laboratorio root]# rpm -qa | grep bind
bind-9.2.2.P3-9
ypbind-1.12-3
bind-utils-9.2.2.P3-9
redhat-config-bind-2.0.0-18
bind-chroot-9.2.2.P3-9
[root@laboratorio root]#
[root@laboratorio root]# cat /etc/host.conf
order hosts,bind
[root@laboratorio root]#
[root@laboratorio root]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 laboratorio.com.br laboratorio localhost.localdomain localhost
192.168.0.1 laboratorio.alcimar.com.br alcimar.com.br
[root@laboratorio root]#
[root@laboratorio root]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# VIA Technologies|VT6105 [Rhine-III]
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.255
HWADDR=00:E0:7D:F2:BA8
IPADDR=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
TYPE=Ethernet
[root@laboratorio root]#
aki está os arquivos do named todos em /var/named/ com execao do named.conf que está em /etc/named.conf
named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* 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;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "alcimar.com.br" IN {
type master;
file "alcimar.com.br";
allow-update { none; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "alcimar.com.br.rev";
allow-update { none; };
};
include "/etc/rndc.key";
aki esta o /var/named/alcimar.com.br
$TTL 86400
$ORIGIN alcimar.com.br.
@ 1D IN SOA laboratorio.alcimar.com.br. root.alcimar.com.br (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS laboratorio.alcimar.com.br
1D IN A 192.168.0.1
laboratorio.com.br IN A 192.168.0.1
www IN CNAME laboratorio
aki está o /var/named/alcimar.com.br.rev
$TTL 86400
$ORIGIN 0.168.192.in-addr.arpa.
@ IN SOA laboratorio.alcimar.com.br. root.alcimar.com.br. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS laboratorio.com.br.
aki está o /var/named/localhost.zone
$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS @
1D IN A 127.0.0.1
aki está o /var/named/named.conf
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
o estou fazendo de errado???se alguem puder me ajudar agradeço mto!!!!
ah estou usando Fedora core 1