TurnKey Linux Virtual Appliance Library

TurnKey Domain management & Dynamic DNS

A while ago I was chatting with Liraz and said "wouldn't it be great if when launching a cloud server the Hub would perform some magic and assign the server a friendly name? I'm tired of remembering IP addresses, and logging into our DNS management console to setup records."

Then we thought, "lets make DNS easy, lets make it TurnKey". So we did...

No matter your use case, we got you covered:

Custom domains

Alice uses the Hub to launch and manage her cloud servers. Every time she sets up a new server, she needs to navigate to her DNS management console, log in, go back to the Hub to get the servers IP address, switch back to the DNS console, and setup the appropriate records to point to her server (e.g., www.example.com -> 89.231.194.85).

Not so bad, thats how everyone does it, right? Not anymore!

We have just released new DNS features in the TurnKey Hub. Not only can you now manage your DNS settings using a crisp user interface right in the Hub, backed by the awesomeness of Amazon's Route53 highly available and scalable Domain Name System, but because the Hub also manages your cloud servers, the two systems are tightly integrated.

Hub Domain Management

For example, when launching a cloud server, you specify the hostname to associate with your new server, and as soon as your server is running, the DNS records will be automatically created/updated accordingly. You can also associate a hostname with a running server right from the server listing.

Associate domain

But wait, there's more! Don't want to use Elastic/Static IP's with your cloud servers? Do you manage a server behind a dynamic IP address? We got you covered - see Dynamic DNS below.

Are you using the Hub API to programmatically launch your servers? Do you use launch another server like this one, or launch this backup in the cloud? We got your covered there as well...

TKLAPP.com

Bob, unlike Alice, doesn't own a domain name, so why should he be a second class citizen and not get all these cool new features? He too is tired of remembering IP addresses and sharing them with his friends. He wants an easy to remember name as well.

Enter TKLAPP.com! TKLAPP.com hostnames and available to all Hub users, and they're free! Because there is a limited name space, they are available on first-come-first-serve basis, so go grab your own vanity name (or names) before someone else does.

Launch associate domain

DNS names aren't just user friendly, they are sometimes required. For example, appliances which use domain preseeding (such as WordpressMagento, StatusNet, ejabberd) will now be fully configured and ready to rock right off the bat.

Dynamic DNS

And we didn't forget about Charlie either, who might be running TurnKey on his own hardware, in a VM or at a hosting provider that supports TurnKey. And given the state of free Dynamic DNS services out there, we created HubDNS.

HubDNS is the TurnKey Dynamic DNS client. It supports both custom domains as well as the free TKLAPP.com domain. It's also super simple to set up:

apt-get update
apt-get install hubdns

hubdns-init HUB_APIKEY foo.tklapp.com
hubdns-update
chmod +x /etc/cron.hourly/hubdns-update  # automatic hourly updates

BTW, HubDNS should work without issues on any Debian/Ubuntu based system. Full installation and usage documentation is available here.

Thoughts, comments, feature requests?

You can get future posts delivered by email or good old-fashioned RSS.
TurnKey also has a presence on Google+, Twitter and Facebook.

Comments

Jeremy's picture

This is almost too cool Alon!

One word: AWESOME!

I've just had a quick look and this is incredible! I just launched a cloud server with an associated tklapp.com domain name in minutes. I then logged in and it all just works (as it should I guess but still I'm amazed how easy it all is). Almost too easy!

TKL is fantastic for my work and it just keeps getting better with all the features that you guys keep adding. I have the TKL Fileserver with all the important work files on it; with TKLBAM I get auto backups and now with the new Hub features if I need to restore a file easily offsite, or in the event the hardware dies, or something else nasty, it'll all be available anywhere, anytime and so easily that even my boss could do it himself (if I let him!)

Feedback: The only thing I think you may need to consider is the option to edit the domain name when you "Launch a new server like this one". Obviously if you are launching a server the same as one you've terminated you'll probably want the same domain, but if you are launching second or subsequent one you'll want a new domain name.

