Title: Linux ????
1Linux ????
2??? DNS?????????
3??? DNS?????????
- DNS??
- DNS??Domain Name System,??????www.szptt.net.cn(???
?)????????202.96.134.163???IP????DNS,???????????,
????202.96.134.163?????????????DNS???????,??DNS???
?
4??? DNS?????????
2. DNS????
- DNS???????????????,????????
5??? DNS?????????
- DNS?????????
- ??????,?????????????????????????
- ??????
- ????????,?.????
- ????????????,??????
- ?????????????????
- ????????????
- ??????DNS?????????????????
- DNS??(Zone)DNS?????????
6??? DNS?????????
- ??????????
- (1)????????
- ??CN????UK???????
- (2)????????
- l COM????
- l EDU??????
- l NET??????
- l ORG????
- l MIL??????
- l GOV???????
7??? DNS?????????
- ??Internet????????,???????????????,?
- FIRM??????
- SHOP?????????
- WEB?????????????
- ARTS??????????????
- REC??????????????
- INFO???????????
- NOW?????
8??? DNS?????????
- DNS?????
- DNS?????/????????????,???????????????????????
- ???????DNS??3???
- ?????????????????????????????????????????????????
?????????? - ????????????????????????
- ???????????????,????????????????????????,??DNS???
9??? DNS?????????
- DNS????????
- ????????
- ??????
- ???????
10??? DNS?????????
11??? DNS?????????
12DNS?????????
??? DNS?????????
- (1)DNS???????????,?????????????????
- (2)??????????????,?????????,???????,??????????????
??????? - (3)?????????????,??????????????????????,??????????
???????????????(????)??????????? - (4)??????????????????????,?????????????????,??????
?,?????????????????? - (5)?????,??????????
- (6)??????????????????,???????,?????????????
13??? DNS?????????
- ??????????
- BIND???C/S??,??????????,????????????,?????????????
? - ??DNS???,????????????????????(????),?????????????/
?????? - ??/etc/host.conf
- ??/etc/resolv.conf
14??? DNS?????????
- ????????????BIND
- ???????
- ???????BIND
- rpm qa grep bind
- ??BIND
- mount /dev/cdrom /mnt/cdrom
- cd /mnt/cdrom//RPMS
- rpm ivh bind.i386.rpmcdeject
- mount /dev/cdrom /mnt/cdrom
- cd /mnt/cdrom//RPMS
- rpm ivh bind-utils.i386.rpm
- rpm ivh redhat-config-bind.noarch.rpm
- cd
- eject
15??? DNS?????????
- ?????BIND
- ???????
- service named start ??
- ? /etc/rc.d/init.d/named start
- pstree grep named ???????
16??? DNS?????????
/etc/named.conf ?????named??,?????????????????
/var/named/named.ca ????????,???????????????
/var/named/localhost.zone ?????localhost???????IP??
/var/named/named.local ???????IP???????localhost
/var/named/name2ip.conf ???????IP??????
/var/named/ip2name.conf ?IP????????????
17??? DNS?????????
- ??????????
- ?????named.conf
-
- named.conf????
acl ??IP?????????
controls ??rndc?????????
include ???????????????
key ?????????
logging ?????????
option ????????
server ??????????
trusted-keys ??????DNSSEC????
zone ?????
18??? DNS?????????
- ??????????
- ?????named.conf
- option
- ????
- ????
-
-
- named.conf?????????
recursion yesno ???????DNS???,???yes
Transfer-format one-answermany-answer ??????????????????,????one-answer
Directory path ???????????????,???/var/named
Forwarders IPaddr ?????
19??? DNS?????????
- ??????????
- ?????named.conf
- Zone zone-name IN
- type ??
- file??
- ????
-
- named.conf????????
Type masterhintslave ???????? Master???????????? Hint???????????????? ?????? Slave?????????????
File filename ??????????????????
20??? DNS?????????
- ??????????
- /var/named/named.ca??
- ??ftp//rs.internic.net/domain/named.root
???????? - ??
- ????,?????????
- ???? . ,????????DNS??????,??????4??????
-
21??? DNS?????????
- ??????????
- ???
- ??????????????,?????????????????????????
??(RR)????????? - ????
- ????????SOA RR??,?????NS RR?
- ???????????A RR? MX RR?CNAME
RR?????????????PTR RR? - RR?????
- name ttl IN type rdata
22??? DNS?????????
- ??????????
- ???
- ?????
- include
- generate
- origin
- ttl
23??? DNS?????????
- ??jamond.net??????
- ??
- ?????????????
- vi /etc/named.conf
-
- Zone jamond.net
- type master
- file jamond.net.hosts
-
- Zone 1.168.192.in-addr.arpa
- type master
- file 192.168.1.rev
-
24??? DNS?????????
- ??jamond.net??????
- ??
- ????????????
- vi /var/named/jamond.net.hosts
- ttl 1D
- origin jamond.net.
- _at_ IN SOA shrike.jamond.net.
root.shrike.jamond.net. ( - 20060930 serial
- 86400 refresh
- 3600 retry
- 3600000 expire
- 1D) minimum
- IN NS shrike. jamond.net.
- IN A 192.168.1.200
- shrike IN A 192.168.1.200
- www IN Cname shrike
25??? DNS?????????
- ??jamond.net??????
- ??
- ????????????
- vi /var/named/192.168.1.rev
- TTL 1D
- _at_ IN SOA shrike.jamond.net.
root.shrike.jamond.net ( - 20020930 serial
- 28800 refresh
- 14400 retry
- 3600000 expire
- 86400) minimum
- IN NS shrike.jamond.net.
- 200 IN PTR shrike.jamond.net.
26??? DNS?????????
- ??jamond.net??????
- ??
- ??
- service named restart
27??? DNS?????????
- ??DNS
- ??host????DNS
- host shrike.jamond.net
- host 192.168.1.200
28??? DNS?????????
- ??DNS
- ??nslookup????DNS
- nslookup
- gtshrike.jamond.net
- gt192.168.1.200
- gtset all
- gtset typeNS (MXCNAME)
- gtjamond.net
- gtset typeany
- gtjamond.net
- gt1.168.192.in-addr.arpa
- gtexit
29??? DNS?????????
- ??DNS???????
- ??DNS?????????????????????FQDN????IP?????
- ??
- ????????????
- vi /var/named/jamond.net.hosts
-
- Shrike IN A 192.168.1.201
- Shrike IN A 192.168.1.202
- ????????????
- vi /var/named/192.168.1.rev
-
- 201 IN PTR shrike.jamond.net.
- 202 IN PTR shrike.jamond.net.
- ????????
- rndc reload
30??? DNS?????????
- ?????????
- ?????????????????????????????????
- ??
- ????????
- vi /etc/named.conf
-
- Zone jamond.net
- type slave
- file jamond.net.hosts
- masters 192.168.1.200
-
- Zone 1.168.192.in-addr.arpa
- type slave
- file 192.168.1.rev
- masters 192.168.1.200
-
- ??
- service named restart
31??? DNS?????????
- ?? Bind ????,?????????
- (1)??????????????????????? ?
- (2)redhat-config-bind ?
32??? DNS?????????
33??? DNS?????????
34??? DNS?????????
35??? DNS?????????
36??? DNS?????????
37??? DNS?????????
38??? DNS?????????
39??? DNS?????????
40??? DNS?????????
41??? DNS?????????
42??? DNS?????????
- ??DNS??? ?DNS?????????,????????????,????????
????????DNS??? service named restart
43??? DNS?????????
- ??
- DNS???IP192.168..111 dns. linux.com.cn
- ??
- (1)????????,??????????????????????????????????????
???????????????IP??? - (2)????????,???????????????????????IP????????????
- ??????????
- FTP??? IP192.168..121 ftp. linux.com.cn
- WEB??? IP192.168..131 www. linux.com.cn
- cw. linux.com.cn rs.linux.com.cn
- MAIL??? IP192.168..141 mail. linux.com.cn
- SAMBA??? IP192.168..151 smb. linux.com.cn