ispCP - Board - Support
manually created DNS records being overwritten with template ones - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: manually created DNS records being overwritten with template ones (/thread-9484.html)



manually created DNS records being overwritten with template ones - kingxerxes - 02-02-2010 11:52 PM

hi there,
I have installed webmin on my ispCP box so that i can manually modify MX records for some domains as mail for these domains needs to go to a different server. i have also manually created some A records for these domains.

the problem is that whenever i create a subdomain through the control panel, all the changes i make are lost as the default domain template is reloaded.

is there a way to stop the template being reloaded every time, and if not - is there another way to create and modify these records?

i am running version:

ispCP 1.0.2 OMEGA
build: 20090821
Codename: Priamos

thanks a lot!


RE: manually created DNS records being overwritten with template ones - scysys - 02-03-2010 12:34 AM

Yes look at /etc/ispcp/bind/parts or just modify the working templates under /etc/ispcp/bind/working

There are the templates for ispcp. after changes reload ispcp


RE: manually created DNS records being overwritten with template ones - kingxerxes - 02-11-2010 03:02 AM

what do you mean by reload ispCP?


RE: manually created DNS records being overwritten with template ones - kingxerxes - 02-12-2010 01:09 AM

anyone?


RE: manually created DNS records being overwritten with template ones - aseques - 02-12-2010 09:12 PM

I think that he mean to rebuild the domains:

http://www.isp-control.net/documentation/doku.php?id=howto:ispcp:regenerate_config


RE: manually created DNS records being overwritten with template ones - kingxerxes - 05-02-2010 10:06 PM

When editing the file in working aka

domainname.db and then rebuilding the configuration it goes back to how it was before.

What am I missing ???


RE: manually created DNS records being overwritten with template ones - kingxerxes - 05-04-2010 02:55 AM

any help please?


RE: manually created DNS records being overwritten with template ones - aseques - 05-04-2010 05:18 PM

To have custom DNS you have to do this way:
1.- Edit /etc/ispcp/bind/parts/db_e.tpl
2.- Comment with ; the lines you want to custom (in your case the mx servers)
3.- You have to create the mx servers for EVERY domain in your system (you could use the CLI in http://www.isp-control.net/forum/thread-4255.html because i doesn't work from the panel)
4.- This should be working and permanent now ...


RE: manually created DNS records being overwritten with template ones - kingxerxes - 05-04-2010 10:34 PM

(05-04-2010 05:18 PM)aseques Wrote:  To have custom DNS you have to do this way:
1.- Edit /etc/ispcp/bind/parts/db_e.tpl
2.- Comment with ; the lines you want to custom (in your case the mx servers)
3.- You have to create the mx servers for EVERY domain in your system (you could use the CLI in http://www.isp-control.net/forum/thread-4255.html because i doesn't work from the panel)
4.- This should be working and permanent now ...

So essentially If I want to customise the A record on 1 domain I have to:

1. Make all domains have a custom A record
2. set all records on other domains to what they were before
3. set the record on the domain I wanted to change originally?

If so then that seems like a really bad design!


RE: manually created DNS records being overwritten with template ones - aseques - 05-05-2010 12:41 AM

(05-04-2010 10:34 PM)kingxerxes Wrote:  
(05-04-2010 05:18 PM)aseques Wrote:  To have custom DNS you have to do this way:
1.- Edit /etc/ispcp/bind/parts/db_e.tpl
2.- Comment with ; the lines you want to custom (in your case the mx servers)
3.- You have to create the mx servers for EVERY domain in your system (you could use the CLI in http://www.isp-control.net/forum/thread-4255.html because i doesn't work from the panel)
4.- This should be working and permanent now ...

So essentially If I want to customise the A record on 1 domain I have to:

1. Make all domains have a custom A record
2. set all records on other domains to what they were before
3. set the record on the domain I wanted to change originally?

If so then that seems like a really bad design!
1. Make all domains have THAT custom A record (for example mail or www)
That's exactly what you have to do.
Keep in mind that the DNS stuff it's quite recent, so it has bugs and all that, if you prefer, you can edit the templates by hand, but that's more delicate and might get screwed.
If you are using the domain_dns.php then this process of creation can be scripted.