Jump to content

BIND9


martop

Recommended Posts

hello,

i need help with configuring BIND9. I want to set up local DNS for LAN. forwarding works, but adding a zone doesn't work.
BIND9 with the first zone starts but does not translate the name to an ip address. With the second zone, BIND9 does not get up at all.

What am I doing wrong?

 

/etc/bind/named.conf.local

//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

zone "example.loc" {
        type master;
        file "/etc/bind/zones/example.loc.db";
};

zone “0.10.10.in-addr.arpa” {
      type master;
      file “/etc/bind/zones/10.10.0.in-addr.arpa”;
};

/etc/bind/zones/example.loc.db


;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     ns1.example.loc. host.example.loc. (
                              5         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;

example.loc.    IN      NS      ns1.example.loc.
example.loc. IN A       10.10.0.100

/etc/bind/zones/10.10.0.db


;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     ns1.example.loc. host.example.loc. (
                              5         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;

example.loc.    IN      NS      ns1.example.loc.
example.loc. IN A       10.10.0.100

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines