LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-18-2009, 07:01 PM   #1
mystika08
LQ Newbie
 
Registered: Mar 2009
Location: Morocco
Distribution: mandriva
Posts: 19

Rep: Reputation: 0
dns server not able to resolve local domain names


I recently installed bind9 on mandriva 2008.1, after having done the necessary configuration.. I still can't find my domain I configured cant ping on other machines on the LAN but can actually ping on any other website on the internet even though name server is configured to point to local machine..... I dont understand what I'm doing wrong.... can anyone please help me....
here are the configurationg files

/etc/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 80849 2007-09-06 11:56:48Z 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";

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 "0.0.127.in-addr.arpa" IN {
type master;
file "reverse/named.local";
};
zone "1.168.192.in-addr.arpa" in {
notify no;
type master;
file "master/femirule";
};
zone "femirule.com" in {
notify no;
type master;
file "master/femirule.com";

};

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.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; };
};

master/femirule.com
@ IN SOA femi.femirule.com.
root.femi.femirule.com.

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

IN NS femi.femirule.com.

localhost IN A 127.0.0.1

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

...

master/femirule
@ IN SOA femi.femirule.com.
root.femi.femirule.com.

(

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

IN NS femi.femirule.com.

1 IN PTR femi.femirule.com.

30 IN PTR Lin.femirule.com.

40 IN PTR win.femirule.com.

...

/etc/resolv.conf
nameserver 127.0.0.1


everything looks ok to me but somehow i can comunicate with the outside world which is not what I intended when i started.... can someone please help...

Last edited by mystika08; 03-18-2009 at 07:04 PM.
 
Old 03-18-2009, 07:11 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try

dig localmachinename

and see what output you get. Please post full output.
 
Old 03-19-2009, 07:33 AM   #3
mystika08
LQ Newbie
 
Registered: Mar 2009
Location: Morocco
Distribution: mandriva
Posts: 19

Original Poster
Rep: Reputation: 0
[root@femi femi]# dig femirule.com

; <<>> DiG 9.5.0-P1 <<>> femirule.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 5074
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;femirule.com. IN A

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Mar 19 12:29:04 2009
;; MSG SIZE rcvd: 30


[root@femi femi]# nslookup femirule.com
Server: 127.0.0.1
Address: 127.0.0.1#53

** server can't find femirule.com: SERVFAIL
 
Old 03-19-2009, 07:57 AM   #4
mystika08
LQ Newbie
 
Registered: Mar 2009
Location: Morocco
Distribution: mandriva
Posts: 19

Original Poster
Rep: Reputation: 0
tail -n 100 /var/log/syslog
I restarted named and got this from syslog

Mar 19 12:54:15 femi named[8877]: starting BIND 9.5.0-P1 -u named -t /var/lib/named
Mar 19 12:54:15 femi named[8877]: loading configuration from '/etc/named.conf'
Mar 19 12:54:15 femi named[8877]: listening on IPv4 interface lo, 127.0.0.1#53
Mar 19 12:54:15 femi named[8877]: listening on IPv4 interface eth0, 192.168.1.20#53
Mar 19 12:54:15 femi named[8877]: default max-cache-size (33554432) applies
Mar 19 12:54:15 femi named[8877]: automatic empty zone: 127.IN-ADDR.ARPA
Mar 19 12:54:15 femi named[8877]: automatic empty zone: 254.169.IN-ADDR.ARPA
Mar 19 12:54:15 femi named[8877]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
Mar 19 12:54:15 femi named[8877]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
Mar 19 12:54:15 femi named[8877]: automatic empty 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.0.IP6.ARPA
Mar 19 12:54:15 femi named[8877]: automatic empty 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
Mar 19 12:54:15 femi named[8877]: automatic empty zone: D.F.IP6.ARPA
Mar 19 12:54:15 femi named[8877]: automatic empty zone: 8.E.F.IP6.ARPA
Mar 19 12:54:15 femi named[8877]: automatic empty zone: 9.E.F.IP6.ARPA
Mar 19 12:54:15 femi named[8877]: automatic empty zone: A.E.F.IP6.ARPA
Mar 19 12:54:15 femi named[8877]: automatic empty zone: B.E.F.IP6.ARPA
Mar 19 12:54:15 femi named[8877]: default max-cache-size (33554432) applies: view _bind
Mar 19 12:54:15 femi named[8877]: command channel listening on 127.0.0.1#953
 
  


Reply

Tags
dns, mandriva2008, 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
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
Unable to resolve domain names holdem Linux - Networking 4 02-01-2004 10:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:11 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