Hello Joep,

> Hi,
> I have a 2 questions on dnsmasq which I hope are only relates to wrong
> parameter setting.
> 1.   when I assign a fixed IP-address to a system on my
> network, it doesn't show up in the dnsmasq.leases file and consequently
> are not found by the rest of the systems on the network. Of course I can
> put them in the hosts file but that's 'cheating'.

No, that's not cheating but exactly how it's supposed to be ;)

The "_dynamic_ host configuration protocol" (dhcp) is a protocol that
assigns an ip-address and other values to an host and also stores some
info about that host in a lease file (dnsmasq.leases). The lease file
contains information about how long a lease is valid, etc.

What you are doing is basicly bypassing dhcp and _statically_ configure
the host. The dhcp daemon has no knowledge about those static hosts (they
don't ask for a lease) and so they are not stored in a leases file (and
they shouldn't).

You have a few options to let dnsmasq (the caching dns part) know about
those hosts:
-Use the /etc/hosts file, this is a very simple "dns" implementation.
Dnsmasq will read this file and knows the names and ip-addresses.
-Always give certain hosts a "fixed" dhcp address (something like below,
but there a a lot of exemples in the dnsmasq.conf file)
dhcp-host=joep,192.168.1.20,infinite
-Use something like tinydns on the router (a dns server).

> 2.   when I restart my
> system it takes hours before all systems on the network are reachable by
> their name (i.e. added to the dnsmasq.leases file). Of course I can speed
> it on windows systems with "route /renew" in a DOS -box and with ifconfig
> in linux but why doesn't dnsmasq when (re)started do a broadcast to renew
> all leases? Hope somebody has the answer.

Correct, the leases file is not persistant. If you reboot your system the
file is lost and the client info will be "added" again after the clients
reach half of there lease time and report back to dnsmasq's dhcp daemon.
Note that dhcp is a client driven process, the clients asks the daemon for
a lease not vice versa.

Dnsmasq doesn't do a broadcast for two obvious reasons:
-It's not in the RFC
-It doesn't work reliable, because a broadcast will not pass subnets. So
if you have an other router in the path (with a relay daemon) a broadcast
from the dnsmasq dhcpd will not pass that router and reach the clients. It
would be a very bad idea also, because the whole idea of subnetting is to
limit the broadcast domain :)

> Joep
> \
>
Eric




Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
------------------------------------------------------------------------
leaf-user mailing list: [email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Reply via email to