LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-20-2005, 11:28 AM   #1
Trano
Member
 
Registered: Jul 2004
Posts: 30

Rep: Reputation: 15
DNS Server not working on Linux Router


I am trying to set up a Slackware 10 router for my network. I want this server to act as a DNS server as well. I have installed the BIND package that comes with Slackware and am using the default configuration.

My external interface (eth0) gets DHCP. This sets the nameservers in resolv.conf to 10.141.8.1 and 10.141.8.2 which is correct. If I run dig on the router with these nameservers, it resolves correctly. If I then set resolv.conf to use 127.0.0.1 as my nameserver, it will also resolve correctly.

The problem is that on my internal network I set the DNS server to the internal interface of the router (eth1 - 192.168.1.1). The internal computers cannot resolve.

I have looked around and can't figure out why. Do I have to set up a zone for the internal network? Currently the only zones I have are ".","localhost", and"0.0.127.in-addr.arpa". These are the ones that were in the default configuration for a caching DNS server.

Does anyone know why this is happening?

Thank you for any help.
 
Old 04-20-2005, 12:37 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
have u set the routes correctly on the internal systems???

run

route -n

on internal computers

regards
 
Old 04-20-2005, 02:17 PM   #3
Trano
Member
 
Registered: Jul 2004
Posts: 30

Original Poster
Rep: Reputation: 15
All the internal computers are running windows.

Each of the internal computers gets DHCP from the router which assigns the range 192.168.1.100-192.168.1.254/24 and sets the default gateway and DNS server to the router's internal nic (192.168.1.1) using option routers and option domain-name-servers in dhcpd.conf.

For some reason, it is slightly working now. As long as I leave the router's resolv.conf to have the DNS servers it gets from it's DNS, I can resolve from a non-authoritive server, which means it is working off the external servers. But if I set resolv.conf to use itself and restart BIND, the windows computers cannot resolve and the router can.

At least it is working now, but why would it not work with 127.0.0.1 in resolv.conf?

Thank you for your response.
 
Old 04-20-2005, 02:38 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
there is no reason for me that it should not work
also when it does not work then

run

ipconfig
tracert yahoo.com
ping yahoo.com

on win machines

regards
and
 
Old 04-21-2005, 11:40 AM   #5
Trano
Member
 
Registered: Jul 2004
Posts: 30

Original Poster
Rep: Reputation: 15
Well it now seems to be working sometimes with 127.0.0.1. Ipconfig /all gives me:


Ethernet adapter Wireless Network Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) PRO/Wireless 2200BG Network Connection
Physical Address. . . . . . . . . : 00-0E-35-0D-C0-3A
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.250
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1
Lease Obtained. . . . . . . . . . : Thursday, April 21, 2005 10:20:58 AM
Lease Expires . . . . . . . . . . : Thursday, April 21, 2005 10:20:58 PM


Tracert, and ping bothwork (I wont show you the output, it doesn't show much, pings are blocked on the network I am testing on, they think it uses too much bandwidth), but nslookup gives an error sometimes. Occasionally it will work, and the rest of the time I get:


C:\Documents and Settings\Administrator>nslookup yahoo.com
DNS request timed out.
timeout was 2 seconds.
*** Can't find server name for address 192.168.1.1: Timed out
*** Default servers are not available
Server: UnKnown
Address: 192.168.1.1

DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
*** Request to UnKnown timed-out


When it does work I get:


C:\Documents and Settings\Administrator>nslookup yahoo.com
*** Can't find server name for address 192.168.1.1: Non-existent domain
*** Default servers are not available
Server: UnKnown
Address: 192.168.1.1

DNS request timed out.
timeout was 2 seconds.
Non-authoritative answer:
Name: yahoo.com
Addresses: 216.109.112.135, 66.94.234.13


What is strange is that there is no way to predict which will occur, one will sometimes, and sometimes its the other.
 
Old 04-21-2005, 01:41 PM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
if it is working sometimes and failing sometimes then i think u should consider putting an alternate entry of the nameserver of ur ISP

regards
 
  


Reply



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
NFS Broke my Router and DNS Server? Gsee *BSD 2 04-08-2005 01:30 AM
DNS server on redhat 9 with a router sairam71 Linux - Networking 3 12-29-2004 05:30 PM
DNS from DHCP server not working mikegorb Linux - Networking 1 10-25-2004 03:02 AM
DNS server setup behind router goodman Linux - Networking 2 04-30-2004 03:42 AM
DNS server configuration with router??? deepika Linux - Networking 10 09-24-2003 02:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:57 AM.

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
Open Source Consulting | Domain Registration