Alon Swartz's picture

Glad you like the new features...

You also raised an excellent point regarding "launch a new server like this one", I'll fix that...

Alon Swartz's picture

Implemented

I updated the "launch a new server like this one" to display the domain field, with preset values of the original hostname/domain. It will display the availability status when the page loads (Available, Not available, or a warning that it is currently assigned to Server X).

And of course, you can change it if you like...

Jeremy's picture

A question / more feedback...

How does the allocation of the tklapp.com names work? Let me explain my question a little more:

If I use a name such as jed (ie jed.tklapp.com) for a server launched through the Hub, then that name is obviously going to be no longer available. So in effect while the server is running I'm the 'owner' of that name. But if I then terminate that server do I remain the 'owner' for some period of time? Or does it just go straight back into the pool?

[update] In answer to my own question it seems that the names that a Hub user creates stay associated to that user's account. These can be managed via the Hub User Profile settings. The names are listed and can be deleted if/when desired.

Alon Swartz's picture

Good question

TKLAPP.com hostnames will always belong to you unless you explicitly delete them from your account profile.

You'll notice that the hostnames displayed in your profile which are associated with an IP address can be "released". What this does is delete the DNS records, but the hostname still belongs to you.

Hostnames without DNS records can then be "deleted", which puts them back in the pool.

Jeremy's picture

You're too fast for me :)

I discovered the answer myself (as you can see from my updated post above) but thanks for the clarification.

Chris Musty's picture

AWESOME!

The title says it all!

Chris Musty

Director

Specialised Technologies

THIS IS GREAT!

Ok, I'm testing this right away, you finally made me log in to the hub again :D

Just one observation: having to chmod +x the hourly cron job to update the dns feels like an extra step. Why don't check if the domain is tklapp.com then chmod the cron for me (knowing that I'll need that). And if it's not, then chmod -x for me. Or am I being too much lazy? :P

Other than that, this is another great value of the turnkey services. I really appreciate this one, at last I'll be able to have my dynamic dns without having to login every month!

Thanks TKL!

Alon Swartz's picture

Glad you like it!

We decided to make the step of enabling hourly updates explicit, similar to TKLBAM's automatic weekly backups.

By requiring the hourly update to be explicitly set by the user, it solves a possible race-condition ping-pong. For example, I assign foo.tklapp.com to my VM. Later I decide to migrate the server to the cloud, and assign it the same FQDN. Now, if both servers where auto-updating hourly then there would be a ping-pong of foo.tklapp.com pointing to my VM, then the cloud server, then the VM, etc...

BTW, Hourly updates are also relevant for custom domains (not only TKLAPP.com), as you might be allocated a dynamic IP at your home or office where you want to use your custom domain.

Alon Swartz's picture

Adding a custom domain to the Hub

I received an email from a user asking how to add his custom domain to the Hub, so I thought I'd post my reply here for others who have the same question.

Custom domains are added and managed under your Amazon Cloud account. If you haven't added an Amazon account to your Hub account, follow the steps described on the start page.

Then, in your cloud account you will see "Enable custom domains", which will walk you through the process of enabling Amazon Route53 on your Amazon account. Once you've enabled Route53, "Enable custom domains" will be replaced with "Add a custom domain" link.

Clicking on the link will open a dialog box where you enter your domain (e.g. example.com), and will then walk you through the remaining steps.

Very nice, very handy - and seems "typically Turnkey"

I'll have to take a closer look at this Route 53

Scott

Rakata Technology - www.rakata.co.uk

Scott

www.rakata.co.uk

Very nice .... + feature request.

Excellent.  As for a feature request.... I would love to see a VERY low volume Alternate port SMTP system with this.  The extreme ease of migrating instances because of TKLBAM means I have some running where port 25 is open and some (at home) where my ISP restricts it b/c of spam concerns.  This is irritating b/c I only need it to send me alerts from the server (fail2ban etc) which don't go out when the instance is on my home server.  Any suggestions?

