LinuxQuestions.org
Help answer threads with 0 replies.
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-30-2004, 01:08 AM   #1
goodman
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Rep: Reputation: 0
Angry DNS server setup behind router


Hi

I am setting up a public DNS server for my registered domain. I have the following problem.

I have a LAN, I use one the hosts (redhat linux box) to setup the DNS server. When I do the DNS query on this machine using the private IP or localhost, everything is fine.

for example:
I can do
> nslookup
>server 192.168.0.103 (private IP of the host)
> mydomain.com

the output is correct


However, if I do it on another machine(windows XP) in the LAN, and I do the exactly the same thing as above. I wanted to qurey the server for the IP of my domain.

I got no answer, saying the "no response from the server".


Another problem is, on both machines, if I use the public IP, then neither of them work.




Can anybody help me? Thanks in advance!
 
Old 04-30-2004, 02:52 AM   #2
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
If you set your DNS server on your XP box to the Linux box, can you resolve other Internet domains?

Do you have iptables running? I believe that the default configuration for RedHat installation is to block all ports. Check the command "iptables -L" to see if it is blocking anything. If it is, you need to change the iptables startup script to allow udp and tcp port 53.

For the problem using the public IP, I'm presuming that you are using port forwarding on your router? If so, then I think that is a problem with most routers. I have the same problem, where it will not forward from the private subnet, to a NAT'ed host on the same subnet.
 
Old 04-30-2004, 04:42 AM   #3
metalick
Member
 
Registered: Apr 2004
Location: Zagreb, Croatia
Distribution: SuSE 9.0
Posts: 44

Rep: Reputation: 15
Re: DNS server setup behind router

Quote:
Originally posted by goodman
Hi

I am setting up a public DNS server for my registered domain. I have the following problem.

I have a LAN, I use one the hosts (redhat linux box) to setup the DNS server. When I do the DNS query on this machine using the private IP or localhost, everything is fine.

for example:
I can do
> nslookup
>server 192.168.0.103 (private IP of the host)
> mydomain.com

the output is correct


However, if I do it on another machine(windows XP) in the LAN, and I do the exactly the same thing as above. I wanted to qurey the server for the IP of my domain.

I got no answer, saying the "no response from the server".


Another problem is, on both machines, if I use the public IP, then neither of them work.




Can anybody help me? Thanks in advance!
Hmmm... I didn't quite understand... Can you resolve other host names from your DNS machine?
for instance if you do:
> dig www.cnn.com
(use dig instead of nslookup )

What will be the outcome?
If you cant get to the outer world through the DNS server then none of the other machines in your LAN will.
Check the gateway of the DNS server.
And as shubb said, check the firewall policy and enable incoming queries on port 53 from your LAN if it is not already enabled.

Other than that, in the LAN clients in the specify to not to use the proxy (if one) for your domain, or for your network's addresses.
 
  


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
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-28-2012 12:50 AM
DNS server on redhat 9 with a router sairam71 Linux - Networking 3 12-29-2004 06:30 PM
setup a dns server Red Squirrel Linux - Networking 3 06-22-2004 10:15 AM
DNS server configuration with router??? deepika Linux - Networking 10 09-24-2003 03:40 PM
Setup a linux server, DNS, WEB, FTP, and Mail Server Help watermelon_lee Linux - Networking 1 08-26-2003 04:09 AM


All times are GMT -5. The time now is 03:47 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