loading master file named.local: file not found

Status
Not open for further replies.

mutualad

Verified User
Joined
Mar 27, 2006
Messages
13
Hi,

I've just set up my second box with DA and the installation went OK. The first domain I added works as expected and people can view the URL and the domain gets email.

However checking my /var/logs/messages gives me error messages that I can't work out how to fix. see below.

Mar 28 03:48:12 server2 named[7353]: loading configuration from '/etc/named.conf'
Mar 28 03:48:12 server2 named[7353]: zone 0.0.127.in-addr.arpa/IN: loading master file named.local: file not found
Mar 28 03:48:12 server2 named[7353]: zone localhost/IN: loading master file localhost.zone: file not found

The named.conf file has these settings.

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

Do I need them?
Can I comment them out?
How do I fix the error.

Thx in advance.
 
Are you using your nameserver as a cacheing nameserver?

Is your nameserver listed in /etc/resolv.conf?

If your nameserver is listed in /etc/resolv.conf it must be set up as a cacheing nameserver and you need those files.

Otherwise you don't.

Jeff
 
I hate being a n00bs n00b.

Can you explain the diff between a cacheing nameserver and what the alternative is please.

sry for the dumb question.
Kev
 
A cacheing nameserver is a nameserver that will find any domain for you as long as it's hosted on the Internet.

A non-cacheing (authoritative only) nameserver will only return responses for domains for which it's authoritative (on DA servers, that means domains hosted on the server).

Jeff
 
I think I'm almost there - thanks.

The remaining issue is how do I turn on the DNS server?

named is running (and I even restarted it via 'Show Services') but when I use checkdns.net to ensure that 'the world' can see the nameserver I get the error message
'Error fetching SOA from ns1.tendring.net [213.165.233.130], request timed out. Probably DNS server is offline.'

dnsstuff tells me that the reverse lookup is fine and the A record exists

How do I get the nameserver to be seen?

TIA
Kev
 
If you're sure it's running make sure you're not firewalling it off with any firewall you have installed.

Generally if DNSReport can find it, then the world can find it.

If DNSReport can't find it, then you need to make sure it's running, and that you're not firewalling it off.

Jeff
 
Slave DNS

Hi jlasman,

I hope you could help me about installing slave DNS I followed lot's of instruction & installation but I still having trouble on my slave DNS server. I'm new in Linux so please bare with me.

Here's my /etc/named.config

//
//named.conf for Red Hat caching-nameserver
//

options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";

/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/

// query-source address * port 53;
allow-transfer {208.99.198.184/32;};
};

//
// a caching only nameserver config
//

controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };

};


zone "now.com" IN {
type slave;
file "/var/named/now.zone";
// allow-update { none; };
allow-transfer { 192.168.0.1/32; };
masters { 192.168.0.1; };
};

zone "0.168.192.in-addr.arpa" IN {
type slave;
file "/var/named/0.168.192.in-addr.arpa";
// allow-update { none; };
allow-transfer { 192.168.0.1/32; };
masters { 192.168.0.1; };
};


include "/etc/rndc.key";


I encounter this error when I do start the service named


Error in named configuration:
zone localhost/IN: loading master file localhost.zone: file not found
_default/localhost/IN: file not found

What I want to do is BIND this server.

Please help. Thanks.
 
I'm sorry, but I can't take valuable time to study one admin's named.conf file to look for problems.

The error you're getting;
Error in named configuration:
zone localhost/IN: loading master file localhost.zone: file not found
_default/localhost/IN: file not found
is showing certain files as missing. Most likely because you haven't properly installed BIND on your server, or you're using a sample configuration file you haven't modified to fit your system.


And I have no idea what you mean when you write:
What I want to do is BIND this server.
Do you mean you want someone to install BIND on your server? I can offer that as a commercial service but it's well beyond the scope of these forums to teach systems administration.

How are you trying to slave DNS? Are you using two DirectAdmin-based servers and the Multi-Server Option? Or are you using my Master2Slave DNS Replicator which is discussed on these forums? Or are you trying something else?

