Current time: 11-16-2024, 06:54 AM Hello There, Guest! (LoginRegister)


Post Reply 
add an ip as name server.
Author Message
tristezo2k Offline
Newbie
*

Posts: 5
Joined: Jun 2011
Reputation: 0
Post: #1
add an ip as name server.
Hello.
when I first installed ispCP, I had just one ip1, and an external DNS server.
Now I'd like to use it as dns server too.
I added ip2 at the OS starting script (debian 6.0.1) so now I have at eth0 and eth0:1 ip1 and ip2 [*1]
I noticed ispCP knows that new ip2 since I see it at
/admin/ip_manage.php
However, when I dig a domain I receive ns1 and ns1 both pointing to ip1 instead ns1 at ip1 and ns2 to ip2
How can I fix this?

*1: is this the correct action to add an IP to ispCP? or should I use the control panel to add it?
Will ispCP modify the OS starting script?

Thanks in advance.
Sebastian
07-05-2011 04:08 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: add an ip as name server.
The secondary DNS server must be set in ispcp's main configuration file (/etc/ispcp/ispcp.conf). Search for a variable named "SECONDARY" (something) in there, and put your new IP as its value.

Thereafter, you will have to regenerate all the configurations so that the new setting is applied.
07-05-2011 07:08 PM
Visit this user's website Find all posts by this user Quote this message in a reply
tristezo2k Offline
Newbie
*

Posts: 5
Joined: Jun 2011
Reputation: 0
Post: #3
RE: add an ip as name server.
(07-05-2011 07:08 PM)kilburn Wrote:  The secondary DNS server must be set in ispcp's main configuration file (/etc/ispcp/ispcp.conf). Search for a variable named "SECONDARY" (something) in there, and put your new IP as its value.

Thereafter, you will have to regenerate all the configurations so that the new setting is applied.
Great, got it here
guia:~# grep -i second /etc/ispcp/ispcp.conf
SECONDARY_DNS =

When I add the IP, what means to regenerate all the configuration?
Like in loosing all the configuration already done? Shy
(This post was last modified: 07-05-2011 11:34 PM by tristezo2k.)
07-05-2011 11:26 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: add an ip as name server.
Like in telling the panel to regenerate all the configuration files (from the database information, so you don't lose anything). Basic procedure:

Code:
# cp /etc/ispcp/ispcp.conf /etc/ispcp/ispcp.old.conf
# cd /var/www/ispcp/engine/setup
# perl ispcp-update
# rm /etc/ispcp/ispcp.old.conf
07-06-2011 12:05 AM
Visit this user's website Find all posts by this user Quote this message in a reply
tristezo2k Offline
Newbie
*

Posts: 5
Joined: Jun 2011
Reputation: 0
Post: #5
RE: add an ip as name server.
(07-06-2011 12:05 AM)kilburn Wrote:  Like in telling the panel to regenerate all the configuration files (from the database information, so you don't lose anything). Basic procedure:

Code:
# cp /etc/ispcp/ispcp.conf /etc/ispcp/ispcp.old.conf
# cd /var/www/ispcp/engine/setup
# perl ispcp-update
# rm /etc/ispcp/ispcp.old.conf

Thanks a lot for the fast response Kilburn.
I will take a snapshot to make sure I have a backout plan,
execute your commands, and get back to report.

Regards,
Sebastian

Great!
It worked like a charm.
guia:/var/www/ispcp/engine/setup# perl ispcp-update

Welcome to ispCP '1.0.7 OMEGA' Update Dialog.

This program will update your current ispCP OMEGA installation on this
server.
Please make sure you did a backup of all your server data.

[NOTICE] During the migration process some or all services might require to
be shut down.

[WARNING] Only services that are not marked with 'NO' in your ispcp.conf
configuration file will be processed by this program.

Do you want to continue ? [Y/n]: y

[NOTICE] Make sure you have read and performed all steps from
docs/distro/INSTALL document (where distro is your linux distribution).

Do you want to continue ? [Y/n/?]: y

Starting ispCP update
* Stopping services: .......... [ Done ]

ispCP main configuration file
* Loading old ispCP configuration file: [ Done ]
* Update ispCP configuration file: [ Done ]
* Check ispCP configuration file: [ Done ]

Pre-installation tasks for Debian
* Postgrey configuration (Updating listening port): [ Done ]

ispCP database
* Update ispCP database schema: [ Done ]

Rebuilding all services configuration files
* ispCP system resolver: [ Done ]
* ispCP crontab file: [ Done ]
* ispCP Bind9 main configuration file: [ Done ]
* ispCP Apache fastCGI modules configuration: [ Done ]
* ispCP Apache main vhost file: [ Done ]
* ispCP Apache AWStats vhost file: [ Done ]
* ispCP Postfix configuration files: [ Done ]
* ispCP Courier-Authentication: [ Done ]
* ispCP ProFTPd configuration file: [ Done ]
* ispCP init scripts: [ Done ]

Rebuilding all GUI configuration files
* ispCP GUI Bind9 configuration: [ Done ]
* ispCP GUI fastCGI/PHP configuration: [ Done ]
* ispCP GUI vhost file: [ Done ]
* ispCP PMA configuration file: [ Done ]

Rebuilding all customers configuration files
* Please wait, this may take some time: [ Done ]

Additional tasks
* ispCP Rkhunter configuration: [ Done ]
* ispCP System cleanup: [ Done ]

Permissions setup
* Set engine permissions: [ Done ]
* Set gui permissions: [ Done ]

Finishing update
* Starting services: .......... [ Done ]


Congratulations, you updated ispCP OMEGA'1.0.7 OMEGA' successfully!

Type http://guia.connectar.com.ar into your browser to log in
to your panel.

seba@guia:~$ dig sincd.com.ar

; <<>> DiG 9.6-ESV-R4 <<>> sincd.com.ar
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47286
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;sincd.com.ar. IN A

;; ANSWER SECTION:
sincd.com.ar. 43200 IN A 200.69.222.88

;; AUTHORITY SECTION:
sincd.com.ar. 43200 IN NS ns2.sincd.com.ar.
sincd.com.ar. 43200 IN NS ns1.sincd.com.ar.

;; ADDITIONAL SECTION:
ns1.sincd.com.ar. 43200 IN A 200.69.222.88
ns2.sincd.com.ar. 43200 IN A 200.69.222.90

Thanks a lot for this great support!
Sebastian.
(This post was last modified: 07-06-2011 12:16 AM by tristezo2k.)
07-06-2011 12:09 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)