View Single Post
  #2  
Old 23rd August 2005, 21:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,202
Thanks: 829
Thanked 5,420 Times in 4,262 Posts
Default

Quote:
Originally Posted by jnoble
Hello, How do I add records the the default dns record?

I.E.

I want the MX ftp. mail. webmail. and such added in when I create a domain.

I tried adding it to the following file.

/root/ispconfig/isp/conf/named.conf.master

//// MAKE MANUAL ENTRIES BELOW THIS LINE! ////
ftp A ftp.{DOMAIN}


----

that did not work. The help is appriciated.

If you want to make entries in the template, that should be parsed like the {DOMAIN} placeholder, they must be above the line
//// MAKE MANUAL ENTRIES BELOW THIS LINE! ////.
But they wont show up in the interface and may be added accidently twice. The correct way would be to extend the PHP scripts, in this case the script:
/home/admispconfig/lib/classes/ispconfig_isp_isp_dns.lib.php
In line 231 - 291 you can see how the default MX is added when "Default MX" is activated under Management > Server > Settings
Reply With Quote