can79 
			0  
	
		
			
RE: Custom DNS server  
				I have a solution for custom NS records. (based on ispCP 1.05)
I think dev team can improve.
NOTE.
After you customize for each domain you have to create A records and NS records
So there is no longer automatically ns records created.
advantage is that you can yourself edit ns records for each domain.
This will only a tip for dev team.
I do not support on pm. and you are responsible for errors.
before you start. make backup
it works as follows;
Change /etc/ispcp/bind/parts/db_e.tpl and /etc/ispcp/bind/parts/db_master_e.tpl as follows
Code:
$TTL 12H
 
 Change in /var/www/ispcp/gui/client/dns_edit.php following lines.  
 next line  
Code:
$DNS_allowed_types = array('A','AAAA','SRV','CNAME','MX');
 
to
Code:
$DNS_allowed_types = array('A','NS','AAAA','SRV','CNAME','MX');
 
 next  
Code:
function decode_zone_data($data) {
 
 to  
Code:
function decode_zone_data($data) {
 
 next  
Code:
switch ($_POST['type']) {
 
 to  
Code:
switch ($_POST['type']) {
 
 next  
Code:
list(
 
 to  
Code:
list(
 
 next  
Code:
$tpl->assign(
 
 to  
Code:
$tpl->assign(
 
 next  
Code:
$tpl->assign(
 
 to  
Code:
$tpl->assign(
 
 Change in /var/www/ispcp/gui/themes/omega_original/client/dns_edit.tpl following lines.  
 next  
Code:
function dns_show_rows(arr_show) {
 
 to  
Code:
function dns_show_rows(arr_show) {
 
 next  
Code:
function dns_type_changed(value) {
 
 to  
Code:
function dns_type_changed(value) {
 
 next  
Code:
<tr id="tr_dns_ip_address">
 
 to  
Code:
<tr id="tr_dns_ip_address">
 
yup I can now manage manual ns records
see my edited files
			
Attached File(s) custom_ns_record.zip  (Size: 8.75 KB / Downloads: 12)