LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-03-2008, 07:02 PM   #1
Cidi Rome
LQ Newbie
 
Registered: Dec 2005
Posts: 17

Rep: Reputation: 0
Action trigger on DHCP lease


Hi there.

Is there any way to trigger a script avery time a new lease happens?

Note: by new lease I mean when a new computer (or an old one) gets an IP address from the DHCP server (dhcpd).

I searched and didn't find anything related, if someone knows a way please tell me.

Best Regards.
 
Old 03-03-2008, 07:15 PM   #2
beadyallen
Member
 
Registered: Mar 2008
Location: UK
Distribution: Fedora, Gentoo
Posts: 209

Rep: Reputation: 36
I can't find anything about doing this with ISC dhcpd, but dnsmasq can do what you want. I've got it doing the same thing for dynamic iptables port forwarding rules on my router. For a smallish network, I think dnsmasq is just as good as dhcpd, and it doubles as a dns server as well.
 
Old 03-04-2008, 04:42 AM   #3
Cidi Rome
LQ Newbie
 
Registered: Dec 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Do you know if it can be user only just as a DHCP server, leaving the DNS job for bind?
 
Old 03-05-2008, 11:14 AM   #4
beadyallen
Member
 
Registered: Mar 2008
Location: UK
Distribution: Fedora, Gentoo
Posts: 209

Rep: Reputation: 36
Yes, you can disable the DNS by (according to the man page) setting the listening port to 0.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP lease unavailable bwilliam79 Linux - Networking 9 01-31-2008 05:37 AM
DHCP lease same IP prashanlk Linux - Networking 2 01-31-2008 03:22 AM
Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address blackfish Linux - Server 3 08-17-2007 12:54 AM
Trigger action when module is inserted (wake on lan) benjalien Debian 12 04-25-2006 01:16 AM
Renewing DHCP Lease JimKyle Linux - Networking 10 07-18-2004 06:54 PM


All times are GMT -5. The time now is 08:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration