Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-05-2005, 06:12 PM   #1
LQ Newbie
Registered: Apr 2005
Posts: 7

Rep: Reputation: 0
DNS test result. What's wrong?

I am setting up a Red Hat Linux DNS server sitting on DMZ network. Mu goal is to
have it work as a local DNS cache server to reduce outboubd network traffic. Also,
I think our ISP's DNS servers are not very effcient.
Below is my test results. Could somebody tell me what's wrong with my setup by
looking at results? Thanks.

On both DNS server and client:
( www is on 10.0.0.x DMZ network, pecap1 is on 192.168.0.x Intranet )

dig ->
dig www -> connection time out, no server could be reached
dig -x ->
dig -x ->
dig pecap1 -> connection time out. No server could be reached.
dig -> Status: NXDOMAIN

nslookup>www -> name:

> -> name:

> ->

>pecap1 -> connection time out. No server could be reached

> -> server can't find NXDOMAIN
Old 04-05-2005, 08:02 PM   #2
Registered: Aug 2004
Location: Gainesville, FL
Distribution: Linux Mint 12, Win7, iOS
Posts: 208

Rep: Reputation: 33
If you are trying to set up a dns lookup server, all I had to do was turn on the "named" service on my RH9 server and that is what I am using for dns lookups at my house instead of the cox dns servers. It worked for me.

Hope it helps.

Old 04-05-2005, 08:04 PM   #3
Registered: Aug 2004
Location: Tucson, AZ
Distribution: Ubuntu 9.04 & 10.10, RHEL 4 & 5
Posts: 48
Blog Entries: 3

Rep: Reputation: 16
The /etc/resolver.conf file on your Redhat DNS server contains the instructions on how to find answers to DNS queries.

Your /etc/resolver.conf should contain at minimum the following two lines:
nameserver <your_isp_dns_server>

The first line is your localhost address for the server machine, on which this file resides.
The second line points to your ISP DNS server(s).
Your local network PCs should then point to the server machine for DNS, so it can do the caching.

I'm assuming you've already setup a caching DNS server on the server machine. If not, that is the next step before it will work! One thing to check for in the /etc/named.conf file is to have these lines in the options section.
options {
directory "/var/named";
forward first;
forwarders {;;

where and are your ISP DNS servers. This forwards any DNS queries not resolved in your local cache to them. The directory, obviously, should be the one you used for your setup.

Last edited by w7hd; 04-05-2005 at 08:06 PM.
Old 04-05-2005, 08:21 PM   #4
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
One thing looks like a routing issue. Since it is only going to be used as a local caching server then why put it in a DMZ. Keep it in your same subnet.

" Google the Linux way @ "


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
df -h wrong result ? csrh Linux - General 2 03-08-2005 09:35 AM
df reports wrong result for Win partition sharathkv1 Fedora 2 09-03-2004 07:24 AM
Who know about the lmbench? I can not understand the test result. Linfish Linux - Software 0 07-13-2004 05:17 AM
guarddog test result oddities salparadise Linux - Software 0 03-09-2004 04:33 PM
how to grep within a script, and test result? bobbyr Programming 4 01-13-2004 01:11 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:36 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
Open Source Consulting | Domain Registration