How do I update easydns.com from behind a router?

How do I update easydns.com from behind a router?

Post by Malcolm Ferguso » Sun, 29 Apr 2001 15:18:28



I have a domain name and DNS service with easydns.ca.  I have a Debian
server running behind my Netgear router.  Easydns.com officially
supports "ez-ipupdate", but this only seems to work off the eth?
interface.  I need a client that works from behind my router and with
easydns.com/.ca.  Can anybody recommend one please?

TIA
Malc

 
 
 

How do I update easydns.com from behind a router?

Post by Dean Thompso » Sun, 29 Apr 2001 15:29:09


Hi Malcolm,

Quote:> I have a domain name and DNS service with easydns.ca.  I have a Debian
> server running behind my Netgear router.  Easydns.com officially
> supports "ez-ipupdate", but this only seems to work off the eth?
> interface.  I need a client that works from behind my router and with
> easydns.com/.ca.  Can anybody recommend one please?

Where exactally does the problem lie.  If your router supports NAT, you should
be able to use the program without any major problems.  Where abouts does the
update process fail ?

See ya

Dean Thompson

--
+____________________________+____________________________________________+

| Bach. Computing (Hons)     | ICQ     - 45191180                         |
| PhD Student                | Office  - <Off-Campus>                     |
| School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
| MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
| Melbourne, Australia       |                                            |
+----------------------------+--------------------------------------------+

 
 
 

How do I update easydns.com from behind a router?

Post by Malcolm Ferguso » Mon, 30 Apr 2001 03:27:03



> > I have a domain name and DNS service with easydns.ca.  I have a Debian
> > server running behind my Netgear router.  Easydns.com officially
> > supports "ez-ipupdate", but this only seems to work off the eth?
> > interface.  I need a client that works from behind my router and with
> > easydns.com/.ca.  Can anybody recommend one please?

> Where exactally does the problem lie.  If your router supports NAT, you should
> be able to use the program without any major problems.  Where abouts does the
> update process fail ?

Hi Dean

Perhaps I'm not understanding the documentation properly.  However, it
seems that ez-ipupdate can only determine IP addresses directly from a
network interface.  This is no good for me as it will always detect the
private IP 192.168.0.34.  It updates easydns.ca just fine with that IP
address, but that address is no good!  I'm not quite sure what your
point about NAT is: I don't see how that is relevant.

http://support.dyndns.org/dyndns/clients/unix.shtml lists several good
looking dynamic DNS clients, some that detect the IP via a URL, and some
that can talk directly to my Netgear RT314.  However, none of these list
easydns.com as a support service.  Ultimately, I could run one of the
other Win32 clients, but would rather not as I reboot those machines a
lot, or unplug them, or whatever.  Or, as the source is available, I
could patch ez-ipupdate with something from another Linux client... but
I don't think I have time for that.

Malc

 
 
 

How do I update easydns.com from behind a router?

Post by Hal Burgi » Mon, 30 Apr 2001 05:43:38




>> > I have a domain name and DNS service with easydns.ca.  I have a
>> > Debian server running behind my Netgear router.  Easydns.com
>> > officially supports "ez-ipupdate", but this only seems to work off
>> > the eth?
>Perhaps I'm not understanding the documentation properly.  However, it
>seems that ez-ipupdate can only determine IP addresses directly from a
>network interface.  This is no good for me as it will always detect
>the private IP 192.168.0.34.  It updates easydns.ca just fine with that
>IP address, but that address is no good!  I'm not quite sure what your
>point about NAT is: I don't see how that is relevant.


usage: ez-ipupdate [options]
 Options are:
  -a, --address <ip address>    string to send as your ip address <------
  -b, --cache-file <file>       file to use for caching the ipaddress
  -c, --config-file <file>      configuration file, almost all arguments
                                can be given with: <name>[=<value>]

[...]

You can specify an IP address via the command line, or if using the
config file, in there too. See the examples.    

I gather your problem is that the router holds the routable IP from your
ISP? OK, what you need to do is write a short script to pull this out.
Most of these have a mini web server. Does this one? If so, you can do
this with a oneliner:

MY_IP=`lynx -dump http://192.168.1.1/<path>/some.html |grep IP |sed 's/IP:\ //``

Just an example. If you'll send me the URL to the page, and the page
itself, I'll do it for you (if you don't know how). Then you can do
something like:

  /usr/local/bin/ez-ipupdate -S easydns -u hal:XXXXXX -R hal -h $HOST \
                -m $MX -a $MY_IP

You can also use that one liner in a cron job to see when/if your IP
changes.

while true; do

 MY_IP=`lynx -dump http://192.168.1.1/<path>/some.html |grep IP |sed 's/IP:\ //``

   if ! [ "$OLD_IP" = "MY_IP" ]; then

    /usr/local/bin/ez-ipupdate -S easydns -u hal:XXXXXX -R hal -h $HOST \
                -m $MX -a $MY_IP
    OLD_IP=$MY_IP

   fi

 sleep $INTERVAL

done

--
Hal B




--

 
 
 

How do I update easydns.com from behind a router?

Post by Vivien M » Tue, 01 May 2001 07:42:20



> http://support.dyndns.org/dyndns/clients/unix.shtml lists several good
> looking dynamic DNS clients, some that detect the IP via a URL, and some
> that can talk directly to my Netgear RT314.  However, none of these list
> easydns.com as a support service.  Ultimately, I could run one of the
> other Win32 clients, but would rather not as I reboot those machines a
> lot, or unplug them, or whatever.  Or, as the source is available, I
> could patch ez-ipupdate with something from another Linux client... but
> I don't think I have time for that.

Or, perhaps you're just using the wrong dynamic DNS service? If you've found
clients for other services that work, maybe you should switch services?

[Note: yes, I know, I'm biased, but I'm not hiding my bias...]

Vivien

--
Vivien M.

Assistant System Administrator
Dynamic DNS Network Services
http://www.dyndns.org/

 
 
 

How do I update easydns.com from behind a router?

Post by Malcolm Ferguso » Wed, 02 May 2001 23:38:48




> > http://support.dyndns.org/dyndns/clients/unix.shtml lists several good
> > looking dynamic DNS clients, some that detect the IP via a URL, and some
> > that can talk directly to my Netgear RT314.  However, none of these list
> > easydns.com as a support service.  Ultimately, I could run one of the
> > other Win32 clients, but would rather not as I reboot those machines a
> > lot, or unplug them, or whatever.  Or, as the source is available, I
> > could patch ez-ipupdate with something from another Linux client... but
> > I don't think I have time for that.

> Or, perhaps you're just using the wrong dynamic DNS service? If you've found
> clients for other services that work, maybe you should switch services?

> [Note: yes, I know, I'm biased, but I'm not hiding my bias...]

> Vivien

> --
> Vivien M.

> Assistant System Administrator
> Dynamic DNS Network Services
> http://www.dyndns.org/

Hi Vivien!

Yes, I'm familiar with dyndns.org and I don't mind your bias:  I think
it is an excellent service.  I've used dyndns.org for sometime.  It
seems reliable, although I've only ever used my domain name occasionally
from on the road to call home.

However, I wanted to host mydomain.ca on my dynamic IP address, not
mysubdomain.dyndns.org.  When I did my research (before I handed money
over to easydns.ca), it seemed that to do this would involve a couple of
other places too, such as Granite Canyon.  Reviews of that service were
less than complimentary at times, especially w.r.t. to reliability.
Also, I wanted "one stop shopping", and IMHO, easydns.ca offered a
reasonable price.

Right now I have DynSite (Win32) updating my easydns.ca account.
All-in-all, the service was trivial to setup.  I have several aliases
pointing at my domain name, and an MX record too, backed up by their
SMTP server if mine is unavailable.

Malc

 
 
 

How do I update easydns.com from behind a router?

Post by Malcolm Ferguso » Thu, 03 May 2001 00:21:13


Hi Hal,

Thank you for your offer of help.  I really appreciate it!  I'm not too
strong on the scripting languages and tools involved.  Apologies, but
this reply is quite long...

Hal Burgiss wrote:

> On Sat, 28 Apr 2001 18:27:03 GMT, Malcolm Ferguson <Malcolm_Fergu...@yahoo.com> wrote:
> >Dean Thompson wrote:

> >> > I have a domain name and DNS service with easydns.ca.  I have a
> >> > Debian server running behind my Netgear router.  Easydns.com
> >> > officially supports "ez-ipupdate", but this only seems to work off
> >> > the eth?

> >Perhaps I'm not understanding the documentation properly.  However, it
> >seems that ez-ipupdate can only determine IP addresses directly from a
> >network interface.  This is no good for me as it will always detect
> >the private IP 192.168.0.34.  It updates easydns.ca just fine with that
> >IP address, but that address is no good!  I'm not quite sure what your
> >point about NAT is: I don't see how that is relevant.

> [hal@feenix hal]$ ez-ipupdate --help
> usage: ez-ipupdate [options]
>  Options are:
>   -a, --address <ip address>    string to send as your ip address <------
>   -b, --cache-file <file>       file to use for caching the ipaddress
>   -c, --config-file <file>      configuration file, almost all arguments
>                                 can be given with: <name>[=<value>]

> [...]

> You can specify an IP address via the command line, or if using the
> config file, in there too. See the examples.

That is an excellent idea.

> I gather your problem is that the router holds the routable IP from your
> ISP? OK, what you need to do is write a short script to pull this out.
> Most of these have a mini web server. Does this one? If so, you can do
> this with a oneliner:

You are correct on both scores.  The WAN port of my router has the IP
from ISP.  I use NAT to forward port 80 to my web server.  The router
has a web server.

> MY_IP=`lynx -dump http://192.168.1.1/<path>/some.html |grep IP |sed 's/IP:\ //``

The web server requires authentication which the perl script in
ddnclient did as a base64-encoded HTTP request header.  I finally
figured out that I can do it in one, although it will show up
(insecurely?) on the command line, e.g.:

http://user:passw...@192.168.0.1/mtenSysStatus.html
or, in the case of Lynx:
lynx -dump -auth=user:password http://192.168.0.1/mtenSysStatus.html

I like your suggestion of using Lynx in this way.  I tried modifying the
Perl script from ddnclient, but Perl isn't my Forte, and I found I was
spending a lot of time just trying to trim out all the bits that I don't
need via trail-and-error (time consuming).  Memory is tight on my
server, and I suspect that Lynx will have a bigger impact on the system
than Perl: inittab get's the cut and it won't spawning so many consoles
anymore.

- Show quoted text -

> Just an example. If you'll send me the URL to the page, and the page
> itself, I'll do it for you (if you don't know how). Then you can do
> something like:

>   /usr/local/bin/ez-ipupdate -S easydns -u hal:XXXXXX -R hal -h $HOST \
>                 -m $MX -a $MY_IP

> You can also use that one liner in a cron job to see when/if your IP
> changes.

> while true; do

>  MY_IP=`lynx -dump http://192.168.1.1/<path>/some.html |grep IP |sed 's/IP:\ //``

>    if ! [ "$OLD_IP" = "MY_IP" ]; then

>     /usr/local/bin/ez-ipupdate -S easydns -u hal:XXXXXX -R hal -h $HOST \
>                 -m $MX -a $MY_IP
>     OLD_IP=$MY_IP

>    fi

>  sleep $INTERVAL

> done

Okay, here it is.  I mentioned the page above, but I'll repeat it here
to avoid scrolling (BTW, are the authentication details always hidden
from the ps command?):
lynx -dump -auth=user:password http://192.168.0.1/mtenSysStatus.html

And here's the HTML.  For such a small page, it's quite long winded.
The interesting bit is under WAN port, where IP Address : 64.228.131.68.

<HTML><head>

