Solved

Write a Windows DHCP server in Python?

Posted on 2006-10-20
1
1,011 Views
Last Modified: 2012-06-27

Would it be possible to write a DHCP server for Windows using just Python? Or would this be better left to a language like C\C++?

Also, any reasons why this might end up being particularly difficult to do? Any advice or starting points?
0
Comment
Question by:xy8088
1 Comment
 
LVL 7

Accepted Solution

by:
Chatable earned 250 total points
ID: 17777436
First of all you can write anything in Python. The major advantage of writing Python software is that it may very well be OS independent, i.e. your server may run Linux, Windows, MacOS and other operating systems with little or no change at all.
About your idea, there actually is a Python DHCP server listed on sourceforge but it hasn't released any version yet.
To write a DHCP daemon in Python or any other language you need to
1) Read and understand the DHCP RFC - http://www.ietf.org/rfc/rfc2131.txt
2) Implement the protocol using your favorite language.
Whether it is a good idea to use Python for that purpose? I assess that a network with a few to a few hundreds of clients will be able to use a Python DCHP daemon with no problems.
For huge enterprise networks you may want to use C/C++.
Please note that Windows Server 2000/2003 already has a built-in DHCP daemon.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Variable is a place holder or reserved memory locations to store any value. Which means whenever we create a variable, indirectly we are reserving some space in the memory. The interpreter assigns or allocates some space in the memory based on the d…
Dictionaries contain key:value pairs. Which means a collection of tuples with an attribute name and an assigned value to it. The semicolon present in between each key and values and attribute with values are delimited with a comma.  In python we can…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now