LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 12-17-2006, 06:04 PM   #1
sorenp
LQ Newbie
 
Registered: Dec 2006
Posts: 11

Rep: Reputation: 0
Trouble with LAN nameserver...


Hello!

This is my first post, so feel free to laugh at me wile I'm still new and dumb :P .

My problem is that my local nameserver sometimes fail to respond to lookups in the local name zone. I've set up a number of domain names on my local network under the TLD .lan to avoid using ip's when accessing the machines. When it's been a while (more than one hour) since the last time I requested a .lan domain the first lookup always fails. This is usually when I try to send an email and the email client fails to connect to server.lan. Subsequent lookups work fine, but due to the DNS cache, server.lan will not be accessible until the cache expires.

I have the following network setup: I have three computers (one server and two clients) connected to an integrated router/switch/access-point (the gateway). The gateway has ip 192.168.1.1 and the server has 192.168.1.200. The gateway provides DHCP for the network and assigns permanently allocated addresses to all recognized clients based on MAC address. The gateway also provides DNS forwarding which means that all clients have 192.168.1.1 as their DNS server. The gateway is in turn set up to forward DNS requests to 192.168.1.200.

The server runs Slackware and Bind 9.3.1 with the following zone files:

lan.zone:
;
; lan zone file
;

$TTL 1D
$ORIGIN lan.

@ IN SOA dns.lan. root (
2006120801 ; serial
6H ; refresh
1H ; retry
1W ; expire
1D ) ; mimimum TTL


IN NS dns.lan.



gateway IN A 192.168.1.1
johanna IN A 192.168.1.10
zara IN A 192.168.1.20
server IN A 192.168.1.200

dns CNAME server

www.server CNAME server
www.gateway CNAME gateway


lan.revp:
;
; Revp for lan
;

$TTL 1D

@ IN SOA lan. root.lan. (
2006051903 ; Serial
8H ; Refresh
4H ; Retry
1W ; Expire
1D ) ; TTL Minimum

IN NS lan.

1 IN PTR gateway.lan.
10 IN PTR johanna.lan.
20 IN PTR zara.lan.
200 IN PTR server.lan.



It is worth noting that I never had problems with lookups on other TLD's than .lan...

Anyone got any clue???

Thankful for any help,

Yours Sincerely,

Soren
 
Old 12-18-2006, 02:03 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
please do not post deliberately to bump your post count. it is not appreciated.
 
  


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
Trouble with new installed lan adapter fara78 Linux - Networking 3 05-17-2006 02:46 AM
Lan card trouble ur-unholyness Linux - Newbie 6 04-10-2005 10:59 AM
A7N8X-E Mainboard and lan trouble Xerop Linux - Hardware 2 05-09-2004 09:32 PM
Red Hat 9 and LAN trouble capetech Linux - Networking 9 08-21-2003 05:26 PM
having trouble with wireless lan evian Linux - Hardware 0 03-16-2003 03:42 PM


All times are GMT -5. The time now is 06:35 PM.

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