千家信息网

ez-ipupdate的移植

发表于:2025-02-06 作者:千家信息网编辑
千家信息网最后更新 2025年02月06日,1.下载ez-ipupdate-3.0.10.tgz源码包tar xvf ez-ipupdate-3.0.10.tgz2.修改代码vi conf_file.c添加 #includevi ez-ipup
千家信息网最后更新 2025年02月06日ez-ipupdate的移植

1.下载ez-ipupdate-3.0.10.tgz源码包

tar xvf ez-ipupdate-3.0.10.tgz

2.修改代码

vi conf_file.c

添加 #include

vi ez-ipupdate.c
查找"no update needed at this time"
注释掉那几行

else

{

fprintf(stderr, "no update needed at this time\n");

}

3.进入目录编译

[root@tooth local ez-ipupdate-3.0.10]./configure

[root@tooth local ez-ipupdate-3.0.10] vi Makefile

CC=mipsel-linux-gcc

CPP = mipsel-linux-gcc -E

保存退出

[root@tooth local ez-ipupdate-3.0.10]make

4.移植并配置信息

移植ez-ipupdate和qdns.conf 到开发板

[root@tooth local]# vi qdns.conf
service-type=qdns
user=网站注册的账户和密码
host=申请的免费域名
interface=eth0     绑定的网口
max-interval=2073600
cache-file=/tmp/ez-ipupdate.cache

5.启动程序

[root@tooth local]./ez-ipupdate -c ./qdns.conf

也可以用shell执行如下命令

ez-ipupdate -h 域名 -i 网口 -S 服务类型 -u 用户名:密码

不报错就可以。

6.测试

[root@tooth local]#ping 申请的域名
PING tooth.3322.org (192.168.1.10) 56(84) bytes of data.
64 bytes from 192.168.1.10: icmp_seq=0 ttl=0 time=0.070 ms
64 bytes from 192.168.1.10: icmp_seq=1 ttl=0 time=0.037 ms
64 bytes from 192.168.1.10: icmp_seq=2 ttl=0 time=0.036 ms


0