[HowTo] Changing DNS template to have more NS servers per domain - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Contributions Area (/forum-40.html) +--- Forum: Howtos (/forum-41.html) +--- Thread: [HowTo] Changing DNS template to have more NS servers per domain (/thread-3213.html) |
[HowTo] Changing DNS template to have more NS servers per domain - rsmithgs - 05-05-2008 06:18 PM This quick howto goes through adding more Name Servers to the DNS template. When you create a new domain it will add more NS servers to the DNS record. As usual, its a good idea to make a backup of the file we are about to change. Quote: cp /etc/ispcp/bind/parts/db_e.tpl /etc/ispcp/bind/parts/db_e.tpl.old Now edit the db_e.tpl file. Quote: nano /etc/ispcp/bind/parts/db_e.tpl By default your db_e.tpl file looks like this: Quote:$TTL 12H Under line 14 where it says Quote: IN NS ns2.{DMN_NAME}.Add new lines for the Name Servers. i.e. Quote: IN NS ns3.{DMN_NAME}.Now further down you will see: Quote:ns1 IN A {BASE_SERVER_IP}Below the ns2 line, add new lines for your NameServers. i.e. if your nameservers 3 and 4 have IPs 1.2.3.5 and 1.2.3.6: Quote:ns3 IN A 1.2.3.5 Now I like to use CNAMES for my Name Server entries incase the IP address of the Name Servers change it saves alot of hassle. So I would change: Quote:ns1 IN A {BASE_SERVER_IP} To something like: Quote:ns1 IN A {BASE_SERVER_IP} Any new domains you create now will have a record with the new nameservers in. For this change to effect previously created domains regenerate the config using the guide at http://www.isp-control.net/documentation/howto/ispcp/regenerate_config And there is a Howto on building slave nameservers somewhere on this site I could can't remember where. EDIT: The howto on building another nameserver is http://www.isp-control.net/documentation/frequently_asked_questions/how_do_i_configure_my_other_nameserver Please note I accept no responsibility for your setup breaking due to the use of this document. No warranty included. Please note I'm able to use cname records because my dns for the domain my servers are on is hosted on seperate DNS servers to ISPCP RE: Changing DNS template to have more NS servers per domain - Yhetti - 06-07-2008 03:09 AM Is there a way to do this with variable expansion in ispcp.conf that won't break during upgrades? I don't like the idea of hardcoding the the tertiary IP into the templates since it breaks configuration best practices etc etc bla bla. Where does the variable expansion on ispcp.conf take place? |