I will start the new thread because i configured major things regarding
my "project" so this post is more oriented to pure bind configuration.
------------------------
This is what i have:
- static ip address 85.113.xx.xx
- local ip's from 192.168.1.50 - 200
- installed bind 9
- installed dhcp3
- installed gadmin-bind tool
My goal is to offer free dns and ddns service for our costumers.
I'ts not much. It's around 40 users.
--------------------------------------------------------------------------------
Problems:
When i restart bind service i get this error.
p { margin-bottom: 0.08in; } * Stopping domain name service... bind9
rndc: connection to remote host closed
This may indicate that
* the remote server is using an older version of the command protocol,
* this host is not authorized to connect,
* the clocks are not synchronized, or
* the key is invalid. [ OK ]
* Starting domain name service... bind9 [ fail ]
*************************
This is my named.conf:
// 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
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
***********************
named.conf.options
//----------------------
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See
http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
// forwarders {
// 0.0.0.0;
// };
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
forwarders {
# Replace the address below with the address of your provider’s DNS server
8.8.8.8;
};
*******************
My example.com.db
//------------------
// replace example.com with your domain name.
example.com. IN SOA ns1.example.com. admin.example.com.
(
// Do not modify the following lines!
2007031001
28800
3600
604800
38400
)
// Replace the following line as necessary:
// ns1 = DNS Server name
// mail = mail server name
// example.com = domain name
example.com. IN NS ns1.example.com.
example.com. IN MX 10 mail.example.com.
// Replace the IP address with the right IP addresses.
www IN A 192.168.1.120
mta IN A 192.168.1.121
ns1 IN A 192.168.1.122
***************************************
What is wrong with my configuration ?