Classless IN-ADDR.ARPA delegation (Re: lug-bg: BIND 9.1.3 reverse records)
- Subject: Classless IN-ADDR.ARPA delegation (Re: lug-bg: BIND 9.1.3 reverse records)
- From: i.kolemanov@xxxxxxxx (ISM Kolemanov, Ivan)
- Date: Wed, 30 Jan 2002 17:02:38 +0100
DNS Primer za Classless IN-ADDR.ARPA delegation
RFC: http://www.faqs.org/rfcs/rfc2317.html
Chast 1va - da se prochete rfc2317 - vazno e
Chast 2ra - reshenie
(reshenie s provider de.uu.net za classless net - bum-bam!!)
Utochnenie - Firmata za koqto e pravena configuraciqta
si beshe zagubila sysAdmina i ne sazalqvashe osobeno ;)
dns resolvinga ne raboteshe, a supporta na uu.net ... a be ne e na nivo
poneze nqmam dostap do configuraciqta na UU.NET
4 diga kam uu.net - opisani v chast "My Provider Data"
(axfr diga ne e vkluchen)
+ chetene na rfc2317
po-dolu e i chast ot moqta configuraciq za bind 9.1.3
za info: ot providera imam x.x.x.x/28 mreza + domain i vtori domain
varzan kam parviq
ne sam vkarval obqsneniq poneze ste stane roman,
a nqmam tolkova vreme i vaprosat ste ostane bez otgovor
configa se obqsnqva sam, obarnete vnimanie na
"master/my.rev.zone.noclass.rev"
za primer 1.2.3.240/28
my.rev.zone.noclass = nesto ot sorta na 1.2.3.240
noclass.zone.rev.my.in-addr.arpa. = 240.3.2.1.in-addr.arpa.
zone.rev.my.in-addr.arpa. = 3.2.1.in-addr.arpa.
noclass = 240
nshost = ime na ns hosta
nshost.my.domain
nshost.my.domain.nsip = primerno 1.2.3.241
nsip = 241
My Provider Data:
#--------------------------------------
$ dig @authXX.ns.de.uu.net -x my.rev.zone.noclass
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42118
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;noclass.zone.rev.my.in-addr.arpa. IN PTR
;; AUTHORITY SECTION:
noclass.zone.rev.my.in-addr.arpa. 86400 IN SOA nshost.my.domain.
hostmaster.my.domain. 2001120401 28800 7200 604800 86400
;; Query time: 32 msec
;; SERVER: #53(authXX.ns.de.uu.net)
;; WHEN: Wed Jan 30 15:43:17 2002
;; MSG SIZE rcvd: 104
#-----------------------------------------------------
$ dig @authXX.ns.de.uu.net my.domain
; <<>> DiG 9.1.3 <<>> @authXX.ns.de.uu.net
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50754
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;my.domain. IN A
;; AUTHORITY SECTION:
my.domain. 86400 IN SOA nshost.my.domain.
postmaster.my.domain. 2001102101 28800 7200 604800 86400
;; Query time: 41 msec
;; SERVER: #53(authXX.ns.de.uu.net)
;; WHEN: Wed Jan 30 15:43:22 2002
;; MSG SIZE rcvd: 76
#-----------------------------------------------------
$ dig @authXX.ns.de.uu.net my.domain2
; <<>> DiG 9.1.3 <<>> @authXX.ns.de.uu.net my.domain2
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48122
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;my.domain2. IN A
;; AUTHORITY SECTION:
my.domain2. 86400 IN SOA nshost.my.domain2.
hostmaster.my.domain. 2001120401 28800 7200 604800 86400
;; Query time: 42 msec
;; SERVER: #53(authXX.ns.de.uu.net)
;; WHEN: Wed Jan 30 15:51:08 2002
;; MSG SIZE rcvd: 89
#-----------------------------------------------------
#-----------------------------------------------------
#-----------------------------------------------------
My DNS Configuration:
named.conf:
#-----------------------------------------------------
..................
zone "my.domain" IN {
type master;
file "master/my.domain";
};
zone "my.domain2" IN {
type master;
file "master/my.domain2";
};
zone "noclass.zone.rev.my.in-addr.arpa" IN {
type master;
file "master/my.rev.zone.noclass.rev";
};
...................
#----------------------------------------------------
master/my.rev.zone.noclass.rev:
#----------------------------------------------------
$TTL 86400
$ORIGIN zone.rev.my.in-addr.arpa.
noclass SOA nshost.my.domain. hostmaster.my.domain. (
2001120401 ; serial
8H ; Refresh
2H ; Retry
1W ; Expire
1D) ; Minimum TTL
;
$ORIGIN noclass.zone.rev.my.in-addr.arpa.
;
;
NS authXX.ns.de.uu.net.
NS authXY.ns.de.uu.net.
;
nsip 86400 PTR nshost.my.domain.
..................
#----------------------------------------------------
master/my.domain:
#----------------------------------------------------
$TTL 86400
@ IN SOA nshost.my.domain. postmaster.my.domain. (
2001102101 ; serial, todays date +
todays serial #
8H ; refresh, seconds
2H ; retry, seconds
1W ; expire, seconds
1D) ; minimum, seconds
;
NS authXX.ns.de.uu.net.
NS authXY.ns.de.uu.net.
;
MX 100 mail.my.domain.
MX 200 mail.de.uu.net.
;
nshost 86400 A nshost.my.domain.nsip
;
............
#----------------------------------------------------
master/my.domain2:
#----------------------------------------------------
$TTL 86400
@ IN SOA nshost.my.domain2. hostmaster.my.domain. (
2001052201 ; serial
8H ; refresh, seconds
2H ; retry, seconds
1W ; expire, seconds
1D) ; minimum, seconds
;
NS authXX.ns.de.uu.net.
NS authXY.ns.de.uu.net.
;
MX 100 mail.my.domain.
MX 200 mail.de.uu.net.
;
nshost 86400 A nshost.my.domain.nsip
;
...............
Pozdravi,
Ivan Kolemanov
P.S. ako tova se broi za doku ... nali znaete: BSD license ;)
a ako ima greshki - direkten email ste svarshi naj-dobra rabota
-----Ursprungliche Nachricht-----
Von: Stoian Mishev [mailto:stuckoff@xxxxxxxxxxxx]
Gesendet: Mittwoch, 30. Januar 2002 13:48
An: lug-bg@xxxxxxxxxxxxxxxxxx
Betreff: lug-bg: BIND 9.1.3 reverse records
nqkoj shte me swetne li kakyw e syntaxisa na reverse zapisite w
named.conf
kogato mrevata e po-malka ot C-class
imam mreva ot tipa 192.168.0.128/26 (255.255.255.192)
probwah s:
zone "128-191.0.168.192.in-addr.arpa" in {
type master;
file "ipz.reverse";
};
zone "128-192.0.168.192.in-addr.arpa"
zone "128/26.0.168.192.in-addr.arpa"
zone "26/128.0.168.192.in-addr.arpa"
i wsqkwi podobni ... samo kogato e :
zone "0.168.192.in-addr.arpa" togawa bachka
to towa ne me ustrojwa, zashtoto trqbwa da opiswam i ostanalata chast
ot
mrevata, koiato ne e moja ...
.
razbira se izpolzwanite adresi sa primerni :-)
--
Stoian Mishev
Internet Administraror, Dolphin-3 BG.
e-mail: stuckoff@xxxxxxxxxxxx
ICQ #: 5079105
GSM: +359-88-435168
========================================================================
===
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara
Zagora
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|