Restarting Bind via ASP
Stanley Liu
stanley.liu at tmca.com.au
Wed Sep 29 23:54:19 UTC 1999
<Self-Indulgence>
I just love this newsgroup concept. No wonder Internet took off like a
rocket. In regard to DNS & BIND, I am just a novice in every sense of the
word. But voila, I am contributing to this newsgroup!!
</Self-Indulgence>
I use ADSI & ASP to "bounce" BIND for NT (DNS.asp):
<%
DNSNetbiosName = "DNS1"
%>
<html>
<header>
<title>Bounce <%=DNSNetbiosName%>
</title>
</header>
<body>
<%
Set oService = GetObject("WinNT://" & DNSNetbiosName & "/DomainNameService")
If request.form("StartDNS")="Start" Then
oService.start
Response.write(DNSNetbiosName & " has been started")
End If
If request.form("StopDNS")="Stop" Then
oService.stop
Response.write(DNSNetbiosName & " has been stoped")
End If
Set oService=nothing
%>
<form method="POST" action="DNS.asp">
<p>DNS1 <input type="submit" value="Start" name="StartDNS"> <input
type="submit" value="Stop" name="StopDNS"></p>
</form>
</body>
</html>
/stanley
stanley.liu at tmca.com.au
Castro Henry wrote:
> I've been running Bind on NT for a while now, and the way I do my admin
> stuff is:
> 1. Map the BIND directory from the server the my workstations for file
> Edits
> 1a. Run H2N using RCMD(which gives me Command line access on the server
> from my Workstation, it's like being there!)
> 2. Stop and restart DNS via the Service menu. (This can be done
> remotely with Server Manager which come in the Resource kit)
> 3. Monitor for fallout errors via the Event Viewer
> Works great!!!!
>
> Henry Castro
> WAN Admin
>
> > -----Original Message-----
> > From: Justin Scott [SMTP:leviathan at darktech.org]
> > Sent: Tuesday, September 28, 1999 10:58 PM
> > To: comp-protocols-dns-bind at moderators.isc.org
> > Subject: Re: Restarting Bind via ASP
> >
> > > I will be doing a web administration script using ASP for BIND running
> > > on an Windows NT Server. I understand that everytime records are
> > > changed, BIND has to be restarted manually via a graphic user interface
> > > in order for it to re-read the records.
> > >
> > > May I know if there are any ways I can do this restarting via ASP?
> >
> > I do some remote DNS admin on my server via Cold Fusion. I actuallt
> > have a perl file with this command that reloads the server...
> >
> > system "ndc reload"
> >
> > As far as I know, most of the Win32 ports include ndc to start, stop,
> > reload, etc.
> >
> > -Justin Scott aka Leviathan
> > Server Admin, Dark Technologies
> > http://www.darktech.or
More information about the bind-users
mailing list