歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> DNS服務配置

DNS服務配置

日期:2017/2/27 9:23:35   编辑:更多Linux
  我們知道dns是域名服務,提供ip和域名轉換的服務。這樣我們就不用記很長的ip 地址 而可以使用好記的名稱來代替如 我的http://www.UC88.domain來訪問/ 我的網頁,mail.uc88,domain來訪問郵件服務,FTP.uc88.domain來訪問我的ftp服務器了~! 相關配置文件有以下幾個: 192.168.25.rev named.conf resolv.conf uc88.domain 詳細配置如下: 192.168.25.rev $TTL 86400 @ IN SOA st.uc88.domain. root.st.uc88.domain. ( 2001111601 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; EXPire 86400 ) ; Minimum @ IN NS st.uc88.domain. @ IN MX 10 mail.uc88.domain. 15 IN PTR st.uc88.domain. named.conf // generated by named-bootconf.pl options { Directory "/var/named"; /* * If there is a firewall between you and nameservers you want * to talk to, you might need to uncomment the query-source * directive below. Previous versions of BIND always asked * questions using port 53, but BIND 8.1 uses an unprivileged * port by default. */ // query-source address * port 53; }; // // a caching only nameserver config // controls { inet 127.0.0.1 allow { localhost; } keys { rndckey; }; }; zone "." IN { type hint; file "named.ca"; }; zone "localhost" IN { type master; file "localhost.zone"; allow-update { none; }; }; zone "0.0.127.in-addr.arpa" IN { type master; file "named.local"; allow-update { none; }; }; zone "uc88.domain" IN { type master; file "uc88.domain"; allow-update { none; }; }; zone "25.168.192.in-addr.arpa" IN { type master; file "192.168.25.rev"; allow-update { none; }; }; include "/etc/rndc.key"; resolv.conf nameserver 192.168.25.15 nameserver 202.96.128.68 uc88.domain $TTL 86400 @ IN SOA st.uc88.domain. root.st.uc88.domain. ( 2001111601 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum @ IN NS st.uc88.domain. @ IN MX 10 mail.uc88.domain.


localhost IN A 127.0.0.1 www IN A 192.168.25.15 ftp IN A 192.168.25.15 mail IN A 192.168.25.15 祝 好運 __________________



Copyright © Linux教程網 All Rights Reserved