Awesome stuff you guys do.  I am still amazed at how well TKLBAM works and how it has reduced several signficant headaches.

Richard

Custom domain

Having been able to arrange an elastic ip and configure an (as yet) non-registered domain, it was very easy to subsequently register the domain on godaddy.com and fill in Amazon's nameservers from the hub's domain management page. Thanks for all the email help guys - it has been a great learning experience launching an Amazon instance via Turnkey.

Try out my cloud drive. From Windows, map network drive to \\cs.floridamaths.com\maths and select connect as different user: username maths. No password.

Or from a linux console: sudo mount -t cifs cs.floridamaths.com:/maths /mnt -o user=maths

Drop a signature file or something.

Neil Parker, Johannesburg, S. Africa.

Jeremy's picture

Hang in there...

Sounds like you've been having a red hot go but need a little more to get you over the line. I don't ever grudge anyone that, I've been there myself! Unfortunately I haven't got time to answer your questions right this minute, but wanted to let you know I'll be back later to try to help you out... :)

Alon Swartz's picture

We've all been there...

We've all been there. Nobody knows how to ride a bicycle when they first get on, just stick with it and you'll be off for a cool ride sooner than you expect. Just ask questions and experiment.

Through out the history of TKL I don't ever remember seeing an RTFM (read the freakin' manual) answer to a question. Everyone is treated with respect and asked to follow the code of conduct, whether they are technical gurus or uninformed newcomers.

The Hub offers 2 main services. The first being TurnKey Backup and Migration (TKLBAM), for which you need to "enable storage" as you mentioned, so you can store your encrypted backups in the cloud. The second being TurnKey on Amazon EC2 (ie. cloud servers), for which you need to "enable TurnKey on Amazon EC2", so you can launch and manage servers in the Amazon cloud.

I'm assuming your question is with regards to setting up a custom domain. To do this you first need to add your Amazon EC2 account and enable TurnKey on Amazon EC2 (even if you are not planning to launch cloud servers). Domain management is linked to your Amazon account, so this is a required step. From there, see my comment above.

As for pricing, take a look here.

Jeremy's picture

Looks like your immediate questions have been answered

But don't be scared to come back and ask some more! (Although perhaps start a new thread if there isn't already one that is relevant).

That's not to say you'll always get the answers, but you almost certainly won't if you don't ask! :) Like you say sometimes it's just a case of knowing the right search terms. I've also found myself a few times, just by asking the question has lead my thought processes in such a way that I get new ideas on how to tackle stuff.

One little bit of info that I've found invaluable in my TKL tinkerings is the fact that TKL v11.x appliances are (currently) based on Ubuntu 10.04/Lucid Server. And whilst there are a quite a few TKL customisations, as a general rule, if it will work on Ubuntu then it will work with TKL. This gives the advantage of having arguably the biggest distro specific help forum online (I sort of made that up, I have no idea if it's the biggest, but I know it's huge), as well as quite a bit of official documentation. Obviously you won't find any info there on the TKL specifics (such as TKLBAM, TKLPatch, confconsole, etc) but much of the info is relevant and even if it doesn't solve your issue, it gives you plenty to read and ponder while you wait for someone here.

Have fun :)

Cloud deployment

@Nzoe

Am a bit snowed under at the moment but will try to give my non expert experience of setting up one of the tkl servers on Amazon and then registering a domain so it can have an internet name.

Before finding the Turnkey site I had dabbled with Amazon but - like you - ran into places where there were options I did not understand. Turnkey made the whole process a lot easier and the tkl techies were very helpful with a few aspects I had not understood properly. 

Neil.

Chris Musty's picture

My Experience

