LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-21-2009, 08:17 AM   #16
mystika08
LQ Newbie
 
Registered: Mar 2009
Location: Morocco
Distribution: mandriva
Posts: 19

Original Poster
Rep: Reputation: 0

here's the log from default.log

it looks like all zones I inputed couldnt be loaded ...
you should check this out.... thanks


21-Mar-2009 13:09:54.333 general: info: received control channel command 'stop '
21-Mar-2009 13:09:54.333 general: info: shutting down: flushing changes
21-Mar-2009 13:09:54.333 general: notice: stopping command channel on 127.0.0.1# 953
21-Mar-2009 13:09:54.371 network: info: no longer listening on 127.0.0.1#53
21-Mar-2009 13:09:54.372 network: info: no longer listening on 192.168.1.20#53
21-Mar-2009 13:09:54.567 general: notice: exiting
21-Mar-2009 13:09:56.718 general: info: zone 0.in-addr.arpa/IN: loaded serial 42
21-Mar-2009 13:09:56.719 general: info: zone 0.0.127.in-addr.arpa/IN: loaded ser ial 1997022700
21-Mar-2009 13:09:56.726 general: error: dns_rdata_fromtext: master/femirule:1: near eol: unexpected end of input
21-Mar-2009 13:09:56.726 general: error: zone 1.168.192.in-addr.arpa/IN: loading from master file master/femirule failed: unexpected end of input
21-Mar-2009 13:09:56.727 general: info: zone 255.in-addr.arpa/IN: loaded serial 42
21-Mar-2009 13:09:56.728 general: info: zone 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 1997022700
21-Mar-2009 13:09:56.739 general: error: dns_rdata_fromtext: master/femirule.com :2: near eol: unexpected end of input
21-Mar-2009 13:09:56.740 general: error: zone femirule.com/IN: loading from mast er file master/femirule.com failed: unexpected end of input
21-Mar-2009 13:09:56.741 general: info: zone localdomain/IN: loaded serial 42
21-Mar-2009 13:09:56.741 general: info: zone localhost/IN: loaded serial 42
21-Mar-2009 13:09:56.748 general: notice: running
 
Old 03-21-2009, 08:17 AM   #17
mystika08
LQ Newbie
 
Registered: Mar 2009
Location: Morocco
Distribution: mandriva
Posts: 19

Original Poster
Rep: Reputation: 0
here's the log from default.log

it looks like all zones I inputed couldnt be loaded ...
you should check this out.... thanks


21-Mar-2009 13:09:54.333 general: info: received control channel command 'stop '
21-Mar-2009 13:09:54.333 general: info: shutting down: flushing changes
21-Mar-2009 13:09:54.333 general: notice: stopping command channel on 127.0.0.1# 953
21-Mar-2009 13:09:54.371 network: info: no longer listening on 127.0.0.1#53
21-Mar-2009 13:09:54.372 network: info: no longer listening on 192.168.1.20#53
21-Mar-2009 13:09:54.567 general: notice: exiting
21-Mar-2009 13:09:56.718 general: info: zone 0.in-addr.arpa/IN: loaded serial 42
21-Mar-2009 13:09:56.719 general: info: zone 0.0.127.in-addr.arpa/IN: loaded ser ial 1997022700
21-Mar-2009 13:09:56.726 general: error: dns_rdata_fromtext: master/femirule:1: near eol: unexpected end of input
21-Mar-2009 13:09:56.726 general: error: zone 1.168.192.in-addr.arpa/IN: loading from master file master/femirule failed: unexpected end of input
21-Mar-2009 13:09:56.727 general: info: zone 255.in-addr.arpa/IN: loaded serial 42
21-Mar-2009 13:09:56.728 general: info: zone 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 1997022700
21-Mar-2009 13:09:56.739 general: error: dns_rdata_fromtext: master/femirule.com :2: near eol: unexpected end of input
21-Mar-2009 13:09:56.740 general: error: zone femirule.com/IN: loading from mast er file master/femirule.com failed: unexpected end of input
21-Mar-2009 13:09:56.741 general: info: zone localdomain/IN: loaded serial 42
21-Mar-2009 13:09:56.741 general: info: zone localhost/IN: loaded serial 42
21-Mar-2009 13:09:56.748 general: notice: running
 
Old 03-21-2009, 08:20 AM   #18
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Rep: Reputation: 30
Well these log entries
Quote:
21-Mar-2009 13:09:56.726 general: error: dns_rdata_fromtext: master/femirule:1: near eol: unexpected end of input
seem to indicate that the master/femirule:1 is somehow badly formatted. Can you post the contents of that file here?
 
