Linux(RHEL 4)系列 之 DNS配置
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-04-29
|
[root@localhost ~]# ifconfig eth0 //查看网卡信息eth0 Link encap:Ethernet HWaddr 00:0C:29:07:48:16 inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe07:4816/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:100 errors:0 dropped:0 overruns:0 frame:0 TX packets:51 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:19566 (19.1 KiB) TX bytes:6000 (5.8 KiB) Interrupt:185 Base address:0x2000[root@localhost ~]# rpm -qa|grep bind //查看是否安装bind所要的包,没有就用rpm安装bind-libs-9.2.4-16.EL4bind-9.2.4-16.EL4ypbind-1.17.2-8bind-chroot-9.2.4-16.EL4bind-utils-9.2.4-16.EL4[root@localhost ~]# vi /etc/hosts //编辑主机hosts文件# Do not remove the following line, or various programs# that require network functionality will fail.127.0.0.1 localhost.localdomain localhost192.168.0.1 www.company.com[root@localhost ~]# vi /etc/resolv.conf //编辑域名解析resolve文件; generated by /sbin/dhclient-script#search localdomain#nameserver 192.168.59.1search company.comnameserver 192.168.0.1nameserver 192.168.0.1[root@localhost ~]# cat /etc/named.conf //编辑主配置named文件//// named.conf for Red Hat caching-nameserver//options { directory "/var/named"; dump-file "/var/named/data/cache_dump.db";[root@localhost named]#
|
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn
为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!
|