Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
dynamic hosting service probs
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: dynamic hosting service probs

Hybrid View

  1. #1
    Guest

    dynamic hosting service probs

    Ok, i registered with www.dhs.org for a dynamic name pointing to my home server when I am online. Just added a script to the ip-local called from ppp when I go online, so the ip gets updated when I go online. I tried to connect to it, and got a 403 error. Not sure exactly what it said, My bro was connecting to test it out. Is it a rights issue as far as the web folder? If I connect by ip, it gets forwarded right to the webserver. Any ideas from someone who has done this before?

  2. #2
    Guest

    Re: dynamic hosting service probs

    ok, I am online now. Someone please try itout. I changed some of the settings in the ifup-local script. address should be www.mountainman.dyn.dhs.net

  3. #3

    Re: dynamic hosting service probs

    http://www.mountainman.dyn.dhs.net @ 4:06 pm

    Nothing came up.

  4. #4
    Guest

    Re: dynamic hosting service probs

    Here is the script that should be sending my ip to the hosting service. Im not real sure of my setup on it.
    Code:
    #!/bin/bash
    #
    # ############################################################
    #
    # Description:
    #  On a RedHat Linux system this script 
    #  updates your DHS account if a network link is brought up.
    #  Each time your account is updated an entry is logged using
    #  syslog priority daemon.info with tag dhs. On a (default) RedHat 
    #  system the message will appear in /var/log/messages. 
    #  This script is run automatically (if installed correctly) 
    #  each time a network interface is brought up;
    #  it is called from '/etc/sysconfig/network-scripts/ifup-post'.
    #
    # Tested systems: 
    #  RedHat Linux 5.2, 6.1 and 6.2.
    #
    # Installation:
    #  You need to have /usr/bin/lynx and /usr/bin/logger.
    #  Install this file as: /sbin/ifup-local 
    #  Adapt the configuration section below to your own needs.
    #  Make it executable!!
    #  Bring up your internet connection.
    #
    # Author: Peter van Gils
    # E-mail: peter@driehoven.2y.net
    #
    # History:
    # 1.0  ??-???-???? First release.
    # 1.1  13-Aug-2000 Fixed for bash-1.14.7-22.i386.rpm and
    #          lynx-2.8.3-2.i386.rpm. Thanks to Doug VanLeuven.
    # 1.2  25-Sep-2000 Replaced mail functionality by syslog 
    #          functionality. (Sending mail during startup
    #          may cause sendmail *not* to start?!)
    # 1.3  18-Nov-2000 Added check: only update IP if it has
    #          changed since last update. Also added
    #          remark about proxy support. Thanks to Kyle Sallee.
    #
    # ############################################################
    
    # Your configuration goes here:
    DHSDOMAIN="dyn.dhs.org" # or another sub-domain
    DHSHOST="mountainman"
    DHSUSER="******"
    DHSPASSWD="*******"
    DHSINTERFACE="ppp0"   # or another interface, for example eth0
    
    # Uncomment the line below and fill in your proxy if you need 
    # proxy support (not tested).
    # export http_proxy="http://ip.address:port/"
    
    # No user servicable parts below ;-)
    LOGGER=/usr/bin/logger
    LYNX=/usr/bin/lynx
    DHSURL="http://members.dhs.org/nic/hosts"
    DHSIP=`/sbin/ifconfig $1 | /bin/grep inet | /usr/bin/cut -f 2 -d':' | /usr/bin/cut -f 1 -d' '`
    IPFILE="/tmp/dhs.ip.$DHSHOST.$DHSDOMAIN"
    
    if [ "$1" = "$DHSINTERFACE" -a x"$DHSIP" != x`cat "$IPFILE"` ]; then
        DHSCOMMAND="hostscmd=edit&hostscmdstage=2&type=4&updatetype=Online&domain=${DHSD
    OMAIN}&hostname=${DHSHOST}&ip=${DHSIP}&submit=Update&cloak=&cloak_title=&offline
    _url=&mx=\n---\n"
        export TERM=linux
        DHSRESULT=`echo ${DHSCOMMAND} | $LYNX -auth=${DHSUSER}:${DHSPASSWD} -post_data ${DHSURL} | grep Updating`
        $LOGGER -p daemon.info -t dhs interface=$DHSINTERFACE, host=$DHSHOST, ip=$DHSIP
        $LOGGER -p daemon.info -t dhs result=$DHSRESULT
        echo "$DHSIP" > "$IPFILE"
    fi
    
    exit 0

  5. #5

    Re: dynamic hosting service probs

    Just scanning that it looks allright to me.

    It might be working. It seg faults in konq though.

  6. #6
    Guest

    Re: dynamic hosting service probs

    it looks right to me also. thats the problem. Dont know what to check now.

  7. #7
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811

    Re: dynamic hosting service probs

    Hmmm perhaps this gives some idear as to why:
    redhead@ask{51} ~> host mountainman.dyn.dhs.net
    Host not found.
    redhead@ask{52} ~> host www.mountainman.dyn.dhs.net
    Host not found.
    redhead@ask{53} ~> host -t ns dyn.dhs.net
    Host not found.
    redhead@ask{54} ~> host -t ns dhs.net
    dhs.net name server ns2.readyhosting.com
    dhs.net name server ns1.readyhosting.com
    redhead@ask{59} ~> host dyn.dhs.net ns2.readyhosting.com
    Using domain server:
    Name: ns2.readyhosting.com
    Address: 63.119.175.104
    Aliases:

    Host not found.
    redhead@ask{56} ~> host www.mountainman.dyn.dhs.net ns2.readyhosting.com
    Using domain server:
    Name: ns2.readyhosting.com
    Address: 63.119.175.104
    Aliases:

    Host not found.
    redhead@ask{57} ~> host mountainman.dyn.dhs.net ns2.readyhosting.com
    Using domain server:
    Name: ns2.readyhosting.com
    Address: 63.119.175.104
    Aliases:

    Host not found.
    redhead@ask{58} ~> host mountainman.dhs.net ns2.readyhosting.com
    Using domain server:
    Name: ns2.readyhosting.com
    Address: 63.119.175.104
    Aliases:

    Host not found.
    redhead@ask{61} ~> host -t ns dyn.dhs.org
    dyn.dhs.org name server ns1.dhs.org
    dyn.dhs.org name server ns2.dhs.org
    redhead@ask{64} ~> host mountainman.dyn.dhs.org ns1.dhs.org
    Using domain server:
    Name: ns1.dhs.org
    Address: 63.175.98.30
    Aliases:

    mountainman.dyn.dhs.org has address 32.100.156.219
    Could it be the server to report it to is dhs.net instead of dyn.dhs.net
    <edit> On second readthrough it gives your correct IP with .org instead of .net.. </edit>

  8. #8
    Guest

    Re: dynamic hosting service probs

    I will give it a try and see. it takes about 10 minutes (or so it says) for ip changes to take effect, so please bare with me. back in a few.
    Ok, back again. give me a few more minutes and try it. I changed the part for hte domain from dyn.dhs.net to just dhs.net.
    Sorry, i mean .org
    :

  9. #9
    Guest

    Re: dynamic hosting service probs

    ok.looking through my /var/log/messges, it looks like I am trying to send the info to the hosting service, but it is not successfully recieving it. I know the username and password is correct. That is an ip I manually entered about an hour ago.

  10. #10
    Guest

    Re: dynamic hosting service probs

    ok, changed some stuff again and checked /var/log/messages. It looks like it successfully updated the dns server there. Wait about 10 minutes or so and let me know if you get anything.
    Do I need to change the name in my apache server to match what the dhs server says?

    OK, dns has been updated. Someone please try it out.

Similar Threads

  1. Dynamic Disk
    By omidkamangar in forum Linux - General Topics
    Replies: 2
    Last Post: 10-02-2006, 04:05 PM
  2. Dynamic IP
    By jro in forum Linux - General Topics
    Replies: 13
    Last Post: 08-09-2005, 01:43 PM
  3. Dynamic DNS
    By pyfsapple in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 01-17-2003, 10:19 AM
  4. Apache and dynamic dns
    By Jeepsta in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 12-13-2001, 06:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •