LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-04-2009, 09:41 AM   #1
coolinux
LQ Newbie
 
Registered: Aug 2009
Posts: 10

Rep: Reputation: 0
Why am I unable to "dig"


Hi All,

'm new to linux and 'm practising DNS in RHEL 5. The issue is that iam unable to configure DNS succesfully.

Anyways, below goes my configuration. I request you to advise me where am I commiting the mistake.

Here goes my simple DNS configuration:


Step 1: yum install bind* -y

The above steps will install the packages needed to configure DNS.
Packages required by DNS are:

1. bind 2. bind-utils 3. bind-chroot 4. caching-nameserver

Am I rite??

Step 2:

my PWD:

/var/named/chroot/etc/named.caching-nameserver.conf

at the line "listen on port {127.0.0.0;my-pc-ip-addr;};

I have given allow query,match clients and match destination as any.

Eg: match clients {localhost;any;};

Next I move to the file named.rfc1912.zones.......

I come to the last of the file and insert the below lines:

zone "testing.com" IN {
type master;
file "fwd.zone";
};

zone "1.168.192.in-addr.arpa" IN {
type master;
file "rev.zone";
};
:wq!

Step 3:

Now I navigate to /var/named/chroot/var/named

I copy the files localdomain.zone as fwd.zone and named.local as rev.zone

and issue the command "chgrp named fwd.zone rev.zone"

vim fwd.zone

SOA testing.com.

IN NS mac.testing.com
mac IN A my-pc-ip-addr
:wq!

vim rev.zone

SOA testing.com
IN NS mac.testing.com
100 IN PTR mac.testing.com
:wq!


Step 4:

I navigate to /etc/resolv.conf

search testing.com
nameserver my-pc-ip-adddr

NOTE: my hostname is mac.

I have modified in /etc/hosts

like:

192.168.1.100 mac.testing.com mac

:wq!

Now, I am able to restart the service.

service named restart

the service is started.

However, when I issue:

dig testing.com

the result is SERVFAIL......

I have tried even dig -x my-pc-ip-addr...

the result is SERVFAIL.........

ping testing.com doesnt ping

I have tried nslookup testing.com that did not work either........

i have tried "host testing.com", the result is unknown host.........


So, I have configured in the above way.. where am I going wrong....

or is there any other way to configure DNS successfully.....


Plzz help... I'm trying this since quite a couple of days and could'nt come up with any positive results........
 
Old 09-04-2009, 12:30 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,577
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
named.caching-nameserver.conf is an example file. You need to copy it to simply be named "named.conf" then restart your BIND with "service named restart".
 
Old 09-04-2009, 12:38 PM   #3
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Check log file /var/log/messages, if log is not useful start in higher log level
#named -d 2
now check /var/named/data/named.run

thnks
 
  


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
BIND With CentOS - Cant "DIG" From Remote Machine ihod2008 Linux - Server 1 03-05-2008 04:57 AM
"dig mx" and "ping google" do not work when bind9 runs.. why? alexxxis Linux - Software 4 01-07-2007 04:16 AM
"dig mx" or "ping" not working because of bind9? alexxxis Debian 4 01-07-2007 12:26 AM
Common problems explained: "kernel panic - not syncing", "unable to mount..." sundialsvcs Linux - Newbie 2 03-01-2006 01:17 PM
"dig command" result in depth blackzone Linux - Networking 1 07-05-2004 07:04 AM


All times are GMT -5. The time now is 01:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration