LINUX.ORG.RU
решено ФорумAdmin

Посоветуйте dynamic dns клиент, который будет нормально работать с http://freedns.afraid.org/


0

0

Многие перепробовал, но что-то не пашут. И желательно поясните как настроить.

root@citadel:~# inadyn -u USERMANE -p PASS -a EXAMPLE.dyndns.org
INADYN: Started 'INADYN version 1.96.2' - dynamic DNS updater.
I:INADYN: IP address for alias 'flareguner.dyndns.org' needs update to '83.167.90.197'
W:INADYN: Error validating DYNDNS svr answer. Check usr,pass,hostname,abuse...!
W:INADYN: DYNDNS Server response:
HTTP/1.1 200 OK
Date: Tue, 03 Aug 2010 14:23:23 GMT
Server: Apache
Content-Type: text/plain
Connection: close

badauth
W:'RC_DYNDNS_RSP_NOTOK' (0x48) updating the IPs. (it 0)
E: The response of DYNDNS svr was an error! Aborting.



                        INADYN Help

        INADYN is a dynamic DNS client. That is, it maintains the IP address
of a host name. It periodically checks whether the IP address of the current machine
(the external visible IP address of the machine that runs INADYN) has changed.
If yes it performs an update in the dynamic dns server.

Typical usage: 
        -for dyndns.org system: 
                inadyn -u username -p password -a my.registrated.name 
        -for freedns.afraid.org:
                 inadyn --dyndns_system default@freedns.afraid.org -a my.registrated.name,hash -a anothername,hash2
                         'hash' is extracted from the grab url batch file that is downloaded from freedns.afraid.org

Parameters:
        '--help': help
        '-h': help
        '--username': your  membername/ hash
        '-u': your  membername / hash
        '--password': your password. Optional.
        '-p': your password
        '--alias': alias host name. this option can appear multiple times.
        '-a': alias host name. this option can appear multiple times.
        '--input_file': the file containing [further] inadyn options.The default config file, '/etc/inadyn.conf' is used if inadyn is called without any cmd line options.
        '--ip_server_name': <srv_name[:port] local_url> - local IP is detected by parsing the response after returned by this server and URL. 
                The first IP in found in http response is considered 'my IP'. 
                Default value: 'checkip.dyndns.org /
        '--dyndns_server_name': [<NAME>[:port]] 
                The server that receives the update DNS request.  
                Allows the use of unknown DNS services that accept HTTP updates.
                If no proxy is wanted, then it is enough to set the dyndns system. The default servers will be taken.
        '--dyndns_server_url': <name>
        full URL relative to DynDNS server root.
        Ex: /some_script.php?hostname=

        '--dyndns_system': [NAME] - optional DYNDNS service type. SHOULD be one of the following: 
                -For dyndns.org DNS system: dyndns@dyndns.org OR statdns@dyndns.org OR customdns@dyndns.org.
                -For freedns.afraid.org DNS system: default@freedns.afraid.org
                -For www.zoneedit.com DNS system: default@zoneedit.com
                -For www.no-ip.com DNS system: default@no-ip.com
                -For generic DNS system: custom@http_svr_basic_auth
                DEFAULT value is intended for default service at dyndns.org (most users): dyndns@dyndns.org
        '--proxy_server': [NAME[:port]]  - the http proxy server name and port. Default is none.
        '--update_period': how often the IP is checked. The period is in [ms]. Default is about 1 min. Max is 10 days
        '--update_period_sec': how often the IP is checked. The period is in [sec]. Default is about 1 min. Max is 10 days
        '--forced_update_period': how often the IP is updated even if it is not changed. [in sec]
        '--log_file': log file path abd name
        '--background': run in background. output to log file or to syslog
        '--verbose': set dbg level. 0 to 5
        '--iterations': set the number of DNS updates. Default is 0, which means infinity.
        '--syslog': force logging to syslog . (e.g. /var/log/messages). Works on **NIX systems only.
        '--change_persona': after init switch to a new user/group. Parameters: <uid[:gid]> to change to. Works on **NIX systems only.
        '--version': print the version number




W:INADYN: Main: Error 'RC_DYNDNS_RSP_NOTOK' (0x48).
root@citadel:~# 


Последнее исправление: ShTH (всего исправлений: 1)

Сначала нужно получить Direct URL здесь. Он будет примерно такого вида:

http://freedns.afraid.org:8080/dynamic/update.php?x2YydmPWNDXROMGLeBQVzxUkFUUTo0Nz2yNzgw
Нам нужен только hash:
x2YydmPWNDXROMGLeBQVzxUkFUUTo0Nz2yNzgw
Далее, запускаем inadyn:
inadyn --dyndns_system default@freedns.afraid.org -a $DOMAIN,$HASH -u $USER -p $PASSWORD
$DOMAIN, $HASH, $USER, $PASSWORD — вместо этого нужно подставить твой домен, его hash, имя пользователя и пароль.

edigaryev ★★★★★
()
Ответ на: комментарий от edigaryev

Большое спасибо за развернутый ответ! Поясни пожалуйста, каким скриптом можно получить только хэш?

ShTH
() автор топика
Ответ на: комментарий от edigaryev

Хэш не меняется судя по всему. Problem solved, thanks.

ShTH
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.