欢迎来到天天文库
浏览记录
ID:36858477
大小:380.55 KB
页数:14页
时间:2019-05-16
《搭建简单的DDNS服务器》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、搭建简单的DDNS服务器版本:2文档:YunlinFang日期:7Nov,2009Blog:http://blog.afang.org/MSN:cst05001@hotmail.comGTalk:cst05001@gmail.com环境OS:RedHatEnterpriseLinux5update4Network:192.168.122.0/24前言在baidu上搜DDNS,很多地方把DDNS解释为DHCP+DNS,其实这是牵强附会。DDNS是DynamicDomainNameServer的简称。DHCP分配IP的时候更新DN
2、S服务器域名解析记录,这就是DDNS所做的事情,而是否更新客户端的hostname显示倒是其次。操作这是DNS服务器的环境:[root@server~]#cat/etc/sysconfig/networkNETWORKING=yesNETWORKING_IPV6=noHOSTNAME=server.afang.org[root@server~]#cat/etc/sysconfig/network-scripts/ifcfg-eth0#RealtekSemiconductorCo.,Ltd.RTL-8139/8139C/8139
3、C+DEVICE=eth0BOOTPROTO=staticIPADDR=192.168.122.254NETMASK=255.255.255.0HWADDR=54:52:00:4F:D5:68ONBOOT=yes[root@server~]#ifconfigeth0Linkencap:EthernetHWaddr54:52:00:4F:D5:68inetaddr:192.168.122.254Bcast:192.168.122.255Mask:255.255.255.0inet6addr:fe80::5652:ff:fe4f:
4、d568/64Scope:LinkUPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1RXpackets:280errors:0dropped:0overruns:0frame:0TXpackets:232errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:1000RXbytes:24404(23.8KiB)TXbytes:31850(31.1KiB)Interrupt:10loLinkencap:LocalLoopbackin
5、etaddr:127.0.0.1Mask:255.0.0.0inet6addr:::1/128Scope:HostUPLOOPBACKRUNNINGMTU:16436Metric:1RXpackets:180errors:0dropped:0overruns:0frame:0TXpackets:180errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:0RXbytes:14680(14.3KiB)TXbytes:14680(14.3KiB)[root@serve
6、r~]#安装配置DNS服务器[root@server~]#cd/misc/cd/Server[root@serverServer]#rpm-ivhbind-9.3.6-4.P1.el5.i386.rpmbind-chroot-9.3.6-4.P1.el5.i386.rpmcaching-nameserver-9.3.6-4.P1.el5.i386.rpmwarning:bind-9.3.6-4.P1.el5.i386.rpm:HeaderV3DSAsignature:NOKEY,keyID37017186Preparing..
7、.###########################################[100%]1:bind###########################################[33%]2:bind-chroot###########################################[67%]3:caching-nameserver###########################################[100%][root@serverServer]#cd/var/named
8、/chroot/etc/[root@serveretc]#lslocaltimenamed.caching-nameserver.confnamed.rfc1912.zonesrndc.key[root@serveretc]#mvnamed.caching-nameserve
此文档下载收益归作者所有