Red Hat Linux 5.4 DDNS(DHCP+DNS)详细配置过程
挂载ISO
650) this.width=650;\" alt=\"\" src=\"/uploads/allimg/110725/19151149C-0.jpg\" border=\"0\" />
安装DNS软件,注意此版本必须在9.0以上才可以
650) this.width=650;\" alt=\"\" src=\"/uploads/allimg/110725/1915112532-1.jpg\" border=\"0\" />
安装DHCP软件,注意此版本必须在3.0以上才可以
650) this.width=650;\" alt=\"\" src=\"/uploads/allimg/110725/191511H52-2.jpg\" border=\"0\" />
查看配置文件,提示参考文件的路径
650) this.width=650;\" alt=\"\" src=\"/uploads/allimg/110725/1915114D4-3.jpg\" border=\"0\" />
复制参考文件
cp /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcpd.conf
过滤文件
cat /etc/dhcpd.conf | grep -v "#" | grep -v "^$" > /root/123.txt
覆盖文件
650) this.width=650;\" alt=\"\" src=\"/uploads/allimg/110725/191511Kb-4.jpg\" border=\"0\" />
编辑配置文件
650) this.width=650;\" alt=\"\" src=\"/uploads/allimg/110725/191511L25-5.jpg\" border=\"0\" />
参数如下
650) this.width=650;\" alt=\"\" src=\"/uploads/allimg/110725/191511J38-6.jpg\" border=\"0\" />
启动服务
650) this.width=650;\" alt=\"\" src=\"/uploads/allimg/110725/19151144Y-7.jpg\" border=\"0\" />
进入DNS配置文件目录
650) this.width=650;\" alt=\"\" src=\"/uploads/allimg/110725/1915113514-8.jpg\" border=\"0\" />
复制参考文件,注意加上-p选项
cp -p named.caching-nameserver.conf named.conf
过滤文件
cat named.conf | grep -v "//" | grep -v "^$" > /root/456.txt
覆盖文件
650) this.width=650;\" alt=\"\" src=\"/uploads/allimg/110725/1915115626-9.jpg\" border=\"0\" />
编辑配置文件
650) this.width=650;\" alt=\"\" src=\"/uploads/allimg/110725/1915115Y4-10.jpg\" border=\"0\" />
注释掉一下内容,使用“//”
650) this.width=650;\" alt=\"\" src=\"/uploads/allimg/110725/1915113456-11.jpg\" border=\"0\" />
添加一个主要区域benet.com
zone "benet.com" IN {
type master;
file "benet.com.zone";
};
效果如下
650) this.width=650;\" alt=\"\" src=\"/uploads/allimg/110725/19151164X-12.jpg\" border=\"0\" />
进入区域数据库目录
650) this.width=650;\" alt=\"\" src=\"/uploads/allimg/110725/1915113c2-13.jpg\" border=\"0\" />