Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can someone give me an example of some bind files?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Golbez
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2004
Posts: 96

PostPosted: Sat May 08, 2004 11:49 pm    Post subject: Can someone give me an example of some bind files? Reply with quote

I need a good example of how to setup someone to slave off of me, cant really find any good ones :o
Back to top
View user's profile Send private message
blackice
n00b
n00b


Joined: 06 May 2004
Posts: 6

PostPosted: Sun May 09, 2004 12:11 am    Post subject: Reply with quote

in named.conf, edit the zone definition:

zone "example.com"
type master;
file "example.com";
allow-transfer { 1.2.3.4; };
};

of course set 1.2.3.4 to whatever the ip is of the person that will be slaving from you
Back to top
View user's profile Send private message
Golbez
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2004
Posts: 96

PostPosted: Sun May 09, 2004 2:23 am    Post subject: Reply with quote

ok bind doesnt seem to wanna be starting right for some reason cause I cant do nslookups off 127.0.0.1

can someone post their named.conf and localhost zonefiles?
Back to top
View user's profile Send private message
DaveArb
Guru
Guru


Joined: 29 Apr 2004
Posts: 510
Location: Texas, USA

PostPosted: Sun May 09, 2004 4:30 am    Post subject: Reply with quote

Maybe not as elegant as they could be, but these work for me.

named.conf:
Code:
options {
        directory "/var/bind";
        listen-on-v6 { none; };
        listen-on { 127.0.0.1; };
        listen-on { 172.24.0.1; };
        pid-file "/var/run/named/named.pid";
};

zone "mydomain.invalid" in {
        type master;
        file "pri/mydomain";
};
zone "0.24.172.in-addr.arpa" IN {
        type master;
        file "pri/0.24.172.zone";
        allow-update { none; };
        notify no;
};
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;
};


127.zone
Code:
$ORIGIN 127.in-addr.arpa.
$TTL 1W
@                       1D IN SOA       localhost. root.localhost. (
                                        2002081601      ; serial
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                        1D IN NS        localhost.
*                       1D IN PTR       localhost.


Dave
Back to top
View user's profile Send private message
Golbez
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2004
Posts: 96

PostPosted: Sun May 09, 2004 6:26 am    Post subject: Reply with quote

heh damn ok I'm gonna need 0.24.172.zone and localhost.zone too then, I deleted those :(

mydomain zonefile would be helpful as well :)
Back to top
View user's profile Send private message
Golbez
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2004
Posts: 96

PostPosted: Sun May 09, 2004 9:10 am    Post subject: Reply with quote

man I cant figure this out, I cant get bind to respond, here are all my files

/etc/bind/named.conf:
Code:

options {
        directory "/var/bind";
        listen-on-v6 { none; };
        listen-on { 127.0.0.1; 67.166.219.7; };
        pid-file "/var/run/named/named.pid";
};
zone "." IN {
        type hint;
        file "named.ca";
};
zone "219.166.67.in-addr.arpa" IN {
        type master;
        file "pri/219.166.67.zone";
        allow-update { none; };
        notify no;
};
zone "127.in-addr.arpa" IN {
        type master;
        file "pri/127.zone";
        allow-update { none; };
        notify no;
};
zone  "imbatman.net" {
        type master;
        file "pri/imbatman.net.zone";
        allow-transfer { 69.93.167.126; }
};
zone  "iknowkungfu.org" {
        type master;
        file "pri/iknowkungfu.org.zone";
        allow-transfer { 69.93.167.126; }
};

/var/bind/pri/219.166.67.zone:
Code:

$TTL    3600
@       IN      SOA     batcave.imbatman.net. root.batcave.imbatman.net. (
                        20040508 ; serial
                        3600 ; refresh
                        900 ; retry
                        3600000 ; expire
                        3600 ; ttl
                        )


        IN      NS      batcave.imbatman.net.
7       IN      PTR     batcave.imbatman.net.

/var/bind/pri/127.zone:
Code:

$ORIGIN 127.in-addr.arpa
$TTL    3600
@       1D IN   SOA     batcave.imbatman.net. root.batcave.imbatman.net. (
                        20040508 ; serial
                        3600 ; refresh
                        900 ; retry
                        3600000 ; expire
                        3600 ; ttl
                        )


        1D  IN  NS      batcave.imbatman.net.
*       1D  IN  PTR     batcave.imbatman.net.

/var/bind/pri/imbatman.net.zone:
Code:

@       IN      SOA     batcave.imbatman.net.  root.imbatman.net. (
                        20040508 ; serial
                        10800; refresh
                        3600 ; retry
                        604800 ; expire
                        43200 ; ttl
                        )


        IN      NS      batcave.imbatman.net.
        IN      NS      chatterbox.simnets.com.
@       IN      MX  0   batcave.imbatman.net.
batcave IN      A       67.166.219.7
@       IN      A       67.166.219.7
www     IN      CNAME   imbatman.net.       
mail    IN      CNAME   batcave.imbatman.net.
ftp     IN      CNAME   batcave.imbatman.net.
webmail IN      CNAME   batcave.imbatman.net.

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

@       IN      SOA     batcave.imbatman.net.  root.imbatman.net. (
                        20040508 ; serial
                        10800; refresh
                        3600 ; retry
                        604800 ; expire
                        43200 ; ttl
                        )


        IN      NS      batcave.imbatman.net.
        IN      NS      chatterbox.simnets.com.
@       IN      MX  0   batcave.imbatman.net.
@       IN      A       67.166.219.7
www     IN      CNAME   batcave.imbatman.net.       
mail    IN      CNAME   batcave.imbatman.net.
ftp     IN      CNAME   batcave.imbatman.net.
webmail IN      CNAME   batcave.imbatman.net.


Anyone see a problem?
Back to top
View user's profile Send private message
Golbez
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2004
Posts: 96

PostPosted: Sun May 09, 2004 4:28 pm    Post subject: Reply with quote

can someone like post an example of all their files and I'll just base mine on theirs with my setgs.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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