[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] DNS / PHP on RAQ3



Hi Patrick,

> I know that it is possible to add "custom" DNS records to a file
called
> domainname.pri.include under \etc\named. Those records get added to
DNS
> as soon as I save the settings via the Web Control Panel of the RAQ3.
> As we'd like to implement a fully automatic solution, we'd like to
have
> the records read in directly, without having to go to the RAQ control
> panel. Do you know any way of doing this directly in PHP? Writing the

Just run this command:

/usr/admserv/cgi-bin/.cobalt/dns/index.cgi

It will load the records file and create the necessary zonefiles.

> file is easy, but how to tell DNS to add the records? Other solutions
> (Perl, etc.) are also appreciated ...

We've made a system that reads all DNS configuration and zoneinformation
from a MySQL database. Works great, and no textfiles are required...

--
Jens Kristian Søgaard, Mermaid Consulting I/S,
jens@xxxxxxxxxxxxxxxxxxxx,
http://www.mermaidconsulting.com/