日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

Linux 網(wǎng)管 123 --- 第7章. 自訂的組態(tài)及管理內(nèi)容 -2.DNS( 二 )


我們允許位於123.12.41.40;的主機(可能是我們網(wǎng)域上的一個次要;DNS伺服器)請求;zone;transfer 。如果您
漏了這個選項,位於;Internet;的任何人都可以請求這個轉(zhuǎn)換 。因為這些資訊常被存心不良的人運用,我強
烈建議您除了到次要;DNS伺服器以外都限制;zone;transfer,或使用;loopback;address,;``127.0.0.1""作為替代 。;

現(xiàn)在您可以像在第三步驟組態(tài)``/etc/named.conf""檔一樣,設定位於;``var/named/"";目錄的;;DNS;table; 。
第一次組態(tài);DNS;資料庫檔是個大工程,并且超出本文討論圍 。有一些線上及印刷品型式的指南應該參考 。然而下
面有提供;一些例 。;
位於;``/var/named/mydomain_name.db"";正向查詢檔的例列:;
This;is;the;Start;of;Authority;(SOA);record.;;Contains;contact
&;other;information;about;the;name;server.;;The;serial;number
must;be;changed;whenever;the;file;is;updated;(to;inform;secondary
servers;that;zone;information;has;changed).
@;IN;SOA;mydomain.name.;;postmaster.mydomain.name.;(
19990811;;Serial;number
3600;;;;;;1;hour;refresh
300;;;;;;;5;minutes;retry
172800;;;;2;days;expiry
43200;);;;12;hours;minimum

List;the;name;servers;in;use.;;Unresolved;(entries;in;other;zones)
will;go;to;our;ISP"s;name;server;isp.domain.name.com
IN;NS;;;mydomain.name.
IN;NS;;;isp.domain.name.com.

This;is;the;mail-exchanger.;;You;can;list;more;than;one;(if
applicable),;with;the;integer;field;indicating;priority;(lowest
being;a;higher;priority)
IN;MX;;;mail.mydomain.name.

Provides;optional;information;on;the;machine;type;&;operating;system
used;for;the;server
IN;HINFOPentium/350;;;;;LINUX

A;list;of;machine;names;&;addresses
spock.mydomain.name.;;;;IN;A;;;;123.12.41.40;;;;;OpenVMS;Alpha
mail.mydomain.name.;;;;;IN;A;;;;123.12.41.41;;;;;Linux;(main;server)
kirk.mydomain.name.;;;;;IN;A;;;;123.12.41.42;;;;;Windows;NT;(blech!)

Including;any;in;our;other;class;C"s
twixel.mydomain.name.;;;IN;A;;;;126.27.18.161;;;;Linux;test;machine
foxone.mydomain.name.;;;IN;A;;;;126.27.18.162;;;;Linux;devel.;kernel

Alias;(canonical);names
gopher;;;;;;IN;CNAMEmail.mydomain.name.
ftp;IN;CNAMEmail.mydomain.name.
www;IN;CNAMEmail.mydomain.name.



位於;``/var/named/123_12.rev"";反向查詢檔的例列:;
This;is;the;Start;of;Authority;record.;;Same;as;in;forward;lookup;table.
@;IN;SOA;mydomain.name.;;postmaster.mydomain.name.;(
19990811;;Serial;number
3600;;;;;;1;hour;refresh
300;;;;;;;5;minutes;retry
172800;;;;2;days;expiry
43200;);;;12;hours;minimum

Name;servers;listed;as;in;forward;lookup;table
IN;NS;;;mail.mydomain.name.
IN;NS;;;isp.domain.name.com.

A;list;of;machine;names;&;addresses,;in;reverse.;;We;are;mapping
more;than;one;class;C;here,;so;we;need;to;list;the;class;B;portion
as;well.
40.41;;;;;;;IN;PTR;;;;spock.mydomain.name.
41.41;;;;;;;IN;PTR;;;;mail.mydomain.name.
42.41;;;;;;;IN;PTR;;;;kirk.mydomain.name.

As;you;can;see,;we;can;map;our;other;class;C"s;as;long;as;they;are
under;the;123.12.*;class;B;addresses
24.42;;;;;;;IN;PTR;;;;tsingtao.mydomain.name.
250.42;;;;;;IN;PTR;;;;redstripe.mydomain.name.
24.43;;;;;;;IN;PTR;;;;kirin.mydomain.name.
66.44;;;;;;;IN;PTR;;;;sapporo.mydomain.name.

No;alias;(canonical);names;should;be;listed;in;the;reverse;lookup
file;(for;obvious;reasons).



任何其他的;reverse;搜尋檔需要;map;位址,在不同的;class;B;(像是;126.27.*);會被建立,并且會和上面
的反向查詢檔更相似 。;

確定;named;daemon;正在執(zhí)行 。這個;daemon;通常在系統(tǒng)開機時由``/etc/rc.d/init.d/named"";這個檔案啟動 。;
您也可以手動地啟動及停止這個;daemon;;;分別是鍵入;``named;start"";及;``named;stop"" 。;

無論對;DNS;table;做了什麼改變,應該鍵入;``/etc/rc.d/init.d/named;restart""重新啟動;DNS;伺服器 。

推薦閱讀