Try http://www.howtoforge.com/ thats where I cut my teeth, although I have been around linux long before Ubuntu was even around but you will get very specific instruction for almost any server build imagineable.

When you get used to the CLI (Command Line Interface) from building various servers from HowToForge you will have more than enough skill to master TKL.

Chris Musty

Director

Specialised Technologies

Not quite understanding the DNS part of this: can I use my own?

I'm interested in the TKL WordPress Appliance, but want to know if I can assign it a DNS name in my domain even if it runs at Amazon? I can see that it's possible to get a static/elastic IP address for the instance on the Amazon cloud. What I'd like to be able to do is add that IP address with a new hostname to my DNS server (I work at a company that's big enough to host their own). When there's a request for that hostname, the DNS lookup will come to me, the IP address will point to Amazon's cloud, and my TKL WordPress Appliance will receive the HTTP request. What I'm not 100% clear on is whether or not the Appliance will know itself as the hostname I've assigned. I'm trying to maximize SEO so it's important to have the same domain name as the rest of my web properties that we host here, but I'd prefer not to host WordPress here. It looks like this is doable but I'd like better confirmation before kicking things off. Thanks for the help!

Alon Swartz's picture

Yes, you can...

There is no requirement to use TurnKey DNS service, you can use your own if you want - it just requires some extra steps to setup.

  1. Create an Elastic IP in the region you are going to launch wordpress
  2. Launch wordpress and choose "Auto-associate elastic IP"
  3. Update your DNS records to point to the elastic IP

Note that you don't need to create the elastic ip before you launch and auto-associate, its just a convenience option which has the added benefit of re-using the EIP if you "launch another like this one" later if you terminate the instance.

You can just as easily launch wordpress, then in the server record "Associate Elastic IP" and finally update your DNS records.

Chris Musty's picture

Finally got around to testing

I just tried a couple of micro servers with DNS and then setup a local server with Proxmox and noticed something. Due to the single IP at my office I need to port forward. Is this possible with TKL as I noticed it just pointed directly to my office IP address.

Chris Musty

Director

Specialised Technologies

Liraz Siri's picture

Set up port forwarding on your router

hubdns is using your office IP address because that's what the Hub is detecting as your public IP address. A private address wouldn't be accessible from the Internet. But you'll probably need/want to setup up port forwarding on your router if you want internal machines to be reachable. This is possible with TKL as with any other distribution.

DNS and hub-launch feature optimization

 

I am in the process of automating a restore-from-backup procedure and utilizing hub-launch to do so. What I really like is the fact that I can specify the fully qualified domain name that I would like to use and hub-launch does its Route53 magic to associate the newly launched VM's public IP address with the domain name automatically for me. This is working really well and is saving me time. Awesome!
 
There is one bit of (EC2) optimization that I would like to suggest you consider supporting. hub-launch is creating a new A record with the server's public IP address and this what you would expect. However, when two servers are communicating with each other within the same EC2 region, using the public IP address is not desireable since, if I understand this correctly, you are getting charged for the traffic coming through the public interface which would otherwise be free if the servers were communicating with each other via their private IP addresses within the region's private subnet. Of course, I could add some logic to my application to prefer a private IP address over a public IP address if the two servers reside within the same EC2 region, but I think there is a better and transparent way to solve this problem. Rather than creating a new A record with the public IP address, I am suggesting that you create a new CNAME record with the EC2 instance's public domain name (i.e. ec2-50-18-73-104.us-west-1.compute.amazonaws.com) instead. The reason is that when the EC2 public domain name is used and refers to another instance within the same region, EC2 will recognize this and route to the private IP address thereby avoiding the public interface, avoiding any additional charges, and improving performance by reducing network latency.
 
What do you think? Does this make sense? I am not an DNS/EC2 expert although I play one on TV :)

TKLAPP.com down?

I'm trying to register a tklapp.com domain - but I don't know where/how.

 

I go to tklapp.com but it says page unavailable...I'm missing something, right?

