Transplantation of ez-ipupdate
1. Download ez-ipupdate-3.0.10.tgz Source Package
tar xvf ez-ipupdate-3.0.10.tgz
2. modify the code
vi conf_file.c
Add #include
vi ez-ipupdate.c
Find "no update needed at this time"
Comment out those lines.
else
{
fprintf(stderr, "no update needed at this time\n");
}
3. Enter directory compilation
[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
save and exit
[root@tooth local ez-ipupdate-3.0.10]make
4. Migrate and configure information
Migrate ez-ipupdate and qdns.conf to the development board
[root@tooth local]# vi qdns.conf
service-type=qdns
user= account and password registered on the website
host= free domain name requested
interface=eth0 bound portal
max-interval=2073600
cache-file=/tmp/ez-ipupdate.cache
5. start-up procedure
[root@tooth local]./ ez-ipupdate -c ./ qdns.conf
You can also use shell to execute the following command
ez-ipupdate -h Domain Name-i Portal-S Service Type-u User Name: Password
Just don't make mistakes.
6. test
[root@tooth local]#ping domain name requested
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