ispCP - Board - Support
Dns take local ip - 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: Dns take local ip (/thread-11616.html)

Pages: 1 2


Dns take local ip - miza - 09-08-2010 05:29 AM

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.


RE: Dns take local ip - joximu - 09-08-2010 06:55 AM

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


RE: Dns take local ip - miza - 09-08-2010 07:18 AM

(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;


RE: Dns take local ip - gOOvER - 09-08-2010 03:45 PM

(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


RE: Dns take local ip - joximu - 09-08-2010 05:08 PM

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


RE: Dns take local ip - Nuxwin - 09-08-2010 10:02 PM

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.


RE: Dns take local ip - miza - 09-09-2010 04:27 AM

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


RE: Dns take local ip - Nuxwin - 09-09-2010 04:45 AM

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.


RE: Dns take local ip - miza - 09-09-2010 05:45 AM

Thx u for ur help, i edit the template and works great now Big Grin.


RE: Dns take local ip - fluser - 11-07-2010 06:44 AM

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