[ LUGOS ] PPP povezava v S.u.S.E Linux 5.2 za newbie

Metod Kozelj metod.kozelj na rzs-hm.si
Sob Sep 19 16:33:24 CEST 1998


Howdy!

On Sat, 19 Sep 1998, Rok Papez wrote:

> Doma imam dve kisti na mrezi in bi rad vedel kako nastavt DNS, da bi 
> bil authoritive za 192.168.1.1 in 192.168.1.2, za vse ostalo caching
> only,
> forwarderje bi pa kontaktiral kvecjemu takrat ko bi bil online (preko 
> modema), ko bi bil offline bi pa samo authoritive za 192.168.1.x
> (od tega da nocem da cache sprazne ko je offline!)

Rabis nekaj datotek. Osnovna je /etc/named.boot. Potem pa se eno za
preslikave 192.168.1.x --> ime in eno za ime --> 192.168.1.x. Pa eno, ki
vsebuje root name serverje (mogoce te tudi ne rabis?)

Recimo:

---- /etc/named.boot ----
;
; type    domain               source file or host
;
directory       /var/named/
cache     .                      dns.cache
primary   0.0.127.in-addr.arpa   dns.local
primary   PeaceNET.si            dns.localnet
primary   1.168.192.in-addr.arpa dns.localnet-rev
forwarders 193.2.1.44
---- \ /etc/named.boot ----

Pri tem je 193.2.1.44 IP stevilka DNS serverja tvojega Inet providerja. Ce
ima provider vec DNS serverjev, jih nastejes vec (IP cifre so med seboj
locene s presledkom).

Potem imas ostale datoteke v direktoriju /var/named.

--- /var/named/dns.local ---
0.0.127.in-addr.arpa.   IN      SOA     hasso.PeaceNET.si. root.hasso.PeaceNET.si. (
                                        1       ; Serial
                                        28800   ; Refresh every 8 hours
                                        7200    ; Retry every 2 hours
                                        604800  ; Expire after a week
                                        86400 ) ; Minimum ttl of 1 day
;
        IN      NS      hasso.PeaceNET.si.
;
1                               IN      PTR     localhost.
--- \ /var/named/dns.local ----

--- /var/named/dns.cache ---
; Hints to find the root nameservers
.                   99999999    IN      NS      A.ROOT-SERVERS.NET.
                    99999999    IN      NS      B.ROOT-SERVERS.NET.
                    99999999    IN      NS      C.ROOT-SERVERS.NET.
                    99999999    IN      NS      D.ROOT-SERVERS.NET.
                    99999999    IN      NS      E.ROOT-SERVERS.NET.
                    99999999    IN      NS      F.ROOT-SERVERS.NET.
                    99999999    IN      NS      G.ROOT-SERVERS.NET.
                    99999999    IN      NS      H.ROOT-SERVERS.NET.
                    99999999    IN      NS      I.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET. 99999999    IN      A       198.41.0.4
B.ROOT-SERVERS.NET. 99999999    IN      A       128.9.0.107
C.ROOT-SERVERS.NET. 99999999    IN      A       192.33.4.12
D.ROOT-SERVERS.NET. 99999999    IN      A       128.8.10.90
E.ROOT-SERVERS.NET. 99999999    IN      A       192.203.230.10
F.ROOT-SERVERS.NET. 99999999    IN      A       192.5.5.241
                    99999999    IN      A       39.13.229.241
G.ROOT-SERVERS.NET. 99999999    IN      A       192.112.36.4
H.ROOT-SERVERS.NET. 99999999    IN      A       128.63.2.53
I.ROOT-SERVERS.NET. 99999999    IN      A       192.36.148.17
--- \ /var/named/dns.cache ---

Pri teh zgornjih nimas kaj izumljati, najbolje da tole ne spreminjas.

--- /var/named/dns.localnet ---
PeaceNET.si.    IN      SOA     hasso.PeaceNET.si. root.hasso.PeaceNET.si. (
                                        1       ; Serial
                                        3600    ; Refresh every 1 hours
                                        1800    ; Retry every 0.5 hours
                                        604800  ; Expire after 7 days
                                        86400 ) ; Minimum ttl of 1 day
;
        IN      NS      hasso.PeaceNET.si.
;
localhost       IN      A       127.0.0.1
hasso           IN      A       192.168.1.3
www             IN      CNAME   hasso.PeaceNET.si.
--- \ /var/named/dns.localnet ----

--- /var/named/localnet-rev ---
1.168.192.in-addr.arpa. IN      SOA     hasso.PeaceNET.si. root.hasso.PeaceNET.si. (
                                        1       ; Serial number
                                        3600    ; Refresh every 1 hour
                                        1800    ; Retry every 0.5 hours
                                        604800  ; Expire after 7 days
                                        86400 ) ; Minimum ttl of 1 day
;
        IN      NS      hasso.PeaceNET.si.
;
3.1.168.192.in-addr.arpa.       IN      PTR     hasso.PeaceNET.si.
--- \ /var/named/dns.localnet-rev ---

Pomen polj v vseh teh konfiguracijskih datotekah si oglej v man named(8)

Peace!
  Mkx

---- perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'




Dodatne informacije o seznamu Starilist