← Back to team overview

sslug-teknik team mailing list archive

Re: problem med named (DNS)

 

Hejsan!

Titta på:  http://home1.2.sbbs.se/designit  /Mats

Den 18 Aug 1999 skrev jarnkaminen@xxxxxxx:

> Hejsa!
> 
> Jeg sidder og prøver at få named til at virke men der er visse problem.
> Alle filer er taget fra www.sslug.dk/~frank/dnsbind.html og domain
> navnet er så rettet til. Derfor er jeg meget forundret over at det ikke
> virker til 100%. DVS jeg kan godt gøre nogle opslag som ping "ns" men
> nslookup siger can't find 127.0.0.1. (127.0.0.1 er sat som nameserver i
> resolv.conf).
> 
> Er der en af jer guruer der kan hjælpe mig her?
> 
> PS. Kører Slackware 3.6 (2.0.35)
> 
> /var/log/messages
> 
> ug 15 21:27:02 linux named[113]: starting.  named 8.1.2 Sat May 23
> 13:48:59 CDT 1998 ^Iroot@darkstar:/tmp/BIND-8.1.2-REL/src/bin/named
> Aug 15 21:27:02 linux named[113]: named.local:13: Database error
> (127.0.0.1)
> Aug 15 21:27:02 linux named[113]: named.local-rev:11: Database error ())
> Aug 15 21:27:02 linux named[113]: named.local-rev:12: data "" outside
> zone "127.in-addr.arpa" (ignored)
> Aug 15 21:27:02 linux named[113]: named.local-rev:13: Database error
> (linux.domain.net.)
> Aug 15 21:27:03 linux named[113]: named.domain-net:6: Database error
> (localhost.)
> Aug 15 21:27:03 linux named[113]: named.domain-net:8: Database error
> (localhost.)
> Aug 15 21:27:03 linux named[113]: named.domain-net:15: Database error
> ())
> Aug 15 21:27:03 linux named[113]: named.domain-net:16: data "" outside
> zone "domain.net" (ignored)
> Aug 15 21:27:03 linux named[113]: named.domain-net:17: Database error
> (linux.domain.net.)
> Aug 15 21:27:03 linux named[113]: named.domain-net:19: data "" outside
> zone "domain.net" (ignored)
> Aug 15 21:27:03 linux named[113]: named.domain-net:20: Database error
> (linux)
> Aug 15 21:27:03 linux named[113]: named.domain-net:28: Database error
> (linux)
> Aug 15 21:27:03 linux named[113]: named.domain-net:33: Database error ()
> Aug 15 21:27:03 linux named[113]: named.domain-net-rev:13: Database
> error (linux.domain.net.)
> Aug 15 21:27:03 linux named[113]: listening on [127.0.0.1].53 (lo)
> Aug 15 21:27:03 linux named[113]: listening on [192.168.1.3].53 (eth0)
> Aug 15 21:27:03 linux named[113]: listening on [192.168.0.3].53 (eth1)
> Aug 15 21:27:03 linux named[113]: Forwarding source address is
> [0.0.0.0].1078
> Aug 15 21:27:03 linux named[114]: Ready to answer queries.
> 
> For en god ordens skyld her er mine named filer
> 
> /var/named/named.local
> 
> ;
> ; BIND data file for local loopback interface
> ;                         ** trailing periods are important!!
> @       IN      SOA     localhost. root.localhost. (
>                       199901101         ; Serial
>                          604800         ; Refresh (7 days)
>                           86400         ; Retry (24 hours)
>                         2419200         ; Expire
>                          604800 )       ; Default TTL (7 days)
> ;
> @       IN      NS      localhost.
> @       IN      A       127.0.0.1
> 
> loopback  IN CNAME      127.0.0.1
> 
> /var/named/named.local-rev
> 
> ;
> ; BIND reverse data file for local loopback interface
> ;
> @       IN      SOA     linux.domain.net.  hostmaster.linux.domain.net.
> (
>                       199901101         ; Serial
>                          604800         ; Refresh
>                           86400         ; Retry
>                         2419200         ; Expire
>                          604800 )       ; Default TTL
> ;
> 
>         IN      NS      linux.domain.net.
> 
> 1       IN      PTR     localhost.
> 
> 
> /var/named/named.domain-net
> 
> ;
> ; Zone file for domain.net
> ;
> ; Mandatory minimum for a working domain
> ;
> 
> ;@   IN      SOA     linux.domain.net. hostmaster.linux.domain.net. (
> 
> @    IN      SOA     linux.domain.net. hostmaster.linux.domain.net. (
>                           199901121       ; serial, todays date + todays
> serial #
>                           28800           ; refresh, seconds
>                           7200            ; retry, seconds
>                           3600000         ; expire, seconds
>                           86400 )         ; minimum, seconds
> 
>             IN      NS      linux.domain.net.
> 
> ; local mail is distributed on linux
>             IN      MX      10 linux      ; Primary Mail Exchanger
> 
> linux       IN    A      192.168.1.3
> ; some aliases for my machine
> mail        IN    CNAME  linux
> ns          IN    CNAME  linux
> www         IN    CNAME  linux
> ftp         IN    CNAME  linux
> 
> ;
> ; Extras
> ;
> @               TXT     "domain.net, your DNS"
> 
> ; added some info on the second machine:
> win95      IN   A       192.168.1.2
>                 MX      10 mail
>                 HINFO   "Pentium 200" "win95+Linux"
>                 TXT     "workstation"
> 
> 
> /var/named/named.domain-net-rev
> 
> ;
> ; BIND reverse data file for 192.168.1.x / domain.net eth0 interface
> ;
> @       IN      SOA     linux.domain.net. hostmaster.linux.domain.net. (
>                           199901121       ; serial, todays date + todays
> serial#
>                           28800           ; refresh, seconds
>                           7200            ; retry, seconds
>                           3600000         ; expire, seconds
>                           86400 )         ; minimum, seconds
>           IN    NS      linux.domain.net.
> ;
> ;@              NS      ns.domain.net.
> 
> 1         IN    PTR     linux.domain.net.
> 2         IN    PTR     win95.domain.net.
> 
> 
> Med venlig hilsen
> 
> // Magnus
> 
> 
> 
>