歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> Linux資訊 >> 更多Linux

在Redhat9.0上詳盡配置DNS服務

   前提:機器名為bak.5iLinux.com 域名為5ilinux.com    1.從安裝盤安裝    rpm -ivh bind-9.2.2-21.i386.rpm    2.增加配置文件    vi /etc/named.conf    ## named.conf - configuration for bind  # # Generated automatically by redhat-config-bind, alchemist et al.  # Any changes not supported by redhat-config-bind should be put  # in /etc/named.custom  # controls { inet 127.0.0.1 allow { localhost; } keys { rndckey; }; };  include "/etc/rndc.key";  options {  Directory "/var/named/";  };    zone "." {  type hint;  file "named.ca";  };    zone "0.0.127.in-addr.arpa" {  type master;  file "0.0.127.in-addr.arpa.zone";  };    zone "localhost" {  type master;  file "localhost.zone";  };    zone "5ilinux.com" {  type master;  file "5ilinux.com.zone";  };    下載named.ca  wget FTP://ftp.rs.internic.net/domain/named.root    下載後改名為named.ca 存在/var/named目錄下    vi /var/named/localhost.zone    $TTL 86400 @ IN SOA @ root.localhost (  1 ; serial  28800 ; refresh  7200 ; retry  604800 ; eXPire  86400 ; ttl  )  IN NS localhost.  @ IN A 127.0.0.1    vi /var/named/0.0.127.in-addr.arpa.zone    $TTL 86400 @ IN SOA localhost. root.localhost (  2 ; serial  28800 ; refresh  7200 ; retry  604800 ; expire  86400 ; ttl  )    @ IN NS localhost.    1 IN PTR localhost.  1 IN PTR bak.    vi /var/named/5ilinux.com.zone    $TTL 86400 @ IN SOA bak.wapya.com. root.localhost (  3 ; serial  28800 ; refresh  7200 ; retry  604800 ; expire  86400 ; ttl  )    IN NS bak.wapya.com.    www IN A 210.51.0.124  bak IN A 210.51.0.124  mail IN CNAME www  wap IN A 210.51.0.122  5ilinux.com IN MX 10 www      ok了,就是這些配置文件。為了方便以後查資料,所以把配置過程寫下來  /etc/rc.d/iinit.d/named restart    重啟一下服務就可以用了

 

 




Copyright © Linux教程網 All Rights Reserved