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


Post Reply 
Dns take local ip
Author Message
miza Offline
Junior Member
*

Posts: 14
Joined: Sep 2010
Reputation: 0
Post: #1
Dns take local ip
I have setup ispcp panel on a Debian lenny
I have set fqdn: lame.lamezor.gr
At the system network ip i pressed enter to take the default(local:192.168.1.146)
At panel domain set: admin.lamezor.gr

I go in the my provider's dns panel and set ns1.lamezor.gr, ns2.lamezor.gr to my external ip. When i after some hours tried to dig lamezor.gr i saw that the domain lamezor has taken my local ip ,not the exteral..
What can i do to resolve this?

P.S: i tried to set at system network ip my external but then i cant access the panel.
09-08-2010 05:29 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Dns take local ip
problem is:

the dns (of ispcp) needs the external ip, the apache needs the internal ip.

ispcp is not (yet?) made for running behind a nat router.

You can change the ip in the dns templates - just write the external ip there (instead of a placeholder). then "change" the domains... this should change the zone files.

Otherwiese you need to run the dns somewhere else - and point everything to your external ip. Then you can use the mail, apache, mysql - but not the dns on ispcp...

/J
09-08-2010 06:55 AM
Visit this user's website Find all posts by this user Quote this message in a reply
miza Offline
Junior Member
*

Posts: 14
Joined: Sep 2010
Reputation: 0
Post: #3
RE: Dns take local ip
(09-08-2010 06:55 AM)joximu Wrote:  You can change the ip in the dns templates - just write the external ip there (instead of a placeholder). then "change" the domains... this should change the zone files.

/J

I would like to see in the feutere somethin automatic for this.
Anyway could you explain to me how could i do this solution;
09-08-2010 07:18 AM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #4
RE: Dns take local ip
(09-08-2010 07:18 AM)miza Wrote:  
(09-08-2010 06:55 AM)joximu Wrote:  You can change the ip in the dns templates - just write the external ip there (instead of a placeholder). then "change" the domains... this should change the zone files.

/J

I would like to see in the feutere somethin automatic for this.
Anyway could you explain to me how could i do this solution;

This is no feature ispCP needs. ispCP is designed to manage a real Webserver in i Real Co-Location Wink
09-08-2010 03:45 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #5
RE: Dns take local ip
Hi gOOvER,
I also thought like this - until I saw an ISP who kept all servers behind a firewall - obviously using private adresses... but every server has also it's own public address (the firewall/router translates - so it's a more general NAT than the "normal" home solution)

But I also saw the disadvantages with this solution... so I still think it's not needed. Nevertheless when the DNS manager in ispcp is ready then this should also be solved...
(then you can assign the public ip to the hosts...)

/J
09-08-2010 05:08 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Nuxwin
Unregistered

 
Post: #6
RE: Dns take local ip
Hello ;

I agreed with both here.

Anayway, for the future, It's easy for us to add specific placeholder for the bind templates with new parameters in the ispcp.conf. This last week, I've provided support for a client that use ispCP behind a router. The changes are very easy.
09-08-2010 10:02 PM
Quote this message in a reply
miza Offline
Junior Member
*

Posts: 14
Joined: Sep 2010
Reputation: 0
Post: #7
RE: Dns take local ip
I have set the ispcp on a server at home for practicing, because in the near future, i ll set up it in a dedicated. Can i solve my problem with dmz?
Thx for the answers Smile
09-09-2010 04:27 AM
Find all posts by this user Quote this message in a reply
Nuxwin
Unregistered

 
Post: #8
RE: Dns take local ip
Re ;

The easy way to fix this is to do like this:

In each /etc/ispcp/bind/parts/* template files, replace the placehoder (for ip) by your public ip and then, rerun the /var/www/ispcp/engine/setup/ispcp-update script.
09-09-2010 04:45 AM
Quote this message in a reply
miza Offline
Junior Member
*

Posts: 14
Joined: Sep 2010
Reputation: 0
Post: #9
RE: Dns take local ip
Thx u for ur help, i edit the template and works great now Big Grin.
09-09-2010 05:45 AM
Find all posts by this user Quote this message in a reply
fluser Offline
Documentation Team
***
Docu Team

Posts: 246
Joined: May 2010
Reputation: 1
Post: #10
RE: Dns take local ip
Hello

It worked perfect! I ran the following:
Code:
sed -i "s/{DMN_IP}/***.***.***.***/g" /etc/ispcp/bind/parts/*
sed -i "s/{BASE_SERVER_IP}/***.***.***.***/g" /etc/ispcp/bind/parts/*
sed -i "s/{SECONDARY_DNS_IP}/***.***.***.***/g" /etc/ispcp/bind/parts/*

After a restart of the server, all was ok. It was a fresh installation, so
I didn't run /var/www/ispcp/engine/setup/ispcp-update
May I have trubles in future with ISP Control? Because it was a fresh installation of ISP Control, so I thougt, that it should work out of the box with this customisation.

BTW: Can I put this into the Howto? I searched nearly one hour till I found this solution. I think it would be nice for others. Wink

Best Regards
Fluser
(This post was last modified: 11-07-2010 06:44 AM by fluser.)
11-07-2010 06:44 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)