Current time: 05-08-2024, 07:48 PM Hello There, Guest! (LoginRegister)


Post Reply 
Bind
Author Message
TXC Offline
Junior Member
*

Posts: 43
Joined: Jun 2008
Reputation: 1
Post: #1
Bind
When i adding a host in ispCP my bind server fails to restart.

My /etc/bind/named.conf gets screwed up.

Code:
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options";

// prime the server with knowledge of the root servers
zone "." {
        type hint;
        file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
        type master;
        file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
        type master;
        file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
        type master;
        file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
        type master;
        file "/etc/bind/db.255";
};

// zone "com" { type delegation-only; };
// zone "net" { type delegation-only; };

key "TRANSFER" {
        algorithm hmac-md5;
        secret "##########";
};

server xxx.xxx.xxx.xxx {
        keys {
        TRANSFER;
    };
};

// From the release notes:
//  Because many of our users are uncomfortable receiving undelegated answers
//  from root or top level domains, other than a few for whom that behaviour
//  has been trusted and expected for quite some length of time, we have now
//  introduced the "root-delegations-only" feature which applies delegation-only
//  logic to all top level domains, and to the root domain.  An exception list
//  should be specified, including "MUSEUM" and "DE", and any other top level
//  domains from whom undelegated responses are expected and trusted.
// root-delegation-only exclude { "DE"; "MUSEUM"; };

include "/etc/bind/named.conf.local";
include "/etc/bind/rndc.key";

// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options";

// prime the server with knowledge of the root servers
zone "." {
        type hint;
        file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
        type master;
        file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
        type master;
        file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
        type master;
        file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
        type master;
        file "/etc/bind/db.255";
};

// zone "com" { type delegation-only; };
// zone "net" { type delegation-only; };

key "TRANSFER" {
        algorithm hmac-md5;
        secret "##########";
};

server xxx.xxx.xxx.xxx {
        keys {
        TRANSFER;
    };
};

// From the release notes:
//  Because many of our users are uncomfortable receiving undelegated answers
//  from root or top level domains, other than a few for whom that behaviour
//  has been trusted and expected for quite some length of time, we have now
//  introduced the "root-delegations-only" feature which applies delegation-only
//  logic to all top level domains, and to the root domain.  An exception list
//  should be specified, including "MUSEUM" and "DE", and any other top level
//  domains from whom undelegated responses are expected and trusted.
// root-delegation-only exclude { "DE"; "MUSEUM"; };

include "/etc/bind/named.conf.local";
include "/etc/bind/rndc.key";

// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options";

// prime the server with knowledge of the root servers
zone "." {
        type hint;
        file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
        type master;
        file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
        type master;
        file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
        type master;
        file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
        type master;
        file "/etc/bind/db.255";
};

// zone "com" { type delegation-only; };
// zone "net" { type delegation-only; };

key "TRANSFER" {
        algorithm hmac-md5;
        secret "##########";
};

server xxx.xxx.xxx.xxx {
        keys {
        TRANSFER;
    };
};

// From the release notes:
//  Because many of our users are uncomfortable receiving undelegated answers
//  from root or top level domains, other than a few for whom that behaviour
//  has been trusted and expected for quite some length of time, we have now
//  introduced the "root-delegations-only" feature which applies delegation-only
//  logic to all top level domains, and to the root domain.  An exception list
//  should be specified, including "MUSEUM" and "DE", and any other top level
//  domains from whom undelegated responses are expected and trusted.
// root-delegation-only exclude { "DE"; "MUSEUM"; };

include "/etc/bind/named.conf.local";
include "/etc/bind/rndc.key";

// bind Data BEGIN.

// dmn [txc.se] cfg entry BEGIN.
zone "txc.se" {
        type    master;
        file    "/etc/bind/master/txc.se.db";
        notify  YES;
};
// dmn [txc.se] cfg entry END.

##### Additional hosts ######

// dmn [{DMN_NAME}] cfg entry BEGIN.
// dmn [{DMN_NAME}] cfg entry END.

// bind Data END.
// bind Data BEGIN.

// dmn [{DMN_NAME}] cfg entry BEGIN.
// dmn [{DMN_NAME}] cfg entry END.

// bind Data END.

is what is wrong with named.conf ?
I'm pretty tired of having to manually editing named.conf right now.
Is there any way to reset the file and rebuild it correctly[/code]?
(This post was last modified: 06-29-2008 11:25 AM by TXC.)
06-29-2008 11:24 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Bind - TXC - 06-29-2008 11:24 AM
RE: Bind - sci2tech - 07-01-2008, 01:44 AM
RE: Bind - TXC - 07-01-2008, 01:57 AM
RE: Bind - sci2tech - 07-01-2008, 02:04 AM
RE: Bind - TXC - 07-01-2008, 06:09 AM
RE: Bind - TXC - 07-01-2008, 02:47 PM
RE: Bind - sci2tech - 07-01-2008, 07:03 PM
RE: Bind - TXC - 07-01-2008, 09:53 PM
RE: Bind - sci2tech - 07-01-2008, 09:57 PM
RE: Bind - TXC - 07-01-2008, 10:01 PM
RE: Bind - sci2tech - 07-01-2008, 10:05 PM
RE: Bind - TXC - 07-01-2008, 10:08 PM
RE: Bind - sci2tech - 07-02-2008, 12:50 AM
RE: Bind - TXC - 07-02-2008, 12:58 AM
RE: Bind - sci2tech - 07-02-2008, 01:11 AM
RE: Bind - TXC - 07-02-2008, 01:25 AM
RE: Bind - sci2tech - 07-02-2008, 01:56 AM
RE: Bind - TXC - 07-02-2008, 02:02 AM
RE: Bind - sci2tech - 07-02-2008, 02:09 AM
RE: Bind - TXC - 07-02-2008, 02:20 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)