Current time: 11-26-2024, 10:00 PM Hello There, Guest! (LoginRegister)


Post Reply 
manually created DNS records being overwritten with template ones
Author Message
kingxerxes Offline
Junior Member
*

Posts: 67
Joined: Dec 2009
Reputation: 0
Post: #1
manually created DNS records being overwritten with template ones
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!
02-02-2010 11:52 PM
Find all posts by this user Quote this message in a reply
scysys Offline
Junior Member
*

Posts: 24
Joined: Jan 2010
Reputation: 0
Post: #2
RE: manually created DNS records being overwritten with template ones
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
(This post was last modified: 02-03-2010 12:35 AM by scysys.)
02-03-2010 12:34 AM
Find all posts by this user Quote this message in a reply
kingxerxes Offline
Junior Member
*

Posts: 67
Joined: Dec 2009
Reputation: 0
Post: #3
RE: manually created DNS records being overwritten with template ones
what do you mean by reload ispCP?
02-11-2010 03:02 AM
Find all posts by this user Quote this message in a reply
kingxerxes Offline
Junior Member
*

Posts: 67
Joined: Dec 2009
Reputation: 0
Post: #4
RE: manually created DNS records being overwritten with template ones
anyone?
02-12-2010 01:09 AM
Find all posts by this user Quote this message in a reply
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #5
RE: manually created DNS records being overwritten with template ones
I think that he mean to rebuild the domains:

http://www.isp-control.net/documentation...ate_config
02-12-2010 09:12 PM
Find all posts by this user Quote this message in a reply
kingxerxes Offline
Junior Member
*

Posts: 67
Joined: Dec 2009
Reputation: 0
Post: #6
RE: manually created DNS records being overwritten with template ones
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 ???
05-02-2010 10:06 PM
Find all posts by this user Quote this message in a reply
kingxerxes Offline
Junior Member
*

Posts: 67
Joined: Dec 2009
Reputation: 0
Post: #7
RE: manually created DNS records being overwritten with template ones
any help please?
05-04-2010 02:55 AM
Find all posts by this user Quote this message in a reply
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #8
RE: manually created DNS records being overwritten with template ones
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 ...
05-04-2010 05:18 PM
Find all posts by this user Quote this message in a reply
kingxerxes Offline
Junior Member
*

Posts: 67
Joined: Dec 2009
Reputation: 0
Post: #9
RE: manually created DNS records being overwritten with template ones
(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!
05-04-2010 10:34 PM
Find all posts by this user Quote this message in a reply
aseques Offline
Member
*****
Dev Team

Posts: 330
Joined: May 2008
Reputation: 4
Post: #10
RE: manually created DNS records being overwritten with template ones
(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.
05-05-2010 12:41 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)