error de dns,...

Forums: 

hola foro, pues nuevamente aquí dando lata. ahora tengo el siguiente detalle y es en relación a un server dns, las características del sistema en cuanto a programas:

CentOS 4.3 kernell: 2.6.9-34.0.1.EL
bind 9.2.4
bind-utils 9.2.4
bind-libs 9.2.4
bind-chroot 9.2.4
caching-nameserver 7.3

si yo ejecuto:

service named status, me aparece:

rndc: Couldn't find server 'localhost': Name or service not known

[root@mail var]# service named start
named: already running[root@mail var]#

[root@mail var]# killall named
[root@mail var]# killall named
named: no process killed
[root@mail var]#

[root@mail var]# service named status
rndc: Couldn't find server 'localhost': Name or service not known

[root@mail ~]# service named start
Starting named: [ OK ]

con un tail -f /var/log/messages

Jun 23 13:49:23 mail named[3951]: starting BIND 9.2.4 -u named -t /var/named/chroot
Jun 23 13:49:23 mail named[3951]: using 1 CPU
Jun 23 13:49:23 mail named: named startup succeeded
Jun 23 13:49:23 mail named[3951]: loading configuration from '/etc/named.conf'
Jun 23 13:49:23 mail named[3951]: listening on IPv4 interface lo, 127.0.0.1#53
Jun 23 13:49:23 mail named[3951]: listening on IPv4 interface eth0, 172.16.45.2#53
Jun 23 13:49:23 mail named[3951]: command channel listening on 127.0.0.1#953
Jun 23 13:49:23 mail named[3951]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Jun 23 13:49:23 mail named[3951]: zone localhost/IN: loaded serial 42
Jun 23 13:49:23 mail named[3951]: zone doctum.com.mx-zone/IN: loaded serial 2004121327
Jun 23 13:49:23 mail named[3951]: zone pri.45.16.172.in-addr.arpa.zone/IN: loaded serial 2005082607
Jun 23 13:49:23 mail named[3951]: zone doctum.com.mx-zone/IN: loaded serial 2004121326
Jun 23 13:49:23 mail named[3951]: running
Jun 23 13:49:23 mail named[3951]: zone pri.45.16.172.in-addr.arpa.zone/IN: sending notifies (serial 2005082607)

al ejecutar:

[root@mail ~]# service named stop
Stopping named:

me despliega lo siguiente en:

tail -f /var/log/messages

Jun 23 13:27:06 mail kernel: audit(1151087226.359:24): avc: denied { read } for pid=3815 comm="rndc" name="hosts" dev=hda7 ino=59190 scontext=root:system_r:ndc_t tcontext=user_u:object_r:etc_runtime_t tclass=file

esto es malo o bueno??? cómo le podría yoa hacer para que ya no me lo despliege???

gracias.

no indicas lo que te dice

Imagen de Epe

no indicas lo que te dice /var/log/messages

me parece sin embargo (haciendo uso de mi imaginación y adivinación ya que no indicas /var/log/messages) que has borrado una zona que siempre viene por defecto y es la que te permite resolver localhost.

yum erase bind* caching*

yum install bind* caching*

Saludos
epe
--
EcuaLinux.com
Ecuador: +(593) 9 9246504, +(593) 2 3412402
USA: +1 404 795 0321

Saludos
epe

EcuaLinux.com

+(593) 9 9924 6504

Servicios en Software Libre

ah!, ok, les anexo la

ah!, ok, les anexo la secuencia:

[root@mail /]# service named status
rndc: Couldn't find server 'localhost': Name or service not known

[root@mail /]# service named stop
Stopping named:

[root@mail ~]# tail -f /var/log/messages
Jun 23 15:20:15 mail saslauthd[2510]: ipc_init : listening on socket: /var/run/saslauthd/mux
Jun 23 15:20:15 mail saslauthd: saslauthd startup succeeded
Jun 23 15:20:15 mail messagebus: messagebus startup succeeded
Jun 23 15:20:15 mail cups-config-daemon: cups-config-daemon startup succeeded
Jun 23 15:20:16 mail haldaemon: haldaemon startup succeeded
Jun 23 15:20:16 mail rc: Starting webmin: succeeded
Jun 23 15:20:17 mail fstab-sync[2561]: removed all generated mount points
Jun 23 15:20:17 mail fstab-sync[2939]: added mount point /media/cdrom for /dev/hdc
Jun 23 15:20:18 mail fstab-sync[3066]: added mount point /media/floppy for /dev/fd0
Jun 23 15:24:50 mail sshd(pam_unix)[3073]: session opened for user root by root(uid=0)
Jun 23 15:26:01 mail sshd(pam_unix)[3109]: session opened for user root by root(uid=0)
Jun 23 15:26:20 mail kernel: audit(1151094380.184:3): avc: denied { read } for pid=3149 comm="rndc" name="hosts" dev=hda7 ino=59190 scontext=root:system_r:ndc_t tcontext=user_u:object_r:etc_runtime_t tclass=file
Jun 23 15:26:20 mail kernel: audit(1151094380.184:4): avc: denied { read } for pid=3149 comm="rndc" name="hosts" dev=hda7 ino=59190 scontext=root:system_r:ndc_t tcontext=user_u:object_r:etc_runtime_t tclass=file
Jun 23 15:29:03 mail kernel: audit(1151094543.338:5): avc: denied { read } for pid=3158 comm="rndc" name="hosts" dev=hda7 ino=59190 scontext=root:system_r:ndc_t tcontext=user_u:object_r:etc_runtime_t tclass=file
Jun 23 15:29:03 mail kernel: audit(1151094543.338:6): avc: denied { read } for pid=3158 comm="rndc" name="hosts" dev=hda7 ino=59190 scontext=root:system_r:ndc_t tcontext=user_u:object_r:etc_runtime_t tclass=file
Jun 23 15:29:03 mail kernel: audit(1151094543.342:7): avc: denied { read } for pid=3161 comm="rndc" name="hosts" dev=hda7 ino=59190 scontext=root:system_r:ndc_t tcontext=user_u:object_r:etc_runtime_t tclass=file
Jun 23 15:29:03 mail kernel: audit(1151094543.342:8): avc: denied { read } for pid=3161 comm="rndc" name="hosts" dev=hda7 ino=59190 scontext=root:system_r:ndc_t tcontext=user_u:object_r:etc_runtime_t tclass=file

[root@mail /]# service named start
named: already running[root@mail /]#

espero me puedan ayudar,...gracias.

No soy muy partidario del

Imagen de Epe

No soy muy partidario del selinux en estos momentos, no me siento confortable conél.

edita:
/etc/sysconfig/selinux

y ponlo así ambas variables:
SELINUX=disabled
SELINUXTYPE=targeted

ahi reinicia la máquina e intenta nuevamente. Aunque sigo pensando que es la zona localhost que has borrado por error o algo así.
Saludos
epe
--
EcuaLinux.com
Ecuador: +(593) 9 9246504, +(593) 2 3412402
USA: +1 404 795 0321

Saludos
epe

EcuaLinux.com

+(593) 9 9924 6504

Servicios en Software Libre