OK,
Let's get to the bottom of this. With a properly functioning dns and
dhcpd the system should be be idiot proof and work 100% of the time. It's
that simple. For LM, BIND and dhcpd work flawlessly once configured. Your
dhcpd.conf should look something like this: (of course there are more
options and your internal LAN address may vary)
subnet 192.168.7.0 netmask 255.255.255.0 {
# default gateway
option routers 192.168.7.13; (** this is your Linksys Router
address***)
option subnet-mask 255.255.255.0;
option domain-name "**whatever your domain is**.com";
option domain-name-servers 192.168.7.14; (this is your server
running B IND)
option netbios-name-servers 192.168.7.14; (ditto)
ddns-domainname "**whatever your domain is**.com";
range dynamic-bootp 192.168.7.20 192.168.7.100; **whatever works for
you**
default-lease-time 21600; (up to you)
max-lease-time 43200; (ditto)
# Adding zone information
zone "**whatever your domain is**.com". {primary 127.0.0.1; }
**** note the "." after the domain name in the line above -- syntax -- very
important!****
}
Now if your running BIND, your named.conf should look something like this:
// Filename: /etc/named.conf
options {
directory "/var/named";
forward first;
forwarders { 205.218.118.1; 208.180.0.2;}; *** whatever yours are
****
};
zone "." {
type hint;
file "named.ca";
};
zone "localhost" {
type master;
file "localhost";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "127.0.0";
};
zone "**whatever your domain is**.com" {
type master;
file "**whatever your domain is**.com (your zone filename that
is)";
allow-update{**whatever your domain is**.com;}; (**not the most
secure, but bind 8 wouldn't generate a secure key**)
};
zone "7.168.192.in-addr.arpa" {
type master;
file "192.168.7";
allow-update{localhost;}; (**same comment as above**)
};
Your various zone files in /var/named will automatically update and should
look like this:
[root@Nemesis david]# ls /var/named
127.0.0* 192.168.7 localhost* named.ca* named.local* rbpllc.com (that's
my domain)
'
[root@Nemesis david]# cat /var/named/192.168.7
;BIND DUMP V8
$ORIGIN 168.192.in-addr.arpa.
7 172800 IN SOA Nemesis.rbpllc.com. root.rbpllc.com. (
2001023125 86400 7200 3600000 172800 ) ;Cl=5
172800 IN NS Nemesis.rbpllc.com. ;Cl=5
$ORIGIN 7.168.192.in-addr.arpa.
94 10800 IN PTR davidgbox.rbpllc.com. ;Cl=5
100 10800 IN PTR Rankin.rbpllc.com. ;Cl=5
95 10800 IN PTR Jodie.rbpllc.com. ;Cl=5
13 172800 IN PTR gw.rbpllc.com. ;Cl=5
14 172800 IN PTR Nemesis.rbpllc.com. ;Cl=5
172800 IN PTR mail.rbpllc.com. ;Cl=5
98 10800 IN PTR Secretary.rbpllc.com. ;Cl=5
99 10800 IN PTR TRIPOD.rbpllc.com. ;Cl=5
[root@Nemesis david]# cat /var/named/rbpllc.com
;BIND DUMP V8
$ORIGIN com.
rbpllc 172800 IN SOA Nemesis.rbpllc.com. root.rbpllc.com. (
2001023127 86400 7200 3600000 172800 ) ;Cl=2
172800 IN NS Nemesis.rbpllc.com. ;Cl=2
172800 IN NS 205.218.118.1. ;Cl=2
172800 IN MX 0 mail.rbpllc.com. ;Cl=2
$ORIGIN rbpllc.com.
TRIPOD 10800 IN A 192.168.7.99 ;Cl=2
Jodie 10800 IN A 192.168.7.95 ;Cl=2
davidgbox 10800 IN A 192.168.7.94 ;Cl=2
Rankin 10800 IN A 192.168.7.100 ;Cl=2
gw 172800 IN A 192.168.7.13 ;Cl=2
mail 172800 IN A 192.168.7.14 ;Cl=2
localhost 172800 IN A 127.0.0.1 ;Cl=2
Secretary 10800 IN A 192.168.7.98 ;Cl=2
Nemesis 172800 IN A 192.168.7.14 ;Cl=2
www 172800 IN A 192.168.7.14 ;Cl=2
** In a nutshell, that's it! There is NO free ride, read the documentation
and get it set up. Once it is set up, it is bulletproof and fast as a
"scaulded ape" And ------ if there are any questions, politely as Andrew, he
is the guru that helped me get through the fog. Andrew Bartlett (E-mail
Address(es): [EMAIL PROTECTED]) Just don't tell him I gave you his
address!
Sorry Andrew, I didn't know anyone else that would be albe to pick it up
from here. Andrew, just FYI, weather is just fine in Texas, hope it's OK
down under as well! If it makes you feel an better, my daughter is named
Sydney.........
--
David C. Rankin, J.D., P.E.
Rankin * Bertin, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
(936) 715-9333
----- Original Message -----
From: "Michael Adams" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 04, 2003 12:00 PM
Subject: Re: [expert] DHCP duplicate lease???
> On Sun, 05 Jan 2003 05:38, Jack Coates wrote:
> > On Sat, 2003-01-04 at 05:36, Mark Weaver wrote:
> > > Hi List,
> > >
> > > Lately I've been seeing a lot of this in my log files:
> > >
> > > Jan 3 06:00:54 mdw1982 dhcpd: DHCPREQUEST for 192.168.0.252 from
> > > 00:08:a1:1d:53:c8 (manloki) via eth0
> > > Jan 3 06:00:54 mdw1982 dhcpd: DHCPACK on 192.168.0.252 to
> > > 00:08:a1:1d:53:c8 (manloki) via eth0
> > > Jan 3 06:01:58 mdw1982 dhcpd: client 00:08:a1:1d:53:c8 has duplicate
> > > leases on 192.168.0.0/24
> > >
> > > Line after line after line of it as a matter of fact. "manloki" is on
of
> > > two workstations. The IP address range that I've got set for DHCP is
> > > 192.168.0.250 - 192.168.0.252. What could this message be "really"
> > > trying to tell me?
> >
> > One of two possibilities: A, it's a laptop that comes and goes all the
> > time, or B, it's a non-Linux OS that disagrees about the DHCP
> > implementation. In either case, the workstation is ending up with
> > duplicate leases; I'll bet that they're on the same IP address too. I
> > would try making your range bigger first, and maybe tweak the lease time
> > to be longer.
>
> third option:
> You shouldn't have used the name Loki in this workstation name. ;) Wasn't
he
> the Norse god of trickery? "The Mask" with Jim Carey was Loki's mask.
> --
> Michael
>
>
----------------------------------------------------------------------------
----
> Want to buy your Pack or Services from MandrakeSoft?
> Go to http://www.mandrakestore.com
>
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com