DDNS ez-ipupdate

1. 3322.org修改過的源碼
http://www.3322.org/download/ez-ipupdate-3.0.10.tgz

2. conf_file.c時提示如下錯誤時,包含errno.h頭文件可解決(37行處增加"#include <errno.h>").
/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in conf_file.o
/lib/libc.so.6: could not read symbols: Bad value

3. 如果要讓域名解析到跟3322.org通信時看到的IP地址,ez-ipupdate.c文件1882行if(address != NULL)改爲if(service->type != SERV_QDNS && address != NULL)
4. 調試命令行
wget -qO- --http-user=seven8seven8 --http-password=7eight7eight "http://www.3322.org/dyndns/update?system=dyndns&hostname=20107788.3322.org&myip=192.168.0.109"
wget -qO- --http-user=seven8seven8 --http-password=7eight7eight "http://www.3322.org/dyndns/update?system=dyndns&hostname=20107788.3322.org"
wget -qO- --http-user=seven8seven8 --http-password=7eight7eight "http://www.3322.org/dyndns/getip?system=dyndns&hostname=20107788.3322.org"

curl -u seven8seven8:7eight7eight -o- "http://www.3322.org/dyndns/update?system=dyndns&hostname=20107788.3322.org&myip=192.168.0.109"
curl -u seven8seven8:7eight7eight -o- "http://www.3322.org/dyndns/update?system=dyndns&hostname=20107788.3322.org"
curl -u seven8seven8:7eight7eight -o- "http://www.3322.org/dyndns/getip?system=dyndns&hostname=20107788.3322.org"

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章