Friday, June 13, 2008

dnsmasq now working as DHCP server as well

Now I have dnsmasq working as a DHCP server as well.

In my configuration, I added the following lines:

dhcp-range=ath0,10.0.0.10,10.0.0.250,24h
dhcp-leasefile=/var/tmp/dnsmasq.leases
dhcp-authoritative
# Gateway
dhcp-option=3,10.0.0.1
# DNS
dhcp-option=6,10.0.0.1

and dnsmasq is now able to serve up DHCP addresses on the fly to clients.

1 comment:

Anonymous said...

Suman,
That is fine, can you explain or give some infor regarding the below query,
If I have specified the time lease to 5min, I have connected one port to PC, obtained a address with in the range specified. Then before Time lease got finished I have removed the cable and connected another PC. But I am trying to get the IP for this for it's not giving one. after time lease only it's giving. Then wht would be the problem and how we can rectify.

Regards
Ravi Kiran