標籤:
- 先掛載鏡像,然後配置yum,然後安裝yum install -y bind
- 配置靜態 IP.DNS就是他本身的IP地址.
- 修改DNS的設定檔,在後面加入地區配置資訊。vim /etc/named.conf
- zone "tcbuu.cn" IN { type master; file "tcbuu.cn.zone";};zone "227.168.192.in-addr.arpa" IN { type master; file "227.168.192.in-addr.arpa.zone";}; 5.在/var/named/路徑下建立兩個和設定檔相同名字的檔案6. 可以直接拷貝/var/named/目錄下的兩個樣本檔案進行修改
- cp -p named.loopback 227.168.192.in-addr.arpa.zone
- cp -p named.localhost tcbuu.cn.zone
- 7.tcbuu.cn.zone
$TTL 1D
@ IN SOA tcbuu.com. root.tcbuu.com. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS www.tcbuu.com.
www A 172.16.100.192
8.227.168.192.in-addr.arpa.zone
$TTL 1D
@ IN SOA 100.16.172.in-addr.arpa. root.tcbuu.com. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ NS www.tcbuu.com.
A 127.0.0.1
AAAA ::1
195 PTR www.tcbuu.com.
9.vi /etc/resolv.conf 更改DNS地址為本機IP 10.service named restart 重啟服務測試
Red Hat 7.0 DNS服務配置筆記