• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

DNS Master/Slave

gruess euch!

aeh folgende frage:
ich hab hier ein kleines internes netz mit 192.168.81.*
als offiziellen DNS hab ich ns1.chello.at.
nun moechte ich in meinem kleinen netz einen DNS aufsetzen.
soweit funktioniert das gut.
was ich nicht schaffe ist fuer eine bestehende, offizielle domain eine subdomain einzurichten die nur in meinem internen netz gueltig ist.
zum bsp. emgotcha.heise.de
ich hab heise.de als zone eingerichtet:

@ NS ns1.chello.at
emgotcha IN A 192.168.81.2

somit sollte er doch alles bis auf emgotcha.heise.de beim ns1.chello.at nachfragen oder?

vielen danke fuer eure hilfe :)
 
OP
E

emgotcha77

Newbie
named.conf
Code:
zone "home.local" in {
        allow-transfer { any; };
        file "master/home.local";
        type master;
};

"master/home.local"
Code:
$TTL 2d
@               IN SOA          db1.    root.db1. (
                                2008102902      ; serial
                                3h              ; refresh
                                1h              ; retry
                                1w              ; expiry
                                1d )            ; minimum

home.local.   IN NS           ns1.chello.at.
home.local.   IN NS           ns2.chello.at.

em              IN A            192.168.81.1
db              IN A            192.168.81.2
db1             IN A            192.168.81.3
svn             IN A            192.168.81.4
worker          IN A            192.168.81.5
backup          IN A            192.168.81.6
 
OP
E

emgotcha77

Newbie
halt falsch :)

named.conf

Code:
zone "heise.de" in {
        allow-transfer { any; };
        file "master/heise.de";
        type master;
};

"master/heise.de"

Code:
$TTL 2D
@               IN SOA          db1.    root.db1. (
                                2008102900      ; serial
                                3H              ; refresh
                                1H              ; retry
                                1W              ; expiry
                                1D )            ; minimum

heise.de.       IN NS           ns1.chello.at.
heise.de.       IN NS           ns2.chello.at.
www             IN NS           ns1.chello.at.
emgotcha        IN A            192.168.81.1

hier hab ich eben das problem.
ein "@ IN NS ns1.chello.at" oder "* IN NS ns1.chello.at" funktioiniert nicht.
ich moechte aber das alles bis auf emgotcha.heise.de vom ns1.chello.at behandelt wird.
 

spoensche

Moderator
Teammitglied
emgotcha77 schrieb:
"master/heise.de"

Code:
$TTL 2D
@               IN SOA          db1.    root.db1. (
                                2008102900      ; serial
                                3H              ; refresh
                                1H              ; retry
                                1W              ; expiry
                                1D )            ; minimum

heise.de.       IN NS           ns1.chello.at.
heise.de.       IN NS           ns2.chello.at.
www             IN NS           ns1.chello.at.
emgotcha        IN A            192.168.81.1

Das kann so auch nicht funktionieren. Bei
Code:
@               IN SOA          db1.    root.db1.
fehlt der Domainname und du weisst
Code:
heise.de.       IN NS           ns1.chello.at.
den Hostnamen ns1.chello.at zu.


http://wiki.linux-club.de/opensuse/Bind
 
OP
E

emgotcha77

Newbie
mh ok... danke
der eintrag "heise.de. IN NS ns1.chello.at." erstellt yast.
ich editier dann wohl lieber haendisch.
 
Oben