step 1 安装lynx
yum -y install lynx
step 2 修改/etc/sysconfig/network-scripts/ifup-ppp
vi /etc/sysconfig/network-scripts/ifup-ppp
找到:
# check that xDSL connection
if [ “$TYPE” = “xDSL” ] ; then
if [ -x /sbin/adsl-start -o -x /usr/sbin/adsl-start ] ; then
adsl-start /etc/sysconfig/network-scripts/$CONFIG
exit $?
else
/usr/bin/logger -p daemon.info -t ifup-ppp /
$”adsl-start does not exist or is not executable for ${DEVICE}”
exit 1
按i进入编辑模式,将内容改为:
# check that xDSL connection
if [ “$TYPE” = “xDSL” ] ; then
if [ -x /sbin/adsl-start -o -x /usr/sbin/adsl-start ] ; then
adsl-start /etc/sysconfig/network-scripts/$CONFIG
/usr/bin/lynx -mime_header -auth=username:password “http://www.3322.org/dyndns/update?system=dyndns&hostname=mydns.3322.org”
exit $?
else
/usr/bin/logger -p daemon.info -t ifup-ppp /
$”adsl-start does not exist or is not executable for ${DEVICE}”
exit 1
按Esc,:wq保存退出
*注:/usr/bin/lynx -mime_header -auth=username:password “http://www.3322.org/dyndns/update?system=dyndns& hostname=mydns.3322.org”中“username”为您在3322.org的用户名,”password”为密码,mydns为你 的动态域名
yum -y install lynx
step 2 修改/etc/sysconfig/network-scripts/ifup-ppp
vi /etc/sysconfig/network-scripts/ifup-ppp
找到:
# check that xDSL connection
if [ “$TYPE” = “xDSL” ] ; then
if [ -x /sbin/adsl-start -o -x /usr/sbin/adsl-start ] ; then
adsl-start /etc/sysconfig/network-scripts/$CONFIG
exit $?
else
/usr/bin/logger -p daemon.info -t ifup-ppp /
$”adsl-start does not exist or is not executable for ${DEVICE}”
exit 1
按i进入编辑模式,将内容改为:
# check that xDSL connection
if [ “$TYPE” = “xDSL” ] ; then
if [ -x /sbin/adsl-start -o -x /usr/sbin/adsl-start ] ; then
adsl-start /etc/sysconfig/network-scripts/$CONFIG
/usr/bin/lynx -mime_header -auth=username:password “http://www.3322.org/dyndns/update?system=dyndns&hostname=mydns.3322.org”
exit $?
else
/usr/bin/logger -p daemon.info -t ifup-ppp /
$”adsl-start does not exist or is not executable for ${DEVICE}”
exit 1
按Esc,:wq保存退出
*注:/usr/bin/lynx -mime_header -auth=username:password “http://www.3322.org/dyndns/update?system=dyndns& hostname=mydns.3322.org”中“username”为您在3322.org的用户名,”password”为密码,mydns为你 的动态域名
今天的文章linux配置动态dns_自带动态域名解析的路由分享到此就结束了,感谢您的阅读。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:http://bianchenghao.cn/77952.html