客戶端:
[root@dba1 ~]# vim /etc/resolv.conf 指定dns伺服器是誰
dns解析過程
客戶端:訪問ftp.uplooking.com
先查詢本地檔案hosts
沒有再去查詢指定的dns伺服器(快取dns伺服器)202.106.0.20 202.106.46.151
找不到的話,就去找根dns伺服器,再一層層往下查詢
#vim /etc/host.conf
order hosts,bind
安裝:#yum install bind bind-utils bind-chroot caching-nameserver -y
baseurl=
配置:正向解析:a記錄
主配置檔案:
#cd /var/named/chroot/etc/
#vim named.conf
options;
zone "uplooking.com"
;# chown named.named named.conf
區域配置檔案:
# cd /var/named/chroot/var/named/
#vim uplooking.com.zone
$ttl 86400
@ soa dns.uplooking.com. root.uplooking.com. (
201210201
3h15m
1w1d )
ns dns.uplooking.com.
dns.uplooking.com. in a 192.168.100.250
www.uplooking.com. in a 192.168.100.8
ftp.uplooking.com. in a 192.168.100.9
mail.uplooking.com. in a 192.168.100.254
# chown named.named uplooking.com.zone
反向解析:ptr記錄
主配置檔案新增:
zone "100.168.192.in-addr.arpa"
;區域配置檔案:
$ttl 86400
@ soa dns.uplooking.com. root.uplooking.com. (
201210201
3h15m
1w1d )
ns dns.uplooking.com.
8 in ptr dns.uplooking.com.
9 in ptr ftp.uplooking.com.
198 in ptr mail.163.com.
泛網域名稱解析:在正向解析區域配置檔案裡新增
*.uplooking.com. in a 192.168.100.253
[root@dba1 named]# host -t a fjdk.uplooking.com
fjdk.uplooking.com has address 192.168.100.253
別名:www in a 192.168.100.8
ftp in cname www.uplooking.com.
mail in cname www.uplooking.com.
[root@dba1 named]# host -t a mail.uplooking.com
mail.uplooking.com is an alias for www.uplooking.com.
www.uplooking.com has address 192.168.100.8
負載均衡:
www in a 192.168.100.9
www in a 192.168.100.10
www in a 192.168.100.11
mx記錄:
uplooking.com. in mx 10 mail.uplooking.com.
uplooking.com. in mx 11 mail1.uplooking.com.
[root@dba1 named]# host -t mx uplooking.com
uplooking.com mail is handled by 11 mail1.uplooking.com.
uplooking.com mail is handled by 10 mail.uplooking.com.
本身沒有dns區域配置檔案,只快取dns伺服器
#vim named.conf;};
客戶端測試:
[root@localhost ~]# cat /etc/resolv.conf
search localdomain
nameserver 192.168.224.128
本身有dns區域配置檔案,加上forward之後就是**伺服器
**器配置:
在options裡面新增下面幾行:
recursion yes; 開啟遞迴**功能
forward first;
forwarders
;
python學習第13天
讀取 reader csv.reader 開啟的file物件 reader為可迭代物件,可以用for迴圈遍歷他 讀取到字典表 reader csv.dictreader f reader也是可迭代物件,可以用for迴圈遍歷他 寫入 writer csv.write f writer.writerow...
python基礎知識學習第13天
ps main tab鍵 逗號分隔值 comma separated values,csv,有時也稱為字元分隔值,因為分隔字元也可以不是逗號 其檔案以純文字形式儲存 資料 數字和文字 純文字意味著該檔案是乙個字串行,不含必須像二進位制數字那樣被解讀的資料。csv檔案由任意數目的記錄組成,記錄間以某種...
學習NLP的第13天 語言模型
在了解了詞典分詞之後,我們發現一些類似於 商品和服務 的句子並不能被準確地識別。由此,我們設想如何能夠提高準確率?乙個簡單有效的方法就是通過人工置頂分詞結果的優先順序列表,並使用到分詞器中。但是這樣的方法顯然需要大量的人工成本,並不現實。所以我們考慮是否可以通過製作乙個完成分詞的語料庫,通過統計所有...