Jump to content

creating subdomains in php


lifeisbeautiful

Recommended Posts

At a guess I'd say you will have to handle your BINDS conf with php

 

$bind = file_get_contents(/usr/bind/whateveritis.conf);

 

Then find out what needs to be added to the conf

 

Once you know, use php to add the domain the the conf build, then write it to the conf

 

Warning though, any mistakes and bind will 'break'

 

Thats the best way I can think of, but almost certainly you will have to interact with DNS server conf in raw format

Archived

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

×
×
  • Create New...

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.