Jeremy's picture

Setup tklapp domain in the Hub

And create your subdomain eg mydomain so the address you will need to browse to is mydomain.tklapp.com

Sometimes it takes a moment for it to propogate through to the DNS you are using. If after 5 minutes or so it still doesn't work perhaps try using an alternative DNS (I have found google's to be quite good, the IP is 8.8.8.8).

Ok - I got my tklapp.com domain...

Thanks for the feedback.  As it were - the night I was doing my TurnKey vTiger install the domain was not registering.  (Is tklapp.com down during certain hours???)

But the next day I did a fresh install again (screwed somthing up on my original install) and when presented with the option to get the tklapp.com domain - I entered what I wished - and it said no problem.  Now I also see that domain in my HUB.  Very cool!  Thanks!

As to the domain pointing to my IP address - that was working just fine - and quite quickly.

A question or two about the cron job that updates my IP address.

1.  Is the cron job a regularly intervaled job?  (Every hour?  I saw it was in the cron.hour folder, right?)

2.  What happens then if my IP address changes in the middle of that hour?  Is there any 'real time' ability that once my machine notices the change in Internet IP that the address is instantly updated to my tklapp.com domain?

3.  Would it just be better (for an instance like above described) to use a DynDNS.com domain and use the DDNS update function in my router (that has a DynDNS.com specific module)?  (Also what would be the difference between DynDNS.com and the tklapp.com which would make one preferred over the other?)

Thanks again (and also thanks for the tip of the Google DNS - perhaps I'll give that a try in the future.)

Google Apps

Hey..!

I am really impressed with Turnkey. Keep up the good work!

I just have a practical question regarding the domain name. I currently have my domain signed up with Google Apps.  If I also add my domain to the Turnkey Hub will that affect Google Apps in any way?

Not sure if this is a stupid question but I new to all of this ;)

Thanks in advance!

Jeremy's picture

Are you are using Google Apps for just email/calendar/docs/etc?

If so then that should be fine. At my work we use Google Apps for email (and gCal/gDocs/etc) and have our website (same domain) hosted elsewhere and it all works fine.

Thanks for the quick

Thanks for the quick response!

Currently I am using Google Apps for mail, calendar.  I would like to have the following:

  • mail.mydomain.com, calendar.mydomain.com hosted by Googe Apps
  • www.mydomain.com, redmine.mydomain.com, etc. hosted using Amazon / Turnkey
Jeremy's picture

That should work fine.

It's basically how I've got mine setup (although I'm not hosting via AWS - it's only a simple static html site so shared hosting is a better fit cost wise).

The detail you will need to confirm is how to go about setting your MX records via the Hub (I haven't used the Hub DNS for anything other than dynamic DNS so haven't checked whether that level of config is available, but I'd assume it is - it's a basic DNS record). Also to get your calendar to work via calendar.mydomain.com you may need to do a bit of fiddling involving some sort of redirection or something. To avoid that, the way I do it at work is to get employees to just log in via the normal Gmail/Gcal interface (using their full email address). Although if you want it available as a subdomain, then I'm sure it's possible, I'm just not sure on the best way to go about it.

Cool. Thanks for the

Cool. Thanks for the info!

FYI I already have the calendar.mydomain.com and mail.mydomain.com working with Google Apps. I did this by adding a CNAME record (instructions are available on the Dashboard when you set it up).

Jeremy's picture

Cool :)

Should be as simple as recreating those settings in the Hub. So should all be pretty straight forward then. Good luck :)

Alon Swartz's picture

my 2 cents...

It sounds like you're all set, but I'll add my 2 cents anyway.

Yes, all record types are supported in the Hub DNS interface (A, CNAME, MX, TXT, SRV).

As Jeremy suggested, once you've added your custom domain to the Hub (under cloud accounts), you then re-create all the records as they appear in your current DNS configuration.

