Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-04-2009, 08:41 AM   #1
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:


at the line "listen on port {;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 "" IN {
type master;
file "";

zone "" IN {
type master;
file "";

Step 3:

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

I copy the files as and named.local as

and issue the command "chgrp named"



mac IN A my-pc-ip-addr


100 IN PTR

Step 4:

I navigate to /etc/resolv.conf

nameserver my-pc-ip-adddr

NOTE: my hostname is mac.

I have modified in /etc/hosts

like: mac


Now, I am able to restart the service.

service named restart

the service is started.

However, when I issue:


the result is SERVFAIL......

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

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

ping doesnt ping

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

i have tried "host", 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, 11:30 AM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,986
Blog Entries: 14

Rep: Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187
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, 11:38 AM   #3
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/



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

All times are GMT -5. The time now is 05:34 AM.

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