LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-28-2008, 12:17 PM   #1
bunty82
LQ Newbie
 
Registered: Apr 2008
Location: New Delhi, India
Distribution: RHEL 5
Posts: 13

Rep: Reputation: 0
Thumbs down DNS error


Alright guys here are my
named.conf entries
//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named( DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
options {
listen-on port 53 { 192.168.0.45; };
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";
query-source port 53;
query-source-v6 port 53;
allow-query { localhost;192.168.0.45; };
allow-transfer {localhost;192.168.0.45; };
forwarders {192.168.0.45;};
forward only ;
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
match-clients { localhost; };
match-destinations { localhost; };
recursion yes;
include "/etc/named.rfc1912.zones";
};


my forward..zone file entries
$TTL 86400
@ IN SOA mac.com. root.mac.com (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

IN NS mac.com
mac.com IN A 192.168.0.45


my reverse.zone entries

$TTL 86400
@ IN SOA 0.168.192.in.addr.arpa. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS 0.168.192.in.addr.arpa.
45 IN PTR mac.com.

Entries of my named.rfc1912.zones

the last 11 lines edited
zone "mac.com" IN {
type master;
file "named.broadcast";
allow-update { none; };
};

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

my dns name is mac.com

now my problems is i can only
dig it and i get the following
result

; <<>> DiG 9.3.3rc2 <<>> mac.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 16514
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

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

;; Query time: 0 msec
;; SERVER: 192.168.0.45#53(192.168.0.45)
;; WHEN: Mon Jul 28 17:51:48 2008
;; MSG SIZE rcvd: 25

i am unable to
do the following

ssh mac.com
nslookup mac.com
ftp mac.com

i get the following error
unable to resolve name resolution

please help
 
Old 07-28-2008, 02:06 PM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,439
Blog Entries: 1

Rep: Reputation: 66
try to comment the following line in your named.conf:
Code:
// allow-query { localhost;192.168.0.45; };
// allow-transfer {localhost;192.168.0.45; };
// forwarders {192.168.0.45;};
// forward only ;
The allow-query limits who can make queries to this dns. You really want to allow just the dns server itself ?

The forwards clause send the query to ANOTHER dns server. Does not make sense to put the same ip address of your server.

And the port 53 is open in your firewall ?
 
Old 07-28-2008, 09:13 PM   #3
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
Whats your /etc/resolv.conf entry?

You name servers ip should be there:
nameserver 127.0.0.1 # If bind running in the same system
nameserver 192.168.0.45


Whats the result of :

dig mac.com @192.168.0.45
 
Old 07-29-2008, 06:52 AM   #4
bunty82
LQ Newbie
 
Registered: Apr 2008
Location: New Delhi, India
Distribution: RHEL 5
Posts: 13

Original Poster
Rep: Reputation: 0
the dig entries are there in the post
 
Old 07-29-2008, 03:44 PM   #5
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
You do realize that somebody else owns mac.com; you should not attempt to usurp an existing domain.

Did you reload bind?
Did you update the serial number?
What do the messages say in /var/log/messages (or wherever yours logs) upon bind startup?
 
Old 07-31-2008, 02:41 PM   #6
abdulbaqi
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Rep: Reputation: 0
after all these setting you go in folder /va/../named/
and change the group ownership of your farword/reverse zone files.
In RHEL 5 it is rquired to change the group owner root -> named.

Abdul Baqi
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Error jackduh Linux - Networking 1 06-18-2008 05:02 PM
dns error rohit_67066 Linux - Server 5 01-29-2008 03:35 AM
Win2k3 DNS + PFsense DNS Forwarder = No internal DNS resolution Panopticon Linux - Networking 1 11-19-2007 09:59 PM
TEMP_FAILURE: DNS Error: Timeout while contacting DNS servers when receiving emails tonysutherland Linux - Networking 2 02-10-2006 09:04 AM
DNS Error collins92 Linux - Networking 3 01-06-2006 09:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:01 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration