Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Subdomain problem: Solution, Q & A
#1
<strong>Question:</strong>

Hi, well first of all THANKS ehcp is way too good to be true!
Well, my problem is: I just had a linode vps (linode.com), then I installed ehcp and domains are working correctly and I had already configured google apps for one of them. Linode uses a DNS manager for each VPS so I think I have now 2 DNS to configure: Linode's and ehcp's.

I want to add the hpanel domain to one of the ehcp's hosted domains: http://hpanel.devxxxx.com/ (devxxxx.com is a domain under ehcp control) but I only get a 404. I added an A record to Linode's DNS configuration for devxxxx.com (each domain I add in ehcp I'm adding it to Linode's DNS Manager):
hpanel A 72.xx.yy.24

and I just add a subdomain in ehcp for that domain called hpanel.
But I still get a 404.
Do you have any ideas why?

Thanks a lot.



<strong>Answer:</strong>

Thank you for your good wishes.

First of all, in fact, you dont need to manage two dns's at the same time.
There are two ways, you either manage linode dns manager or ehcp dns manager.
1-You redirect all your domains to ehcp server ip (you set dns of your domains as pointed to your server ip), then manage dns in ehcp. In fact, as long as you don do something custom, special, in ehcp, you dont need to manually manage dns; ehcp automatically manage dns as you set up domains and subdomains.
2- Or, You manage dns only in linode dns manager; then you don't need to do anything special in ehcp.

Managing two dns's simultaneously is not a good idea and is a hard work.


Second, as i noticed, the A record that you add is some wrong.. maybe you misspelled here, while posting. Actually it should be:
hpanel IN A 72.xx.yy.24

After setting correct dns entry in linode dns manager,
add a subdomain in ehcp. Then, after 10 sec, your subdomain should be accessible there... if:
1- your ehcp daemon runs, (if not, you should get a warning in your ehcp gui), if everything went fine, you may look at logs with: "tail -f /var/log/ehcp.log" in console
2- you are at different network with your server. If you are in same internal network as your server, you need some more configuration; for linode.com i think, you are outside of linode network Smile

try looking at logs,
then lets try to figure out together..


Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#2
Hey ehcpdeveloper,

Thanks a lot!!!
Right now its working.
I think I'm still using two dns (linode's and ehcp's) but they're not conflicting, and I'd love to move to a single-dns administration, but, if the linode's DNS is not optional, should I add MX, A and CNAME record for each domain as * (wildcard)?

Example:
domain: example.net
DNS Render:
; example.net [35681]
$TTL 86400
@ IN SOA nsX.linode.com. ricardoe.example.net. ( ...numbers... )
@ NS X.linode.com.
@ NS XX.linode.com.
@ NS XXX.linode.com.
@ NS XXXX.linode.com.
@ A 72.xx.yy.24
@ MX 10 *.withjquery.com.
* A 72.xx.yy.24
* CNAME 72.xx.yy.24

This would allow me to manage all the subdomain, MX records and redirections from ehcp's bind?
I ask this because the last days I've been adding subdomains with ehcp to example.net but they don't work until I add the subdomain as a A record in Linode's DNS, so I suppose I've to bypass Linode's DNS first and then manage the ehcp's DNS (bind) right?

Thanks a lot for ehcp, I hope you don't get mind I'm tweaking a little the php code to use Linode's API to add subdomains on-the-fly.

Regards from México

Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#3
You should have following dns at least for each domain in linode's dns:
<code>
{domainname}. IN A 72.xx.yy.24
mail.{domainname}. IN A 72.xx.yy.24
www.{domainname}. IN CNAME {domainname}.
{domainname}. IN MX 10 mail.{domainname}.
* IN A 72.xx.yy.24

</code>

The last * line handles all subdomains, So, you dont need to add each subdomain to linode's anymore.
You can only setup subdomain in ehcp.

I again write here that, managing dns separately in ehcp is not required mostly. ehcp manages dns automatically as you setup domains and subdomains (maybe you know, but i write for everyone who reads this)...

And your twaking:
I would be happy if you tweak the code and use it at your own needs. This is opensource and changing code, improving or tweaking is higlhly encouraged.
We would be happy also if you write here the tweak that you do, so that maybe other people may also use the same, or we may look into and make your code better, or make suggestions...

Last:
Maybe to hide your real ip is a good way to handle security risks... on these public forums..

See you.

Restored from old drupal forum, for user uid:2658 username:ricardoe
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping