Jump to content

Problem with named (DNS)


red
 Share

Recommended Posts

Would anyone have any idea why I cannot get the "named" service to shutdown and restart.

 

I have tried to uninsall and reinstall but still get the same error. a second attempt at uninstall/reinstall indicates grep nis needed, but grep IS installed.

 

This is my debug info from trying to restart named.

# service -d -f named
+ debug=/bin/bash -x
+ [[ -f = --* ]]
+ [[ -f = -* ]]
+ opt=-f
+ shift
+ fullrestart=yes
+ [[ named = --* ]]
+ [[ named = -* ]]
+ service=named
+ shift
+ options=
+ :
+ [[ -z named ]]
+ [[ -z named ]]
+ [[ -n named ]]
+ [[ -n '' ]]
+ [[ -n named ]]
+ [[ -n '' ]]
+ [[ -z named ]]
+ [[ -n named ]]
+ break
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n yes ]]
+ check_if_inetd named
+ local serv=named
+ [[ ! -f /etc/init.d/named ]]
+ return
+ cd /etc/init.d
+ [[ -f ./named ]]
+ /bin/bash -x ./named stop
+ . /etc/rc.d/init.d/functions
++ TEXTDOMAIN=initscripts
++ TEXTDOMAINDIR=/etc/locale
++ LOCPATH=/etc/locale
++ export TEXTDOMAINDIR LOCPATH
++ umask 022
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
++ export PATH
++ '[' -z '' ']'
+++ /sbin/consoletype
++ CONSOLETYPE=pty
++ '[' -z '' ']'
++ COLUMNS=80
++ '[' -f /etc/sysconfig/i18n -a -z '' ']'
++ . /etc/sysconfig/i18n
+++ LC_MONETARY=en_US
+++ SYSFONT=lat0-16
+++ LC_COLLATE=en_US
+++ SYSFONTACM=iso15
+++ LANG=en_US
+++ LC_MEASUREMENT=en_US
+++ LC_ADDRESS=en_US
+++ LC_CTYPE=en_US
+++ LC_MESSAGES=en_US
+++ LC_TIME=en_US
+++ LC_IDENTIFICATION=en_US
+++ LC_PAPER=en_US
+++ LC_NAME=en_US
+++ LANGUAGE=en_US:en
+++ LC_NUMERIC=en_US
+++ LC_TELEPHONE=en_US
++ '[' pty '!=' pty ']'
++ '[' -z '' ']'
++ '[' -n en_US ']'
++ GP_LANG=en_US
++ '[' -z '' ']'
++ '[' -n en_US:en ']'
++ GP_LANGUAGE=en_US:en
++ '[' -z '' ']'
++ '[' -f /etc/sysconfig/init ']'
++ . /etc/sysconfig/init
+++ BOOTUP=color
+++ RES_COL=65
+++ MOVE_TO_COL=echo -en \033[65G
+++ SETCOLOR_SUCCESS=echo -en \033[1;32m
+++ SETCOLOR_FAILURE=echo -en \033[1;31m
+++ SETCOLOR_WARNING=echo -en \033[1;33m
+++ SETCOLOR_NORMAL=echo -en \033[0;39m
+++ LOGLEVEL=3
+++ PROMPT=yes
++ '[' pty = serial ']'
++ '[' color '!=' verbose ']'
++ INITLOG_ARGS=-q
+ . /etc/sysconfig/network
++ HOSTNAME=firewall
++ NETWORKING=yes
+ '[' yes = no ']'
+ '[' -f /etc/sysconfig/named ']'
+ . /etc/sysconfig/named
+ '[' -f /usr/sbin/named ']'
+ '[' -f /etc/named.conf ']'
+ RETVAL=0
+ prog=named
+ stop
+ gprintf 'Stopping %s: ' named
+ '[' -x /bin/gettext -a -n 'Stopping %s: ' ']'
+ '[' -n en_US ']'
++ LC_ALL=en_US
++ LANGUAGE=en_US:en
++ gettext -e --domain=initscripts 'Stopping %s: '
+ local 'TEXT=Stopping %s: '
+ '[' 'Stopping %s: ' ']'
+ shift
+ printf 'Stopping %s: ' named
Stopping named: + killproc named
+ RC=0
+ '[' 1 -eq 0 ']'
+ notset=0
+ '[' -n '' ']'
+ notset=1
+ killlevel=-9
+ base=named
+ pid=
+ '[' -f /var/run/named.pid ']'
+ '[' -z '' ']'
++ pidof -o 2939 -o 2935 -o %PPID -x named
++ pidof -o 2939 -o 2935 -o %PPID -x named
+ pid=
+ '[' -n '' ']'
+ '[' -n '' ']'
+ failure '%s shutdown' named
+ rc=1
+ gprintf_msg_rest '%s shutdown' named
++ gprintf '%s shutdown' named
++ '[' -x /bin/gettext -a -n '%s shutdown' ']'
++ '[' -n en_US ']'
+++ LC_ALL=en_US
+++ LANGUAGE=en_US:en
+++ gettext -e --domain=initscripts '%s shutdown'
++ local 'TEXT=%s shutdown'
++ '[' '%s shutdown' ']'
++ shift
++ printf '%s shutdown' named
+ GPRINTF_MSG=named shutdown
+ shift 2
+ GPRINTF_REST=
+ '[' -z '' ']'
+ initlog -q -n ./named -s 'named shutdown' -e 2
+ '[' color '!=' verbose -a -z '' ']'
+ echo_failure
+ '[' color = color ']'
+ echo -en '\033[65G'
                                                               + echo -n '['
[+ '[' color = color ']'
+ echo -en '\033[1;31m'
+ gprintf FAILED
+ '[' -x /bin/gettext -a -n FAILED ']'
+ '[' -n en_US ']'
++ LC_ALL=en_US
++ LANGUAGE=en_US:en
++ gettext -e --domain=initscripts FAILED
+ local TEXT=FAILED
+ '[' FAILED ']'
+ shift
+ printf FAILED
FAILED+ '[' color = color ']'
+ echo -en '\033[0;39m'
+ echo -n ']'
]+ echo -ne '\r'
+ return 1
+ return 1
+ RC=1
+ '[' 1 = 1 ']'
+ rm -f /var/run/named.pid
+ return 1
+ RETVAL=1
+ '[' 1 -eq 0 ']'
+ echo

+ return 1
+ exit 1
+ /bin/bash -x ./named start
+ . /etc/rc.d/init.d/functions
++ TEXTDOMAIN=initscripts
++ TEXTDOMAINDIR=/etc/locale
++ LOCPATH=/etc/locale
++ export TEXTDOMAINDIR LOCPATH
++ umask 022
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
++ export PATH
++ '[' -z '' ']'
+++ /sbin/consoletype
++ CONSOLETYPE=pty
++ '[' -z '' ']'
++ COLUMNS=80
++ '[' -f /etc/sysconfig/i18n -a -z '' ']'
++ . /etc/sysconfig/i18n
+++ LC_MONETARY=en_US
+++ SYSFONT=lat0-16
+++ LC_COLLATE=en_US
+++ SYSFONTACM=iso15
+++ LANG=en_US
+++ LC_MEASUREMENT=en_US
+++ LC_ADDRESS=en_US
+++ LC_CTYPE=en_US
+++ LC_MESSAGES=en_US
+++ LC_TIME=en_US
+++ LC_IDENTIFICATION=en_US
+++ LC_PAPER=en_US
+++ LC_NAME=en_US
+++ LANGUAGE=en_US:en
+++ LC_NUMERIC=en_US
+++ LC_TELEPHONE=en_US
++ '[' pty '!=' pty ']'
++ '[' -z '' ']'
++ '[' -n en_US ']'
++ GP_LANG=en_US
++ '[' -z '' ']'
++ '[' -n en_US:en ']'
++ GP_LANGUAGE=en_US:en
++ '[' -z '' ']'
++ '[' -f /etc/sysconfig/init ']'
++ . /etc/sysconfig/init
+++ BOOTUP=color
+++ RES_COL=65
+++ MOVE_TO_COL=echo -en \033[65G
+++ SETCOLOR_SUCCESS=echo -en \033[1;32m
+++ SETCOLOR_FAILURE=echo -en \033[1;31m
+++ SETCOLOR_WARNING=echo -en \033[1;33m
+++ SETCOLOR_NORMAL=echo -en \033[0;39m
+++ LOGLEVEL=3
+++ PROMPT=yes
++ '[' pty = serial ']'
++ '[' color '!=' verbose ']'
++ INITLOG_ARGS=-q
+ . /etc/sysconfig/network
++ HOSTNAME=firewall
++ NETWORKING=yes
+ '[' yes = no ']'
+ '[' -f /etc/sysconfig/named ']'
+ . /etc/sysconfig/named
+ '[' -f /usr/sbin/named ']'
+ '[' -f /etc/named.conf ']'
+ RETVAL=0
+ prog=named
+ start
+ gprintf 'Starting %s: ' named
+ '[' -x /bin/gettext -a -n 'Starting %s: ' ']'
+ '[' -n en_US ']'
++ LC_ALL=en_US
++ LANGUAGE=en_US:en
++ gettext -e --domain=initscripts 'Starting %s: '
+ local 'TEXT=Starting %s: '
+ '[' 'Starting %s: ' ']'
+ shift
+ printf 'Starting %s: ' named
Starting named: + '[' -n '' -a x '!=' x/ ']'
+ daemon named -u named
+ local gotbase= force=
+ local base= user= nice= bg= pid=
+ nicelevel=0
+ '[' named '!=' named ']'
+ '[' -z '' ']'
+ base=named
+ '[' -f /var/run/named.pid ']'
+ '[' -n '' -a -z '' ']'
+ ulimit -S -c 0
+ '[' -n '' ']'
+ '[' color = verbose -a -z '' ']'
+ '[' -r /etc/sysconfig/system ']'
+ grep -q '^LIBSAFE=yes$' /etc/sysconfig/system
+ '[' -z '' ']'
+ initlog -q -c 'named -u named'
+ rc=0
+ '[' 0 = 0 ']'
+ success '%s startup' named
+ gprintf_msg_rest '%s startup' named
++ gprintf '%s startup' named
++ '[' -x /bin/gettext -a -n '%s startup' ']'
++ '[' -n en_US ']'
+++ LC_ALL=en_US
+++ LANGUAGE=en_US:en
+++ gettext -e --domain=initscripts '%s startup'
++ local 'TEXT=%s startup'
++ '[' '%s startup' ']'
++ shift
++ printf '%s startup' named
+ GPRINTF_MSG=named startup
+ shift 2
+ GPRINTF_REST=
+ '[' -z '' ']'
+ initlog -q -n ./named -s 'named startup' -e 1
+ '[' color '!=' verbose -a -z '' ']'
+ echo_success
+ '[' color = color ']'
+ echo -en '\033[65G'
                                                               + echo -n '['
[+ '[' color = color ']'
+ echo -en '\033[1;32m'
+ gprintf '  OK  '
+ '[' -x /bin/gettext -a -n '  OK  ' ']'
+ '[' -n en_US ']'
++ LC_ALL=en_US
++ LANGUAGE=en_US:en
++ gettext -e --domain=initscripts '  OK  '
+ local 'TEXT=  OK  '
+ '[' '  OK  ' ']'
+ shift
+ printf '  OK  '
 OK  + '[' color = color ']'
+ echo -en '\033[0;39m'
+ echo -n ']'
]+ echo -ne '\r'
+ return 0
+ return 0
+ unset LD_PRELOAD
+ return 0
+ RETVAL=0
+ '[' 0 -eq 0 ']'
+ touch /var/lock/subsys/named
+ echo

+ return 0
+ exit 0
+ exit 0

 

Webmin indicates that the status of named is unknown and cannot restart ot shut it down. Drak config shows it is running but it is not doing anything.

 

Thanks for the help.

 

RED

Edited by red
Link to comment
Share on other sites

Thanks,

 

I am concerned with the indicated failure on the shutdown of the service before it is restarted and the fact that Webmin does not know for certain if it is running, and that Mandrake Dontrol Center indicates it is.

 

Also, since then I have again attempted to uninstall and re-install the BIND and name-caching server and receive errors that grep is needed. Grep is installed! Any thoughts on how to get this reinstalled?

 

Also, if uninstalling BIND leaves any files behind, what files should I manually delete if any to be sure a bad file is not being left behind somewhere and causing a problem.

 

Thanks,

 

RED

Link to comment
Share on other sites

Well,

 

A bit more information.

 

Appearantly even though the "named" service indicates it has started OK, it is not.

 

A. Running nslookup from a client machine indicates no response from the server.

 

B. Bind configuration section of Webmin still shows "Start Name Server" instead of "Apply Changes" as it did when functioning.

 

I ask again..can anyone point me in the right direction with "default" or "as installed" files that may assist in getting this back up and running?

 

Thanks,

 

RED

Link to comment
Share on other sites

Thanks.

 

uninstalled using mandrake CP.

 

checked all files and deleted those that were not deleted by the uninstall.

 

reboot

 

reinstall.

 

All symptoms the same, still no response from server with nslookup and restart command still indicates the exact same failure when stopping the service and OK to its restart.

 

Still getting error that grep in needed for re install of name-caching server. Could this somehow be linked to the shutdown of the "named" service?

 

also, I used to have 2 bind icons in webmin bind 4 and bind 8. Now I only have bind 8, though I never did anything with the configuration of the bind 4.

 

Additional thoughts welcome.

 

thanks

 

RED

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...