Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

According to the manpage, the option -v will report the version number. But when I use /etc/init.d/named -v it outputs the following:

Usage: /etc/init.d/named {start|stop|status|restart|condrestart|reload|probe}

I am using CentOS 5.7 on a VPS, with WHM/cPanel.

share|improve this question
    
To be specific, scripts in /etc/init.d are startup scripts for the services, so what you did was pass the "-v" option to the script. The script obviously doesn't understand the "-v" option. If you didn't already have the answer from Mike, you can read the script to see what the actual executable being called from the script would be. –  cjc Jan 20 '12 at 15:56

2 Answers 2

up vote 7 down vote accepted

that is how you start bind via the init.d script.. not the binary itself

/usr/sbin/named -v
share|improve this answer

Mike's answer will work. Also: yum info packagename will tell you about any package, just replace packagename with the piece of software you'd like to learn about.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.