<meta http-equiv='content-type' content='text/html;charset=iso-8859-1'>

  <META NAME="generator" CONTENT="GoLive CyberStudio 3">

<script language="JavaScript">

    function doSubmit()
    {
        top.buttom.location="ack.html";
    }

    function doLoad()
    {
        top.buttom.location="buttom.html";
    }

    function doEdit()
    {
        window.location="AddrEdit.html"
    }

    var szHelp="mtenHelp_1.html";
    function doHelp()
    {
        window.open(szHelp, 'HELP',
'width=450,height=250,scrollbars=yes,resizable=yes');
    }

</script>
</HEAD>
<BODY bgcolor="#000067" marginwidth="0" marginheight="0"
onload="doLoad();"
      LINK=#000000 VLINK=#000000 ALINK=#000000 -->

<FORM METHOD="POST" ACTION="/Forms/mtenSysStatus">

  <table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"
HEIGHT="25">
    <TR>
      <TD><DIV ALIGN=right>
        <A HREF="#" onClick="doHelp()">
        <IMG SRC="images/help.gif" WIDTH="55" HEIGHT="24" BORDER="0">
        </A></DIV>
</TD>
</TR>
</TABLE>

  <table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"
bgcolor="#FFFFFF">
    <TR>
      <TD><IMG SRC="images/deco_up.gif" WIDTH="30" HEIGHT="28">
      </TD>
</TR>
</TABLE>

  <table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"
bgcolor="#FFFFFF">
    <TR>
      <td WIDTH="3%">?</TD>
<td WIDTH="97%"><font face="Arial, Helvetica, sans-serif"><B><FONT
SIZE="5" color="#C0C0C0">
        SYSTEM STATUS
      </FONT></B></FONT></TD>
</TR>
</TABLE>
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"
bgcolor="#FFFFFF" HEIGHT="20">
    <TR>
      <TD>?</TD>
</TR>
</TABLE>
<table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"
bgcolor="#ffffff" HEIGHT="70%">
    <TR>
      <TD><DIV ALIGN=center>
          <table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"
bgcolor="#ffffff" HEIGHT="70%">
            <TR>
              <TD><DIV ALIGN=center>
                  <table WIDTH="100%" BORDER="0" CELLSPACING="0"
CELLPADDING="0" bgcolor="#FFFFFF">
                    <TR>
                      <td WIDTH="10%">?</TD>
<TD>?</TD>
<td WIDTH="10%">?</TD>
</TR>
<TR>
                      <td WIDTH="10%">?</TD>
<td bgcolor="#ffbf3b">
                        <DIV ALIGN=center>
                          <table WIDTH="500" BORDER="0" CELLSPACING="0"
CELLPADDING="0">
                            <TR>
                              <TD>?</TD>
</TR>
<TR>
                              <TD><HR>
</TD>
</TR>
<TR>
                              <TD><font face="Arial, Helvetica,
sans-serif" size="2">
System Name :                                                 <B>
frontdoor                              </B></FONT></TD>
</TR>
<TR>
                              <TD><FONT SIZE="2" face="Arial, Helvetica,
sans-serif">
Firmware Version:                                             <B>
V3.24(CA.0) | 2/8/2001                              </B></FONT></TD>
</TR>
<TR>
                              <TD><FONT SIZE="2" face="Arial, Helvetica,
sans-serif">

<B>
                              </B></FONT></TD>
</TR>
<TR>
                              <TD>?</TD>
</TR>
<TR>
                              <TD><font face="Arial, Helvetica,
sans-serif" font size="3"><B>
WAN Port :                                    </B></FONT></TD>
</TR>
</TABLE>
<table WIDTH="480" BORDER="0" CELLSPACING="0" CELLPADDING="0">
                            <TR>
                              <td WIDTH="260" COLSPAN="13"><font
face="Arial, Helvetica, sans-serif" size="2">
IP Address :                                                    <B>
64.228.131.68                                </B></FONT></TD>
<td WIDTH="20">?</TD>
<td WIDTH="180" COLSPAN="9"><font face="Arial, Helvetica, sans-serif"
size="2">DHCP
                                : <B>
None                              </B></FONT></TD>
<td WIDTH="20">?</TD>
</TR>
<TR>
                              <td WIDTH="480" COLSPAN="24"><font
face="Arial, Helvetica, sans-serif" size="2">
IP Subnet Mask :                                                <B>
255.255.255.255                              </B></FONT></TD>
</TR>
</TABLE>
<table WIDTH="480" BORDER="0" CELLSPACING="0" CELLPADDING="0">
                            <TR>
                              <TD>?</TD>
</TR>
</TABLE>
<table WIDTH="500" BORDER="0" CELLSPACING="0" CELLPADDING="0">
                            <TR>
                              <TD><font face="Arial, Helvetica,
sans-serif" size="3"><B>
LAN Port :                                    </B></FONT></TD>
</TR>
</TABLE>
<table WIDTH="480" BORDER="0" CELLSPACING="0" CELLPADDING="0">
                            <TR>
                              <td WIDTH="260" COLSPAN="13"><font
face="Arial, Helvetica, sans-serif" size="2">
IP Address :                                                   <B>
192.168.0.1                              </B></FONT></TD>
<td WIDTH="20">?</TD>
<td WIDTH="180" COLSPAN="9"><font face="Arial, Helvetica, sans-serif"
size="2">DHCP
                                : <B>
Server                              </B></FONT></TD>
<td WIDTH="20">?</TD>
</TR>
<TR>
                              <td WIDTH="480" COLSPAN="24"><font
face="Arial, Helvetica, sans-serif" size="2">
IP Subnet Mask :                                              <B>
255.255.255.0                            </B></FONT></TD>
</TR>
</TABLE>
<table WIDTH="500" BORDER="0" CELLSPACING="0" CELLPADDING="0">
                            <TR>
                              <TD><HR>
<font face="Arial, Helvetica, sans-serif" size="2"><B></B></FONT></TD>
</TR>
</TABLE>
<table WIDTH="500" BORDER="0" CELLSPACING="0" CELLPADDING="0">
                            <TR>
                              <TD><DIV ALIGN=center>
<INPUT TYPE=BUTTON VALUE="Show Statistics"
onClick="window.open('mtenSystStatusFrame.html', '',
'width=720,height=250,status=yes');">                              
</DIV>
</TD>
</TR>
<TR>
...

read more »

 
 
 

1. Webserver behind provider router /local router

My Problem:

          internet
             |
             |
      195.14.234.171 (router from provider)
             |
             |
      195.14.234.172 (my local router netmask 255.255.255.240 eth1,
SuSE-Linux 7.1)
             |
             |
      192.168.0.100  (my local router netmask 255.255.0.0 eth0, local
network)
             |
             |
             |
             +----------------+-------- other WinPCs ....
             |                |
             |                |
             |                |
      195.14.234.173      192.168.0.xxx
      (webserver)         (Win95 PCs)
      SuSE-Linux 7.2

The webserver can resolve all internetadresses and all adresses in the
lan. But the webserver is unreachable from the internet.

The router (my router) works with IP-masquerading and ipchains (i
tested to accept all, but it does not work).

What is wrong?

Thanks for answers
Karl

2. Hardware Flow Control

3. Installing a VOIP Router behind a wireless router.

4. Linux for PlayStation 2 demo - Davis, CA - Jan. 7th

5. $$ Domain sale: meetLINUX.com,LinuxCares.com, softwares4linux.com And more $$

6. JumpStart and 64 bit install question.

7. How to do com ? com : com in unix...

8. PPP dialin problem from NT 4 wkstn to Rs6000 AIX 4.3

9. $$ Domain sale: meetLINUX.com,LinuxCares.com, softwares4linux.com And more $$

10. jlg058@home.com, tlg62@home.com, egglectric@home.com

11. wanna be host behind a linux router

12. How can my users use netmeeting behind my linux router ??

13. Dynamic DNS behind an ADSL router