Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New to linux
#1

hey guys

 

i have a problem i am new to linux and i want to configure a Dns server for mail and web hosting but i am having an error when i try to start my name server. i have editted my named.conf file this is how it looks like

 

Error

Starting named:

Error in named configuration:

zone aromotorgroup.com/IN: loaded serial 2010052601

zone 1.168.192.in-addr.arpa/IN: loaded serial 2010052601

zone localhost.localdomain/IN: loaded serial 0

zone localhost/IN: loaded serial 0

zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0

zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0

zone 0.in-addr.arpa/IN: loaded serial 0

zone aromotorgroup.com/IN: loading from master file aromotorgroup.com failed: file not found

zone aromotorgroup.com/IN: not loaded due to errors.

external/aromotorgroup.com/IN: file not found

zone 226.99.221.41.in-addr.arpa/IN: loaded serial 2010052601

[FAILED]

 

my named.conf file looks like this

//

// named.conf

//

// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS

// server as a caching only nameserver (as a localhost DNS resolver only).

//

// See /usr/share/doc/bind*/sample/ for example named configuration files.

//

 

options {

#listen-on port 53 { 127.0.0.1; };

#listen-on-v6 port 53 { ::1; };

directory "/var/named";

dump-file "/var/named/data/cache_dump.db";

statistics-file "/var/named/data/named_stats.txt";

memstatistics-file "/var/named/data/named_mem_stats.txt";

allow-query { localhost;192.168.1.100/24; };

recursion yes;

 

dnssec-enable yes;

dnssec-validation yes;

dnssec-lookaside auto;

allow-transfer { localhost; 192.168.1.0/24; };

/* Path to ISC DLV key */

bindkeys-file "/etc/named.iscdlv.key";

};

 

logging {

channel default_debug {

file "data/named.run";

severity dynamic;

};

};

view "internal" {

match-clients {

localhost;

192.168.1.0/24;

};

zone "." IN {

type hint;

file "named.ca";

};

zone "aromotorgroup.com" IN {

type master;

file "aromotorgroup.com.lan";

allow-update { none; };

};

zone "1.168.192.in-addr.arpa" IN {

type master;

file "1.168.192.db";

allow-update { none; };

};

include "/etc/named.rfc1912.zones";

};

view "external" {

match-clients {

any;

};

zone "." IN {

type hint;

file "named.ca";

};

zone "aromotorgroup.com" IN {

type master;

file "aromotorgroup.com";

allow-update { none; };

};

zone "226.99.221.41.in-addr.arpa" IN {

 

 

type master;

file "226.99.221.41.db";

allow-update { none; };

};

};

and my zone file looks like this

 

$TTL 86400

@ IN SOA localhost.aromotorgroup.com. root.aromotorgroup.com. (

2004042801 ; Serial

2H ; Refresh

2H ; Retry

1H ; Expire

1D) ; Min TTL

 

NS localhost.aromotorgroup.com.

NS ns.domain.com.

 

aromotorgroup.com. MX 5 mail.jyrules.com.

aromotorgroup.com. MX 15 pvr.jyrules.com.

 

aromotorgroup.com. A 41.221.99.226

 

localhost A 127.0.0.1

 

www CNAME aromotorgroup.com.

ftp CNAME aromotorgroup.com.

mail CNAME aromotorgroup.com.

 

pvr IN A 226.99.221.41

 

i hope i will be helped

 

 

Thanks

Reply
#2

It looks like an issue with not finding your zone files, by the looks of that error message:



Code:
zone aromotorgroup.com/IN: loading from master file aromotorgroup.com failed: file not found
zone aromotorgroup.com/IN: not loaded due to errors.
external/aromotorgroup.com/IN: file not found




 

Check locations and permissions carefully - ISTR that later versions of BIND run in a chroot jail.

Reply
#3

On a relatively recent RedHat/CentOS/Fedora system (as the 'Red Hat' comment in named.conf) seems to suggest, the zone files need to be kept inside the named jail, as Dave suggested.

 

On my CentOS 5.6 system, my zone files are located in /var/named/chroot/var/named.

Reply
#4

By the way.. hybrid: you any knowledge of configuring dynamic DNS, in particular through webmin?

 

I can't seem to get DHCP and DNS talking to each other... not found any good articles on setting it up.

 

(I get the impression that the DHCP side of things creates a DNS zone for you and populates it - but can't find any real detailed info)

Reply
#5

Quote:By the way.. hybrid: you any knowledge of configuring dynamic DNS, in particular through webmin?

 

I can't seem to get DHCP and DNS talking to each other... not found any good articles on setting it up.

 

(I get the impression that the DHCP side of things creates a DNS zone for you and populates it - but can't find any real detailed info)
 

I'm afraid not -- I've worked with Dynamic DNS, but only really in the Windows world with Active Directory and MS DNS Server, where it does it all for you anyway! I'm sure you've already Googled extensively, but I wonder if this Debian Admin post is useful? Have you also looked into using something like Dnsmasq instead of wrestling with the behemoths that is BIND? Again, not something I've looked into, though.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)