LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-05-2005, 05:12 PM   #1
frankpretec
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 www.mydomain.com -> 10.0.0.9
dig www -> connection time out, no server could be reached
dig -x 10.0.0.10 -> pec80.mydomain.com
dig -x 192.168.0.11 -> pecap1.0.168.192.in-addr.arpa.
dig pecap1 -> connection time out. No server could be reached.
dig pecap1.mydomain.com -> Status: NXDOMAIN

nslookup>www -> name: www.mydomain.com
address: 10.0.0.9

>www.mydomain.com -> name: www.mydomain.com
address: 10.0.0.9

>192.168.0.11 -> 11.0.168.192.in-addr.arpa
name: pecap1.0.168.192.in-addr.arpa

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

>pecap1.mydomain.com -> server can't find pecap1.mydomain.com: NXDOMAIN
 
Old 04-05-2005, 07:02 PM   #2
dsschanze
Member
 
Registered: Aug 2004
Location: Gainesville, FL
Distribution: Linux Mint 12, Win7, iOS
Posts: 206

Rep: Reputation: 32
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.

-Derek
 
Old 04-05-2005, 07:04 PM   #3
w7hd
Member
 
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 127.0.0.1
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 {
207.209.1.1;
207.209.10.1;
};
};

where 207.201.1.1 and 207.201.10.1 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 07:06 PM.
 
Old 04-05-2005, 07:21 PM   #4
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
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.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
  


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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration