DNS - Domain Name Service
DNS - Domain Name Service
Конфигурирование DNS-клиента
/etc/resolv.conf :
domain fedfond.msk.su
nameserver 127.0.0.1
;nameserver 128.8.2.1
/etc/defaultdomain :
fedfond.msk.su
/etc/host.conf :
order hosts, nis, bind
multi on
Как посмотреть зоны DNS
nslookup -ty=ns msk.ru
zzz=msk.ru ; named-xfer -z $zzz -f filename ns.$zzz
egrep '^[a-z]' filename | egrep -v A | grep NS| cut -f1 | sort -u| wc
или сходить в RIPE:
Результат на февраль 1997:
- ru - 1400
- msk.ru - 217
- spb.ru - 490
- ras.ru - 20
- msu.su - 19
- rssi.ru - 42
Конфигурирование DNS-сервера
/etc/named.boot
; домен fedfond.msk.su IP-сеть - 128.8.2
;
; boot file for name server
;
directory /var/named
cache . named.root
; type domain source host/file backup file
primary fedfond.msk.su fedfond.msk.su.hosts
primary 0.0.127.in-addr.arpa named.local
primary 2.8.128.in-addr.arpa 2.8.128.hosts.rev
----------------
; local dns file named.local 0.0.127.in-addr.arpa
;
@ IN SOA fedfond1.fedfond.msk.su. moshkow.fedfond.msk.su. (
94092101; Serial
10800; Refresh
1800; Retry
3600000; Expire
86400 ); Minimum
IN NS fedfond1.fedfond.msk.su.
1 IN PTR localhost.
===========================
; fedfond.msk.su zone hosts file for server fedfond1.fedfond.msk.su
;
@ IN SOA fedfond1.fedfond.msk.su. moshkow.fedfond1.fedfond.su. (
94092501; Serial
10800; Refresh
1800; Retry
3600000; Expire
86400 ); Minimum
NS fedfond1.fedfond.msk.su.
NS ipsun.ac.msk.su.
;
MX 0 fedfond1.fedfond.msk.su.
MX 20 ipsun.ac.msk.su.
MX 30 mailhost.cs.msu.su.
MX 40 mail.gmd.de.
MX 50 sunic.sunet.se.
; localhost A 127.0.0.1
$INCLUDE /var/named/fedfond-hosts-spisok
----------------
; Hosts in fedfond.msk.su zone
mailrelay CNAME fedfond1
mailhost CNAME fedfond1
mailserver CNAME fedfond1
newshost CNAME fedfond1
ftp CNAME fedfond1
www CNAME fedfond1
gopher CNAME fedfond1
master CNAME fedfond1
server CNAME fedfond1
;
; Host fedfond1
;
fedfond1 A 128.8.2.1
MX 0 mailrelay
HINFO Motorola88110 "SVR4.1/88"
WKS 128.8.2.1 UDP ( time domain name )
WKS 128.8.2.1 TCP ( echo telnet discard
sunrpc uucp-path systat
daytime netstat nntp
link chargen ftp time
whois pop-2 rje finger smtp
supdup hostnames domain )
;
; Host s20
;
s20 A 128.8.2.20
MX 0 mailrelay
HINFO Besta/31 UNIX-V.3
besta CNAME s20
prilipko CNAME s20
;
; Host s30
;
s30 A 128.8.2.30
A 128.9.2.30
A 193.124.148.59
MX 0 mailrelay
HINFO PC486/66DX2 UnixWare_1.1
WKS 128.8.2.30 UDP ( time domain name )
WKS 128.8.2.30 TCP ( echo telnet discard
sunrpc uucp-path systat
daytime netstat nntp
link chargen ftp time
whois pop-2 rje finger smtp
supdup hostnames domain )
unixware CNAME s30
;
; Host pcat101
;
pcat101 A 128.8.2.101
MX 0 mailrelay
HINFO PC486/66DX2 "MSDOS 6.2"
pc101 CNAME pcat101
guest01 CNAME pcat101
;
; Host pcat101
;
pcat102 A 128.8.2.102
MX 0 mailrelay
HINFO PC486/66DX2 "MSDOS 6.2"
pc102 CNAME pcat102
guest02 CNAME pcat102
===========================
; Initial cache data for root domain servers
;
; list of servers ...
;
99999999 IN NS NS.INTERNIC.NET.
99999999 IN NS NS.NIC.DDN.MIL.
99999999 IN NS NS1.ISI.EDU.
99999999 IN NS AOS.ARL.ARMY.MIL.
99999999 IN NS C.NYSER.NET.
99999999 IN NS TERP.UMD.EDU.
99999999 IN NS NS.NASA.GOV.
99999999 IN NS NIC.NORDU.NET.
; ... and their adresses
;
NS.INTERNIC.NET. 99999999 IN A 198.41.0.4
NS.NIC.DDN.MIL. 99999999 IN A 192.112.36.4
NS1.ISI.EDU. 99999999 IN A 128.9.0.107
AOS.ARL.ARMY.MIL. 99999999 IN A 128.63.4.82
AOS.ARL.ARMY.MIL. 99999999 IN A 192.5.25.82
C.NYSER.NET. 99999999 IN A 192.33.4.12
TERP.UMD.EDU. 99999999 IN A 128.8.10.90
NS.NASA.GOV. 99999999 IN A 128.102.16.10
NS.NASA.GOV. 99999999 IN A 192.52.195.10
NIC.NORDU.NET. 99999999 IN A 192.36.148.17
===========================
@ IN SOA fedfond1.fedfond.msk.su. moshkow.fedfond1.fedfond.msk.su. (
94102501; Serial
10800; Refresh
1800; Retry
3600000; Expire
86400 ); Minimum
NS s08.fedfond.msk.su.
NS ipsun.ac.msk.su.
NS ns.itep.ru.
NS suncom.itep.ru.
NS ns.cs.msu.su.
PTR s30.fedfond.msk.su.; Gateway
;
; Reverse-name [ttl] PTR Real-name-dot
;
1 PTR fedfond1.fedfond.msk.su.
20 PTR s20.fedfond.msk.su.
30 PTR s30.fedfond.msk.su.
101 PTR pcat101.fedfond.msk.su.
102 PTR pcat102.fedfond.msk.su.
[Назад] [Содержание] [Вперед]
|