Jump to content

Archived

This topic is now archived and is closed to further replies.

tomfmason

reloading bind?

Recommended Posts

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:

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

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

Share this post


Link to post
Share on other sites
<b>The Fix</b>

[code=php:0]<?php

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

?>[/code]

In windows this will display the message [b]Server Reloaded Successfuly[/b]

Thanks

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.