Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bind Konfiguration [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2955
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Mon Jan 01, 2007 2:22 pm    Post subject: Bind Konfiguration [solved] Reply with quote

Hallo

ich hab bei mir bind installierst und nach den Anleitungen http://de.gentoo-wiki.com/BIND und http://gentoo-wiki.com/BIND mein Bind eingerichtet, aber es funktioniert nicht 100% so wie ich es möchte.

Also, ich habe ein kleines Home-Network bestehend aus 2 PCs, einem Druckserver, einem Router (der zur Zeit nur als Switcher benutzt wird) und dem Eumex-IP (DSL-Router).

eumex: 192.168.178.1
router: 192.168.178.3
supertux: 192.168.178.10 (mein Rechner, wo ich bind einstelle)
galadriel: 192.168.178.11 (der andere PC)
kyo: 192.168.178.20 (der Druckserver)

Im Prinzip brauche ich keinen bind, ich kann all diese IPs in /etc/hosts eintragen, aber ich möchte trotzdem lernen, wie man einen einfachen DNS Server einrichtet, vor allem, wenn ich mit vmware etwas teste, da ich unter vmware DHCP benutze.

Ich habe die /etc/resolv.conf auf den clients geändert zu

Code:

nameserver 192.168.178.10


Wenn ich von meinem Rechner aus ping ausführe

Code:

supertux@supertux:~> ping eumex
ping: unknown host eumex


Wenn ich dasselbe ausführe aber von einem anderen Client aus

Code:

supertux@galadriel:~> ping eumex
PING eumex.homelinux.org (192.168.178.1) 56(84) bytes of data.
64 bytes from eumex.homelinux.org.178.168.192.in-addr.arpa (192.168.178.1): icmp_seq=1 ttl=255 time=0.439 ms


wieso ich eumex.homelinux.org.178.168.192.in-addr.arpa bekomme, weiß ich nicht, stört mich schon, aber immerhin bekomme ich die richtige IP.

Ich verstehe nur nicht, warum von localhost (ich meine von 192.168.178.10) aus das ping eumex nicht geht, von den anderen Hosts aus schon.

Wenn ich ein nslookup 192.168.178.1 ausführe, bekomme ich immer

Code:

supertux@supertux:~> nslookup 192.168.178.1
Server:         192.168.178.10
Address:        192.168.178.10#53

1.178.168.192.in-addr.arpa      name = eumex.homelinux.org.178.168.192.in-addr.arpa.


Was habe ich denn falsch gemacht? Anbei meine Konfiguration

/etc/bind/named.conf
Code:

options {
        directory "/var/bind";
        statistics-file "/var/bind/named.stats"; // stats are your friend
        dump-file "/var/bind/named.dump";
       
        forwarders {
                132.230.150.3;
                132.230.200.200;
        };

        listen-on-v6 { none; };
        listen-on { 192.168.178/24; 127.0.0.1; };

        pid-file "/var/run/named/named.pid";
};

zone "." IN {
        type hint;
        file "named.ca";
};

zone "localhost" IN {
        type master;
        file "pri/localhost.zone";
        allow-update { none; };
        notify no;
};

zone "127.in-addr.arpa" IN {
        type master;
        file "pri/127.zone";
        allow-update { none; };
        notify no;
};

// Include logging config file
// identisch zu http://gentoo-wiki.com/BIND
include "/etc/bind/logging.conf";

// Include customer zones
include "/etc/bind/zones/supertux.conf";


/etc/bind/zones/supertux.conf
Code:

zone "homelinux.org" IN {
        type master;
        file "pri/homelinux.org.zone";
};

zone "178.168.192.in-addr.arpa" IN {
        type master;
        file "pri/homelinux.org.zone.rev";
};


/var/bind/pri/homelinux.org.zone
Code:

$TTL 600
; homelinux.org
homelinux.org.          IN      SOA     supertux.homelinux.org  supertux.supertux.homelinux.org (
                                2007101012      ; serial
                                12h             ; refresh
                                1h              ; retry
                                2w              ; expire
                                1h              ; minimum
        )

@               IN      NS      supertux
supertux        IN      A       192.168.178.10
eumex           IN      A       192.168.178.1
router          IN      A       192.168.178.3
galadriel       IN      A       192.168.178.11
iluvatar        IN      A       192.168.178.12
kyo             IN      A       192.168.178.20


/var/bind/pri/homelinux.org.zone.rev

Code:

$TTL 600
; homelinux.org
@               IN      SOA     supertux.homelinux.org  supertux.supertux.homelinux.org (
                                2007101012      ; serial
                                12h             ; refresh
                                1h              ; retry
                                2w              ; expire
                                1h              ; minimum
        )

@               IN      NS      supertux.homelinux.org
1               IN      PTR     eumex.homelinux.org
3               IN      PTR     router.homelinux.org
10              IN      PTR     supertux.homelinux.org
12              IN      PTR     iluvatar.homelinux.org
20              IN      PTR     kyo.homelinux.org


Ich finde keinen Fehler, kann jemand etwas verdächtiges erkennen?

Danke für die Hilfe

Gruss
Pablo
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!


Last edited by pablo_supertux on Mon Jan 01, 2007 11:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
py-ro
Veteran
Veteran


Joined: 24 Sep 2002
Posts: 1734
Location: Velbert

PostPosted: Mon Jan 01, 2007 2:59 pm    Post subject: Reply with quote

Da ich mit bind lange nix mehr gemacht ahbe, mal ein schuss ins blaue

schonmal als nameserver 127.0.0.1 auf dem nameserver selber angegeben?

Py
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2955
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Mon Jan 01, 2007 3:16 pm    Post subject: Reply with quote

py-ro wrote:
Da ich mit bind lange nix mehr gemacht ahbe, mal ein schuss ins blaue

schonmal als nameserver 127.0.0.1 auf dem nameserver selber angegeben?

Py


nein, das ändert gar nichts
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
bbgermany
Veteran
Veteran


Joined: 21 Feb 2005
Posts: 1844
Location: Oranienburg/Germany

PostPosted: Mon Jan 01, 2007 3:52 pm    Post subject: Reply with quote

Hallo pablo_supertux,

ich denke das Problem ist folgendes.

Code:

$TTL 600
; homelinux.org
@               IN      SOA     supertux.homelinux.org  supertux.supertux.homelinux.org (
                                2007101012      ; serial
                                12h             ; refresh
                                1h              ; retry
                                2w              ; expire
                                1h              ; minimum
        )

@               IN      NS      supertux.homelinux.org
1               IN      PTR     eumex.homelinux.org
3               IN      PTR     router.homelinux.org
10              IN      PTR     supertux.homelinux.org
12              IN      PTR     iluvatar.homelinux.org
20              IN      PTR     kyo.homelinux.org


Hinter jedem Hostnamen + DNS-Suffix muss ein Punkt stehen, damit der DNS-Server weis, dass es sich dort um den voll qualifizierten Hostnamen (FQDN) handelt.

Also im Klartext sollten die Dateien wie folgt aussehen:

Code:

$TTL 600
; homelinux.org
@               IN      SOA     supertux.homelinux.org.  supertux.supertux.homelinux.org. (
                                2007101012      ; serial
                                12h             ; refresh
                                1h              ; retry
                                2w              ; expire
                                1h              ; minimum
        )

@               IN      NS      supertux.homelinux.org.
1               IN      PTR     eumex.homelinux.org.
3               IN      PTR     router.homelinux.org.
10              IN      PTR     supertux.homelinux.org.
12              IN      PTR     iluvatar.homelinux.org.
20              IN      PTR     kyo.homelinux.org.


sowie

Code:

$TTL 600
; homelinux.org
homelinux.org.          IN      SOA     supertux.homelinux.org.  supertux.supertux.homelinux.org. (
                                2007101012      ; serial
                                12h             ; refresh
                                1h              ; retry
                                2w              ; expire
                                1h              ; minimum
        )

@               IN      NS      supertux
supertux        IN      A       192.168.178.10
eumex           IN      A       192.168.178.1
router          IN      A       192.168.178.3
galadriel       IN      A       192.168.178.11
iluvatar        IN      A       192.168.178.12
kyo             IN      A       192.168.178.20


EDIT: auch bei dem Hostname und der E-Mail-Adresse in "IN SOA" muss der Punkt gesetzt werden.
_________________
Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2955
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Mon Jan 01, 2007 4:39 pm    Post subject: Reply with quote

bbgermany wrote:

Hinter jedem Hostnamen + DNS-Suffix muss ein Punkt stehen, damit der DNS-Server weis, dass es sich dort um den voll qualifizierten Hostnamen (FQDN) handelt.


stimmt, damit geht nslookup.

Ich denke, dass ich mit den Zonen ein bisschen falsch verstanden, dennn wenn ich von einem Client aus die /etc/resolv.conf so ändere

Code:

# Generated by dhcpd for interface eth0
search homelinux.org   <--- diese Zeile löschen
nameserver 192.168.178.10


und dort ein ping eumex ausführe, dann wird eumex IP nicht gefunden, also nur wenn ich ping eumex.homelinux.org ausführe. Das wäre jetzt das richtige Verhalten, oder? Damit nur mit einem ping eumex die richtige IP bekomme, sollte ich in resolv.conf entweder domain bzw. search gesetzt haben, oder?

Bei mir habe ich nämlich nur die nameserver gesetzt, bei den Clients gibt es zusätzlich search homelinux.org, deswegen ging ping eumex auf Anhieb, oder?
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
bbgermany
Veteran
Veteran


Joined: 21 Feb 2005
Posts: 1844
Location: Oranienburg/Germany

PostPosted: Mon Jan 01, 2007 9:12 pm    Post subject: Reply with quote

Hallo pablo_supertux,

lokal ging es warscheinlich eher deswegen, weil du einen Eintrag ein deiner Hosttabelle hattest, siehe Gentoo-Installationshandbuch ;)

Außerdem ist der "search" Eintrag nur für die Suchreihenfolge zuständig. "domain homelinux.org" ist der Eintrag, damit die Auflösung ordentlich funktioniert :)

Stefan
_________________
Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2955
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Mon Jan 01, 2007 11:30 pm    Post subject: Reply with quote

bbgermany wrote:
Hallo pablo_supertux,

lokal ging es warscheinlich eher deswegen, weil du einen Eintrag ein deiner Hosttabelle hattest, siehe Gentoo-Installationshandbuch ;)

Außerdem ist der "search" Eintrag nur für die Suchreihenfolge zuständig. "domain homelinux.org" ist der Eintrag, damit die Auflösung ordentlich funktioniert :)

Stefan


Dann ist es alles in Ordnung

Danke für die Antworten. Ich hab das mit den Zonen und der Auflösung ein bisschen falsch verstanden, jetzt geht alles, wie ich es mir gewünscht habe.

Gruss
Pablo
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum