-   Linux - Networking (
-   -   Trouble with LAN nameserver... (

sorenp 12-17-2006 06:04 PM

Trouble with LAN nameserver...

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 and the server has 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 as their DNS server. The gateway is in turn set up to forward DNS requests to

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

$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
johanna IN A
zara IN A
server IN A

dns CNAME server

www.server CNAME server
www.gateway CNAME gateway

; Revp for lan


@ 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,


acid_kewpie 12-18-2006 02:03 AM

please do not post deliberately to bump your post count. it is not appreciated.

All times are GMT -5. The time now is 01:54 AM.