Note that the new records on the Hub won't take affect until you update the name servers at your registrar. For more detailed info and tips on migrating a domain in production click on the Name Servers (why is this important?) popup in the domain management page.

similar (subdomains)

So I have a domain, let's call it bar.net, registered through Google Apps (godaddy I think is the underlying domain provider).  I have a bunch of DNS info setup with Google Apps (including name servers). 

So let's say I want to get foo.bar.net working as my domain name with TK Hub, so I can deploy servers with names like sub1.foo.bar.net and sub2.foo.bar.net.  I have foo.bar.net entered as my domain on the Hub, now where else do I need to make modifications?  At godaddy?  Which DNS settings am I copying to which destination?

Let me attempt to answer my

Let me attempt to answer my own question.

I see from my domain registrar nameserver records that take the following form:

host: @

pointsto: ns##.domainconntrol.com

 

Am I correct to assume that I can make records for foo.bar.net (as hostname) using the name servers provided by TK Hub in addition to my existing ones, as opposed to replacing them?

Liraz Siri's picture

How subdomain delegation works

Yes. If you want the Hub to be able to assign yourhostname.foo.bar.net you'll need to delegate the foo.bar.net domain to the Amazon Route 53 nameservers. In technical terms that means you need to create an NS record for foo.bar.net.

Afterwards HOSTNAME.foo.bar.net will be handled by the Hub's domain management. HOSTNAME.bar.net will handled by your current nameserver.

Works perfectly. On Dec 6,

Works perfectly.

On Dec 6, 2011, at 11:36 PM, "TurnKey Linux" <admin@turnkeylinux.org> wrote:=

Pricing

Another question... What about pricing for the Hub DNS functionality?  Is that also billed directly from Amazon.

I know that the Amazon pricing is not excessive but I am already paying my domain name provider for this service.

Thanks in advance!

Jeremy's picture

Check Amazon prices

Again TKL basically only supply a front end for the Amazon service. Here's the AWS Route53 (DNS) pricing page.

It's certainly silly to be paying twice for something! If you wish to have your DNS handled by the Hub then you can cancel other services offered by your existing host. Obviously you'll wnat to keep the domain though!

Alon Swartz's picture

Amazon Route 53 Reduces Hosted Zone Pricing

I just received an announcement from Amazon that they're reducing pricing for custom domains:

We are excited to announce that effective October 1st we're reducing prices for 
Amazon Route 53, Amazon Web Services’ reliable and scalable domain name service.
Amazon Route 53 routes end users to your Internet applications by translating 
human readable names like www.example.com into the numeric IP addresses like 
192.0.2.1 that computers use to connect to each other. Effective October 1st,
we’re cutting the price for each hosted zone from $1 per month to $0.50 per
month for the first 25 zones, and then $0.10 per month for additional zones.

Thanks

Thanks for the information!  I'll probably keep my exisiting provider for the moment, but it is probably only a matter of time before I move to AWS Route 53 ;)

I am super impressed with TurnKey Hub.  Keep up the good work!

Updating Dynamic IP Address to TKLAPP.com domain...

Sorry for the 'bump' - but I wondered if you are able to help me here:

 

 

A question or two about the cron job that updates my IP address.

1.  Is the cron job a regularly intervaled job?  (Every hour?  I saw it was in the cron.hour folder, right?)

2.  What happens then if my IP address changes in the middle of that hour?  Is there any 'real time' ability that once my machine notices the change in Internet IP that the address is instantly updated to my tklapp.com domain?

3.  Would it just be better (for an instance like above described) to use a DynDNS.com domain and use the DDNS update function in my router (that has a DynDNS.com specific module)?  (Also what would be the difference between DynDNS.com and the tklapp.com which would make one preferred over the other?)

