- 1、本文档共13页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Linux 下配置DNS server
Linux 下配置DNS server
DNS 服务器的做法:
网络设置:
1.vi /etc/sysconfig/network-scripts/ifcfg-eth0
ifcfg-eth0文件内容如下:
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=static (dhcp)
HWADDR=00:0c:29:47:64:60
ONBOOT=yes
NETMASK=子网掩码
IPADDR=服务器IP地址
GATEWAY=网关IP地址
TYPE=Ethernet
2./etc/rc.d/init.d/network restart
服务器的配置:
1. mkdir /mnt/cdrom
2. mount –t iso9660 /dev/cdrom /mnt/cdrom
3. cd /mnt/cdrom/Server
4. ls bind*
5. rpm -ivh bind-9.3.3-7.el5.i386.rpm
6. rpm -ivh bind-chroot-9.3.3-7.el5.i386.rpm
7. rpm -ivh bind-utils-9.3.3-7.el5.i386.rpm
8. ls caching*
9. rpm -ivh caching-nameserver-9.3.3-7.el5.i386.rpm
10. cd /var/named/chroot/etc/
11. cp -a named.caching-nameserver.conf named.conf
12. vi named.conf
named 配置文件的内容如下:
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { ::1; };
directory /var/named;
dump-file /var/named/data/cache_dump.db;
statistics-file /var/named/data/named_stats.txt;
memstatistics-file /var/named/data/named_mem_stats.txt;
query-source port 53;
query-source-v6 port 53;
allow-transfer { 10 };
allow-query { any; };
datasize 100M;
recursion yes;
};
logging {
channel default_debug {
file data/named.run;
severity dynamic;
};
};
view localhost_resolver {
match-clients { any; };
match-destinations { any; };
recursion yes;
include /etc/named.rfc1912.zones;
};
注意:
复制一个named.conf
文档评论(0)