Koozali.org: home of the SME Server

Update multiple hosts with ez-ipupdate

Dan Williams

Update multiple hosts with ez-ipupdate
« on: December 15, 2002, 05:27:25 AM »
Hi,
I am having trouble figuring out how to have ez-ipupdate update multiple hosts automatically. Does  the conf file need to be  appended?
I use EasyDNS and have my primary config file doing everything properly for my primary domain, but can not find or figure out what to do, to have the same happen for my virtual domains.
Any help greatly appreciated,
Dan

Dan Williams

Re: Update multiple hosts with ez-ipupdate
« Reply #1 on: December 18, 2002, 09:02:57 PM »
There has to be somebody out there that knows how to do this, or does it.
If I have asked a stupid question, or there is a how to I have neglected to find, please point me in the correct direction.
Seasons Greetings,
Dan

RobW

Re: Update multiple hosts with ez-ipupdate
« Reply #2 on: January 29, 2003, 08:41:49 AM »
Dan,

did you ever solve this? I am looking at doing the same thing and have the same questions.

Rob W

RobW

Re: Update multiple hosts with ez-ipupdate
« Reply #3 on: January 30, 2003, 04:46:34 AM »
Dan,

no idea if the following works but I had the same question and this was EasyDNS's tech support answer:
********************************************
Question to EasyDNS
I have 3 domains that I want my e-smith server to get mail for. How do I go about setting up the e-smith server to send it's dynamic IP to you so that all three DNS domains are updated each time the IP changes?
********************************************
Answer from EasyDNS
You would need to have the mailhost of the domain setup as a dynamic host of one of the domains, and point the MX records for each domain to that hostname.

For example, if the domains are x.com, y.com and z.com, you would create the host mail.x.com to point to the dynamicIP, then you point the MX record of x.com y.com and z.com to mail.x.com.

Thank you,
easyDNS support

Ron

Re: Update multiple hosts with ez-ipupdate
« Reply #4 on: November 19, 2003, 01:09:39 PM »
RobW wrote:
>
> Dan,
>
> no idea if the following works but I had the same question
> and this was EasyDNS's tech support answer:
> ********************************************
> Question to EasyDNS
> I have 3 domains that I want my e-smith server to get mail
> for. How do I go about setting up the e-smith server to send
> it's dynamic IP to you so that all three DNS domains are
> updated each time the IP changes?
> ********************************************
> Answer from EasyDNS
> You would need to have the mailhost of the domain setup as a
> dynamic host of one of the domains, and point the MX records
> for each domain to that hostname.
>
> For example, if the domains are x.com, y.com and z.com, you
> would create the host mail.x.com to point to the dynamicIP,
> then you point the MX record of x.com y.com and z.com to
> mail.x.com.
>
> Thank you,
> easyDNS support

I confirm this works on SME5.5 Thanks

loveless

Multiple Virtual Domains w/ EasyDNS on Server
« Reply #5 on: February 15, 2004, 04:42:52 PM »
Well, I've really hacked this around, but I believe I have a workable solution.  I now have my SME Server v5.6 connecting to easydns and updating both of my domains.  (1 primary, and 1 virtual)

Basically, I've duplicated all of the easydns/ez-ipupdate service to run as another service called easydns1.

Here's a quick run-down of what I did.

1.  Copy /etc/easydns.conf to /etc/easydns1.conf making appropriate changes to easydns1.conf for your 2nd domains

2.  Copy /sbin/e-smith/dynamic-dns/easydns to /sbin/e-smith/dynamic-dns/easydns1.  There are several changes to make in this file, outlined in the next couple of steps.

2a.  Comment out the line that expands the easydns.conf template by putting a # at the beginning

2b.  In the "EASYDNS=" line, change "ez-ipupdate" to "ez-ipupdate1", and "easydns.conf" to "easydns1.conf", and "easydns.log" to "easydns1.log"

2c.  In the "if" statement under "STATUS=offline", change "easydns.log" to "easydns1.log"

2d.  In the rest of the file, change "ez-ipupdate" to "ez-ipupdate1" every time you see it.  There are several.

2e.  Exit and save your changes

3.  Copy /usr/local/bin/ez-ipupdate to /usr/local/bin/ez-ipupdate1

4.  Start the service.  "/sbin/e-smith/dynamic-dns/easydns1 start"

5. Check /var/log/messages to see if it worked.  "tail /var/log/messages"

6.  If it worked, setup the startup script so that it will start on boot.

6a.  "cd /etc/rc.d/rc7.d"  then " ln -s /sbin/e-smith/dynamic-dns/easydns1 S99easydns1"

6b.  If you do an "ll" in /etc/rc.d/rc7.d, you should see S99easydns and S99easydns1 both pointing to their respective files in /sbin/e-smith/dynamic-dns/*

That's it.  :)

Good Luck.

Chaloner Hale

Re: Update multiple hosts with ez-ipupdate
« Reply #6 on: February 18, 2004, 06:07:46 PM »
Have a look at the ddclient rpm. Set your config to not use a dynamic DNS service. You can update as many domains as you like.

Actually pretty slick. I have it workin on 5.6 and 6.0 with no problems at all.