Thanks again (and also thanks for the tip of the Google DNS - perhaps I'll give that a try in the future.)

Jeremy's picture

Sorry I missed your post

1) AFAIK you are right, cron.hourly would suggest that it runs every hour (although I still consider myself a Linux newb - despite using it for a few years now). To confirm I would consult google! (Just remember that TKL v11.x is based on Ubuntu 10.04/Lucid and you will find masses of info). Cron jobs can be run as regularly as you desire - although I don't know what unintended consequence that may cause. Perhaps you could trial it and/or do a bit more research around that. Remember that the Hub DNS is just a front-end for AWS Route53.

2) I can't say too much because I'm not 100% sure on 1 (above) but assuming my answer is correct there, then it may be that your site may become unreachable under those circumstance (until the IP is updated). I have a static IP so I can't comment or test this. Maybe test it and see (tklapp.com costs nothing).

3) My personal experience with DynDNS hasn't been all positive, especially when coupled with the 'auto' DDNS router feature (mine stopped working for no apparent reason on a number of occasions and eventually stopped working altogether). Although in fairness it wasn't really DynDNS's fault. Personally I would never again trust something as important as updating the IP of an important server to a cheap piece of consumer grade hardware. I ended up using an alternate dynamic DNS provider but have found native Linux clients for alternative providers (especially for headless servers) difficult to configure. Finally I forked out the AU$10/mth for an upgrade to my internet plan (which gave me a static IP and also includes other goodies). I haven't had any such issues since!

When your IP changes it involves your internet connection being disconnected and then reconnected again (so you will briefly lose contact anyway, your IP will update whenever you dissconnect manually, otherwise ISPs usually do it at night every few days to a week - at least in my experience). Also in my experience, most internet plans that have dynamic IPs also have a clause in the agreement that you are not permitted to run a publicly available server (different ISPs have different levels of strictness on this, some say not server at all, some say no commercial server, some go as far as to block ports, etc). Obviously most ISPs don't police this much, and I'm certainly not preaching to you - but it could be worth considering - especially if you are running some sort of commercial site. Having your internet connection cut with no notice (and perhaps up to a week for a new provider to connect) certainly won't be a good thing. Most ISPs charge very little for a static IP (as I said above mine charges an extra $10/mth - which is tax deductable anyway, and includes other extras) and then all this becomes a non issue.

Many thanks!  Actually - the

Many thanks!  Actually - the DynDNS.com issue - I think has to do with your hardware 'over updating' the DynDNS site and then they 'shut you down' for abusive updates.

I read that somewhere else.

In all - thanks for the info.  Good to have options.

How to use DKIM and SPF on tklapp.com

Hi 

Im building Bulk email sending system with Interspire Email marketer and I use Turnkey Lamp for EC2, Everything work perfect The sole  issue that my emails goes directly as SPAM with for many email like hotmail and gmail .

After that I tried to integrate OpenDKIM but no chance because all DKIM must have a control on DNS. 

Please help to solve this issue

 

regards

my domain name not active??

Hi 

I created a new domain name in cloud account section mediagadjets-marketing.com and normally I added all my records A,CNAME.but Since I created it about 16 hours that domain to ativated yet. 

Please help me.

regards

Jeremy's picture

Have you set the nameservers?

You need to set the nameservers to point to Amazon (with your domain name registrar). Have you done that? If not please do so. If so then check to see that they are correct and perhaps contact your domain registrar to find out what the holdup is. I nmy experience it has only taken an hour or 2 but YMMV and some registrars state that it can take "up to 24 hrs" - so perhaps check their documentation.

L. Arnold's picture

Can you host your own Dom.Name t without Elastic IP mapping?

I am curious if it is possible to Host one's own domain without Elastic IP?

IE, would it be possible to run Micro Instances that do not use "my elastic" Ip, but which might Map my Domain name assignment to the xyz.tklapp.com address... and hae the URL of my Domain stick?

I am expecting either a YES or a NO on this one.  More scared of a MAYBE.

Jeremy's picture

I would imagine so

