#1 (permalink)  
Old 07-18-2009, 02:09 PM
Registered User
 
Join Date: Sep 2005
Posts: 14
Branko is on a distinguished road
prednsadmin

I've found that /usr/local/cpanel/whostmgr/bin/dnsadmin (script responsible for dns zone manipulating) have by default included execution of /var/cpanel/prednsadmin if it exists.

I don't want to mess with dnsadmin script since it will be possibly overwritten via upcp if it should be updated with new features from cpanel.

Anyway, what I want to do is put some custom code in prednsadmin script and depending of the outcome of those checks I would like it to stop or pass the dnsadmin script upon let's say creating new dns zones.

To be more specific. In certain cases i don't want to allow creation/updates of dns zones via cpanel or whm. I want this script to stop it with some error codes.

Question is, is this even possible trough prednsadmin script or should I turn my eyes to modifying a dnsadmin script?

Tnx.
__________________
http://toic.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-20-2009, 10:41 AM
cpanelkenneth's Avatar
cPanel Quality Assurance
 
Join Date: Apr 2006
Posts: 3,222
cpanelkenneth is on a distinguished road
If your prednsadmin script exits with a non-zero value then the remainder of dnsadmin will not run. So yes, you can use /var/cpanel/prednsadmin to short-circuit dnsadmin.
__________________
cPanel Kenneth
cPanel QA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:51 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc