Jump to content


Photo

reloading bind?


  • Please log in to reply
2 replies to this topic

#1 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 11 July 2006 - 06:07 PM

I looked in the manual and found a simple script that, I thought, would reload Bind. Well it doesn't. I don't get an error message.

I checked the event viewer and it had nothing about bind reloading.

Here is the script:

<?php
pclose(popen('reload /b C:\windows\system32\dns\bin\rndc.exe', 'r'));
?>

This does nothing. Any suggestions on how I can reload bind?


Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#2 ShogunWarrior

ShogunWarrior
  • Members
  • PipPipPip
  • Advanced Member
  • 528 posts
  • LocationIreland

Posted 11 July 2006 - 07:36 PM

I (imagine) it's : C:\windows\system32\dns\bin\rndc.exe reload /b
<a href="http://www.daviddora...nmedia.com/">My New Site/Blog</a> | <a href="http://www.daviddora...m/check/">Check your page for broken links/images/scripts</a>

Zend Certified Engineer
Follow me on Twitter: http://twitter.com/davidd

#3 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 12 July 2006 - 06:14 AM

<b>The Fix</b>

<?php

$handle = popen( 'C:\windows\system32\dns\bin\rndc.exe reload', 'r');
echo fread( $handle, 4096 );
pclose( $handle );

?>

In windows this will display the message Server Reloaded Successfuly

Thanks

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users