The DNS trickery built into the Hub should allow that as it works for dynamic IPs. So in theory it should be fine. But I haven't tested it so can't say for sure. You could always set up a test server with a tklapp.com domain and check that it works but I can't see why it wouldn't.

Alon Swartz's picture

Yes, you can...

As @Jeremy mentioned, the answer is yes. But (and there is always a but), you need to make sure that the instance itself (HubDNS) is configured with the domain name for dynamic DNS "magic" to take effect - I.e. so the instance will update the Hub when its IP address changes.

HubDNS is pre-configured when specifying the domain name at launch, so if you do that you don't have to worry about doing anything manually.

The only use-case that it won't take effect is when you associate a domain name after launch. In this case the Hub will perform a one-off association.

Does that make sense?

What port does the inbound request come?

This is a very basic question - I'm sure - but I'm not much more than a simpleton!

I have a tklapp.com domain working and updating with the public IP address - but if I type in the domain - what port is the request coming into my public IP address?  In my router I will need to forward these requests to just one computer (virtual machine server.)

 

Thanks.

Sorry for being a dummy!

So I tried it - and I got my ROUTER LOGIN!  (apparently remote admin was turned on) and it told me port 80!  HTTP port - DUH!  Sorry - told you I'm a simpleton.

 

Anyway - worked the forwarding out on my router and YEAH - I'm LIVE on the outside world!  Sweet!

 

Thanks for looking anyway.

CNAME to TKL domain name

Just wanted to confirm this approach.

If you're not going to be using Amazon's DNS (option #1, Custom Domains), there's another option that isn't addressed in the original article.

If you have a TKL web server running multiple virtual hosts in the EC2 cloud, you can just CNAME those records to your (host).tklapp.com domain.

I do see value in migrating to Amazon DNS in the long run, but for the near term CNAMEing these to the the TKL domain name is a good alternative.

Please let me know if this is a bad idea.


Alon Swartz's picture

It's not supported, but possible IIRC

The Hub only allows one tklapp.com hostname for each server, so you'd have to trick the Hub in assigning more hostnames without dissassociating the others. Take a look at the code of hubdns to see how it works and tweak it for your use case.

But, and this is a big but, you'll most probably come across issues. Doing this is not supported and is probably not worth the trouble.

Bottom line, I'd recommend getting a custom domain and using that instead.

Thanks for the reply.  I

Thanks for the reply.  I think, maybe my question was not clear.

We do have multiple domains, but moving them to Route 53 is not something we want to do right now.

Besides, that would only allow you to set the name of the base virtual machine.  So really doesn't solve the virtual host situation.

It seems that if you want to run multiple virtual hosts off a single TKL virtual machine, CNAMEs have to be the best approach.  e.g.

This does work in practice.

Alternativley, is there any way to set one of your elastic IPs to a virtual machine within the TKL console at or before boot time?  It only seems you can do this once the machine is booted.

Thanks!


L. Arnold's picture

You can do all that as far as I know.

If you host your own DNS, just mirror the setup in the Hub DNS.  Then the protocol is to have an Elastic IP and have MX entries pointing at the elastic IP.

Within the VM itself you need to set up a few host names... probably easiest done through WebMin - Apache Server settings.

If you do it all correctly your VM will be responsive to the different host names that are pointing at it and direct the web traffic in ways coordinated by the Apache setup.

You could likely replace the elastic ip with Cnames pointing at tklapp.com but that adds a whole other layer to the routing it seems to me.

I have my DNS host outside the Hub as the Internet DNS, but mirror the settings within Hub DNS settings just in case.  You should be able to do it all within the Hub. 

Drew Ruggles's picture

HubDNS not working properly

When I ping my tklapp.com address, it returns an AWS server, not my TKL instance IP.

Any thoughts on how to correct this?

Thanks.

Drew

http://www.sfpcables.com

It seems that if you want to run multiple virtual hosts off a single TKL virtual machin

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)