[96687] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: DNS and diald - can they work together?

daemon@ATHENA.MIT.EDU (William Stearns)
Wed Oct 28 18:20:59 1998

Date: Wed, 28 Oct 1998 18:23:49 -0500 (EST)
From: William Stearns <wstearns@pobox.com>
To: redhat-list@redhat.com
cc: Kevin Thorpe <kthorpe@pricetrak.com>
In-Reply-To: <A12CA63101332D00@c2gate.tcom.co.uk>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Good day, Kevin,

On Wed, 28 Oct 1998, KThorpe wrote:

> I'm trying to set up a DNS server for our small network. Any failed requests 
> need passing on to our ISP's DNS or the authoritative servers.
> 
> I've got a cacheing nameserver set up as per the DNS-HOWTO which works fine 
> when the ppp link is up. This correctly gives answers from its internal 
> tables where possible and from cache or the 'net when not.
> 
> The problem is when the ppp link is down. It doesn't seem to generate 
> requests to kick diald into action. I can't see any pending in the 
> diald-control screen.
> 
> Can these work together and if so what am I missing? I'll send my config 
> files if anyone is prepared to help.

	I suspect you'll find your answer in diald's configuration file.
Diald is highly configurable in what packets will bring up the link, and
even for how long the link will stay up after one of those packets.
	Take a look in diald.conf or /usr/lib/diald.filter in the "Rules
for UDP packets" section. If you find a line like:

ignore udp udp.dest=udp.domain,udp.source=udp.domain

comment it out, like:

#ignore udp udp.dest=udp.domain,udp.source=udp.domain

	This section of mine ends up like:

# Don't bring up on domain name requests between two running nameds.
#ignore udp udp.dest=udp.domain,udp.source=udp.domain
# Bring up the network whenever we make a domain request from someplace
# other than named.
#accept udp 30 udp.dest=udp.domain 
#accept udp 30 udp.source=udp.domain
accept udp 120 udp.dest=udp.domain 
accept udp 120 udp.source=udp.domain
	I give the link two minutes if a DNS request opens it - decide
what's best for your site.

	One last note; the link will come up randomly for something as
simple as a user doing a netbios lookup for a netbios printer.  To
minimize this, try to disable "Netbios lookup uses DNS" on as many
machines as possible.  Also, in /etc/host.conf on all linux machines, make
sure you have:

order hosts,bind

, and in /etc/hosts (or c:\windows\HOSTS) have lines for every machine on
your lan and the lan itself; for example:

192.168.12.0	MYLAN
192.168.12.1	linux-gw	linux-gw.mydomain.net.
192.168.12.2	pres-pii
...

	Cheers,
	- Bill

---------------------------------------------------------------------------
Unix _is_ user friendly.  It's just very selective about who its friends 
are.  And sometimes even best friends have fights.
William Stearns (wstearns@pobox.com)
Mason, buildkernel, and named2hosts are at: http://www.pobox.com/~wstearns
---------------------------------------------------------------------------



-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post