[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] RE: DNS SCript
on 6/5/00 9:52 AM, Moritz Julian Ehlenz | M2Soft Systemhaus GbR at
mjehlenz@xxxxxxxxxx wrote:
> Hi,
>
>> Hi! You can automate this step by doing:
>> system("/etc/rc.d/init.d/named restart");
>
> I have almost exactly this line in my script, but it doesn't seem
> to work!? Maybe I am just stupid. I'll check that again...
This will restart BIND. Howerver, I feel this is probably not how to
accomplish what it is you are trying to accomplish.
Try
/usr/sbin/ndc reload
This will reload the named.conf file, as well as all the zone files.
>> Also, i have a question. In your script to add teh DNS entry,
>> what does the line look like for the SOA in the pri.domain entry?
> Well, I am not generating the pri.domain-files myself. Right now
> I just click on save changes in the Cobalt interface. But there has
> to be a way to automate this, too.
Yes, there is a way, if you check the archives its in there from someone (I
think it was from Will Dehaan. I was mentioning that I wrote a perl script
that makes the 'basic' records i.e. ftp, mail, etc. into the records file.
And he posted how to have the Cobalt script re-parse the records file and
build the bind config files.
-k