Please search the advertising section of these forums if you'd like to hire me to install Master2Slave DNS Replicator to manage your Slave DNS. Otherwise try to ask specific questions.

Jeff
 
/sbin/service named restart

Stopping named: [ OK ]
Starting named: [FAILED]


There's no error showing but why its not starting.

Please help...Thanks...
 
If there's no error, then where did you get this error from, which you posted earlier in this thread?
Error in named configuration:
zone localhost/IN: loading master file localhost.zone: file not found
_default/localhost/IN: file not found
That's the error.

Generally BIND posts errors in /var/log/messages.

Jeff
 
Thank you jlasman.

I solved that problem already. But my issue right now is this. Whem I'm trying to ping the name of the server e.g. dns03.now.com it says that could not find host. But IP is fine.

I tried nslookup on my pc & server:

On my PC:
Server: UnKnown
Address: 192.168.0.4

*** UnKnown can't find 192.168.0.4: Non-existent domain


[root@dns03 ~]# nslookup dns03.now.com
Server: 192.168.0.1
Address: 192.168.0.1#53

** server can't find dns03.now.com: NXDOMAIN


[root@dns03 ~]# nslookup 192.168.0.4
Server: 192.168.0.1
Address: 192.168.0.1#53

** server can't find 4.0.168.192.in-addr.arpa.: NXDOMAIN

So I'm wondering what else do I need to be changed.Hope it makes sense now.

Thank you.
 
When I test for dns03.now.com, I get:
Code:
$ dig dns03.now.com

; <<>> DiG 9.7.0-P1 <<>> dns03.now.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 47939
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;dns03.now.com.                 IN      A

;; AUTHORITY SECTION:
now.com.                1800    IN      SOA     dns3.pccw.com. dnsadmin.pcg-group.com. 2011041401 7200 3600 7200 3600

;; Query time: 223 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Fri Apr 22 06:05:14 2011
;; MSG SIZE  rcvd: 96

$

So either you don't have an A record for dns03.now.com, or you've given me the name of someone else's domain to test.

Note if you're hiding your domain name you should be using example.com, example.net, or example.org, which are specifically reserved for examples.

But note also that when you're hiding your domain name while asking someone for help you've made it impossible for anyone to know enough to help you. Please look here (ntworld.com) for more information.

And one more thing; if you're really trying to look up a local address (for example, 192.168.0.4) over the Internet, of course it won't be found, addresses beginning 192.168 are reserved as private, unrouteable addresses.

Jeff
 
Hi jlasman,

I hope you could help me about installing slave DNS I followed lot's of instruction & installation but I still having trouble on my slave DNS server. I'm new in Linux so please bare with me.

Here's my /etc/named.config

//
//named.conf for Red Hat caching-nameserver
//

options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";

/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/

// query-source address * port 53;
allow-transfer {208.99.198.184/32;};
};

//
// a caching only nameserver config
//

controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };

};


zone "now.com" IN {
type slave;
file "/var/named/now.zone";
// allow-update { none; };
allow-transfer { 192.168.0.1/32; };
masters { 192.168.0.1; };
};

zone "0.168.192.in-addr.arpa" IN {
type slave;
file "/var/named/0.168.192.in-addr.arpa";
// allow-update { none; };
allow-transfer { 192.168.0.1/32; };
masters { 192.168.0.1; };
};


include "/etc/rndc.key";


I encounter this error when I do start the service named


Error in named configuration:
zone localhost/IN: loading master file localhost.zone: file not found
_default/localhost/IN: file not found

What I want to do is BIND this server.

Please help. Thanks.

How did you solve this. I am geting the same error for a long time. I can't find these file names anywhere in the DNS configuration file.
 
There are several issues brought up in this thread, and copying a long post is probably not the best way to get it resolved. You might want to open a new thread and post your specific error message.

This thread is now over 2-1/2 years old, so I've closed it.

For the specific error mentioned in your quote I recmmended reinstalling BIND, as it likely didn't get properly installed.

Jeff
 
Status
Not open for further replies.
Back
Top