Old 03-21-2009, 09:03 AM   #19
mystika08
LQ Newbie
 
Registered: Mar 2009
Location: Morocco
Distribution: mandriva
Posts: 19

Original Poster
Rep: Reputation: 0
[root@femi femi]# cat /var/lib/named/var/named/master/femirule
@ IN SOA femi.femirule.com.
root.femi.femirule.com.

(

2009032101 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum

IN NS femi.femirule.com.

20 IN PTR femi.femirule.com.

30 IN PTR Lin.femirule.com.

40 IN PTR win.femirule.com.

[root@femi femi]# cat /var/lib/named/var/named/master/femirule.com

$TTL 86400
@ IN SOA femi.femirule.com. root.femi.femirule.com.

(
2009032001; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum

IN NS femi.femirule.com.

localhost IN A 127.0.0.1

femirule.com. IN A 192.168.1.20
femi IN A 192.168.1.20

www CNAME femi

pop CNAME femi

news CNAME femi

Lin A 192.168.1.30

win A 192.168.1.40

Last edited by mystika08; 03-21-2009 at 09:09 AM.
 
Old 03-21-2009, 09:10 AM   #20
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Edit the beginning of both files, to be:
Code:
@ IN SOA femi.femirule.com. root.femi.femirule.com. (
Comment line 17 of /etc/namec.conf (include "/etc/bogon_acl.conf" since the file does not exist, restart bind and test.
If not succeeded post again the default.log.
 
Old 03-21-2009, 09:42 AM   #21
mystika08
LQ Newbie
 
Registered: Mar 2009
Location: Morocco
Distribution: mandriva
Posts: 19

Original Poster
Rep: Reputation: 0
after commenting include "/etc/bogon_acl.conf" named refused to start ..
the file does exist
I uncommented it and it started here's default.log

21-Mar-2009 14:35:29.547 general: info: zone 0.in-addr.arpa/IN: loaded serial 42
21-Mar-2009 14:35:29.548 general: info: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
21-Mar-2009 14:35:29.548 general: warning: master/femirule:1: no TTL specified; using SOA MINTTL instead
21-Mar-2009 14:35:29.549 general: error: zone 1.168.192.in-addr.arpa/IN: has no NS records
21-Mar-2009 14:35:29.549 general: info: zone 255.in-addr.arpa/IN: loaded serial 42
21-Mar-2009 14:35:29.550 general: info: zone 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 1997022700
21-Mar-2009 14:35:29.551 general: error: zone femirule.com/IN: has no NS records
21-Mar-2009 14:35:29.552 general: info: zone localdomain/IN: loaded serial 42
21-Mar-2009 14:35:29.553 general: info: zone localhost/IN: loaded serial 42
21-Mar-2009 14:35:29.559 general: notice: running
 
Old 03-21-2009, 09:50 AM   #22
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Could you please post the 2 zone files (femirule.com, femirule) using the CODE tags, so they can easily readable.
 
Old 03-21-2009, 09:56 AM   #23
mystika08
LQ Newbie
 
Registered: Mar 2009
Location: Morocco
Distribution: mandriva
Posts: 19

Original Poster
Rep: Reputation: 0
femirule.com
Code:
$TTL 86400
@ IN SOA femi.femirule.com. root.femi.femirule.com. (
2009032101; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum

IN NS femi.femirule.com.

localhost IN A 127.0.0.1

femirule.com. IN A 192.168.1.20
femi IN A 192.168.1.20

www CNAME femi

pop CNAME femi

news CNAME femi

Lin A 192.168.1.30

win A 192.168.1.40
femirule

Code:
@ IN SOA femi.femirule.com. root.femi.femirule.com. (

2009032101 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum

IN NS femi.femirule.com.

20 IN PTR femi.femirule.com.

30 IN PTR Lin.femirule.com.

40 IN PTR win.femirule.com.
 
Old 03-21-2009, 10:11 AM   #24
mystika08
LQ Newbie
 
Registered: Mar 2009
Location: Morocco
Distribution: mandriva
Posts: 19

Original Poster
Rep: Reputation: 0
I added TTL for file femirule and restarted named

Code:
21-Mar-2009 15:05:42.137 general: info: zone 0.in-addr.arpa/IN: loaded serial 42
21-Mar-2009 15:05:42.138 general: info: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
21-Mar-2009 15:05:42.138 general: error: zone 1.168.192.in-addr.arpa/IN: has no NS records
21-Mar-2009 15:05:42.139 general: info: zone 255.in-addr.arpa/IN: loaded serial 42
21-Mar-2009 15:05:42.140 general: info: zone 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 1997022700
21-Mar-2009 15:05:42.141 general: error: zone femirule.com/IN: has no NS records
21-Mar-2009 15:05:42.142 general: info: zone localdomain/IN: loaded serial 42
21-Mar-2009 15:05:42.142 general: info: zone localhost/IN: loaded serial 42
21-Mar-2009 15:05:42.149 general: notice: running
 
Old 03-21-2009, 10:14 AM   #25
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
They look good but just in case, you can try these:
Code:
$TTL 86400
@ IN SOA femi.femirule.com. root.femi.femirule.com. (
2009032102; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum

              IN NS femi.femirule.com.

localhost     A 127.0.0.1

femirule.com. A 192.168.1.20
femi          A 192.168.1.20
www           CNAME femi
pop           CNAME femi
news          CNAME femi
Lin           A 192.168.1.30
win           A 192.168.1.40
Code:
$TTL 86400
@ IN SOA femi.femirule.com. root.femi.femirule.com. (

2009032102 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum

   IN NS femi.femirule.com.
20 IN PTR femi.femirule.com.
30 IN PTR Lin.femirule.com.
40 IN PTR win.femirule.com.
 
Old 03-21-2009, 10:32 AM   #26
mystika08
LQ Newbie
 
Registered: Mar 2009
Location: Morocco
Distribution: mandriva
Posts: 19

Original Poster
Rep: Reputation: 0
IT WORKS!!!


THANKS bathory
THANKS Mark_667
FOR THE TIME AND PATIENCE


I GUESS THIS THREAD IS OFFICIALLY CLOSED....
 
Old 04-02-2009, 02:39 AM   #27
skaynum
LQ Newbie
 
Registered: Dec 2006
Posts: 17

Rep: Reputation: 0
It seems that bind is running in a chroot environment and the master file has not been linked to the chroot folder try check /var/named/chroot.
 
Old 06-21-2009, 01:27 PM   #28
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 331

Rep: Reputation: 50
I am having the same problem as the OP.

named-checkconf -z /etc/named.conf returns:

/etc/named.conf:17: open: /etc/bogon_acl.conf: file not found

Not sure if it's bad form to resurrect a thread, but seemed more efficient than asking the same question over again.

I used Webmin to configure BIND - I'm really not sure if I have the two zone files which sorted the OP out. Where would I find them?

My nameserver is ns1.bazzaah.com - Where reference is made to femi in the 2 files in bathory's last post, does that relate to the OP's nameserver or is it something else?

The good news is that I can dig/ping one of my nameservers, thus:

; <<>> DiG 9.6.0-P1 <<>> ns1.bazzaah.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43985
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;ns1.bazzaah.com. IN A

;; ANSWER SECTION:
ns1.bazzaah.com. 129383 IN A 78.150.125.227

;; AUTHORITY SECTION:
bazzaah.com. 130152 IN NS ns1.bazzaah.com.
bazzaah.com. 130152 IN NS ns2.bazzaah.com.

;; Query time: 23 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Sun Jun 21 19:23:19 2009
;; MSG SIZE rcvd: 81

My distro is Mandriva 64-bit 2009.1.

Here's my named.conf:

// (oe) Loosely based on the document below and from production server configurations.
// http://www.cymru.com/Documents/secur...-template.html
//
// $Id: named.conf 329224 2009-01-13 22:33:01Z oden $
// $HeadURL: svn+ssh://svn.mandriva.com/svn/packages/cooker/bind/current/SOURCES/named.conf $


// secret must be the same as in /etc/rndc.conf
include "/etc/rndc.key";

controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { mykey; };
};

// Access lists (ACL's) should be defined here
include "/etc/bogon_acl.conf";
include "/etc/trusted_networks_acl.conf";

// Define logging channels
include "/etc/logging.conf";

// Enable statistics at http://127.0.0.1:5380/
statistics-channels {
inet 127.0.0.1 port 5380 allow { 127.0.0.1; };
};

options {
version "";
directory "/var/named";
dump-file "/var/tmp/named_dump.db";
pid-file "/var/run/named.pid";
statistics-file "/var/tmp/named.stats";
zone-statistics yes;
// datasize 256M;
coresize 100M;
// fetch-glue no;
// recursion no;
// recursive-clients 10000;
auth-nxdomain yes;
query-source address * port *;
listen-on port 53 { any; };
cleaning-interval 120;
transfers-in 20;
transfers-per-ns 2;
lame-ttl 0;
max-ncache-ttl 10800;

// forwarders { first_public_nameserver_ip; second_public_nameserver_ip; };

// allow-update { none; };
// allow-transfer { any; };

// Prevent DoS attacks by generating bogus zone transfer
// requests. This will result in slower updates to the
// slave servers (e.g. they will await the poll interval
// before checking for updates).
notify no;
// notify explicit;
// also-notify { secondary_name_server };

// Generate more efficient zone transfers. This will place
// multiple DNS records in a DNS message, instead of one per
// DNS message.
transfer-format many-answers;

// Set the maximum zone transfer time to something more
// reasonable. In this case, we state that any zone transfer
// that takes longer than 60 minutes is unlikely to ever
// complete. WARNING: If you have very large zone files,
// adjust this to fit your requirements.
max-transfer-time-in 60;

// We have no dynamic interfaces, so BIND shouldn't need to
// poll for interface state {UP|DOWN}.
interface-interval 0;

// Uncoment these to enable IPv6 connections support
// IPv4 will still work
// listen-on { none; };
// listen-on-v6 { any; };

// allow-query { trusted_networks; };
allow-recursion { trusted_networks; };

// Deny anything from the bogon networks as
// detailed in the "bogon" ACL.
blackhole { bogon; };
};

// workaround stupid stuff... (OE: Wed 17 Sep 2003)
zone "ac" { type delegation-only; };
zone "cc" { type delegation-only; };
zone "com" { type delegation-only; };
zone "cx" { type delegation-only; };
zone "lv" { type delegation-only; };
zone "museum" { type delegation-only; };
zone "net" { type delegation-only; };
zone "nu" { type delegation-only; };
zone "ph" { type delegation-only; };
zone "sh" { type delegation-only; };
zone "tm" { type delegation-only; };
zone "ws" { type delegation-only; };

zone "." IN {
type hint;
file "named.ca";
};

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

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

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

zone "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 {
type master;
file "reverse/named.ip6.local";
allow-update { none; };
};

zone "255.in-addr.arpa" IN {
type master;
file "reverse/named.broadcast";
allow-update { none; };
};

zone "0.in-addr.arpa" IN {
type master;
file "reverse/named.zero";
allow-update { none; };
};
zone "www.bazzaah.com" {
type master;
file "/var/named/www.bazzaah.com.hosts";
};

Last edited by Bazzaah; 06-21-2009 at 01:39 PM. Reason: to add named.conf
 
Old 06-21-2009, 04:46 PM   #29
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
I don't get your real problem is.
That fact that you cannot find "/etc/bogon_acl.conf" is because you're running bind chrooted under /var/lib/named. In this case you have to run the command like this:
Code:
named-checkconf -z /etc/named.conf -t /var/lib/named
Since you can resolve your dns, then everything should work.
 
Old 06-22-2009, 01:52 AM   #30
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 331

Rep: Reputation: 50
Quote:
Originally Posted by bathory View Post
I don't get your real problem is.
That fact that you cannot find "/etc/bogon_acl.conf" is because you're running bind chrooted under /var/lib/named. In this case you have to run the command like this:
Code:
named-checkconf -z /etc/named.conf -t /var/lib/named
Since you can resolve your dns, then everything should work.
sorry - should have made myself clearer.

The problem is that I can resolve my nameserver but I always get "address not found" if I try and open the actual site (there's a small html file in the appropriate directory so there is something to display).

I was unaware when I posted yesterday that I can get a report on why the site won't resolve:

dig bazzaah.com domain returns

;; global options: +cmd
;; connection timed out; no servers could be reached
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 28412
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;domain. IN A

;; AUTHORITY SECTION:
. 10800 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2009062200 1800 900 604800 86400

;; Query time: 28 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Mon Jun 22 07:41:10 2009
;; MSG SIZE rcvd: 99

I'm not sure why I get NXDOMAIN as the domain is mine it's registered, definitely mine and the nameservers are with the registrar.

Any help would be really appreciated. If I can resolve the dns then perhaps it's not a big deal to get the site to display.

Last edited by Bazzaah; 06-22-2009 at 02:02 AM. Reason: change text
 
  


Reply

Tags
dns, server



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dns server not able to resolve local domain names mystika08 Linux - Newbie 3 03-19-2009 07:57 AM
How to resolve the domain names palanisaravanan Linux - Networking 2 01-02-2008 04:33 PM
DNS, Linux doesnt resolve domain names for me ikk Linux - Networking 6 08-28-2005 03:35 PM
DNS, Linux doesnt resolve domain names for me ikk Linux - Newbie 6 08-28-2005 03:29 PM
DNS will not resolve non-domain qualified names arobinson74 Linux - Networking 2 10-25-2004 04:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration