Create a .txt list of IPs in a subnet
<p>I'd like to make a very simple text (.txt) file.  This python program needs to make a list of multiple ranges of IPs in a subnet, each taking up one line.</p>

<p>Example:</p>

<pre><code>10.10.27.1
10.10.27.5
10.10.27.6
10.10.27.26
10.10.27.27
10.10.27.28
10.10.27.29
10.10.27.51
10.10.27.52
10.10.27.53
10.10.27.54
</code></pre>

<p>The subnet mask will essentially always be a /24, so providing mask input is not necessary.  The program can even default to only supporting a standard class C.  </p>

<p>Also, I'd like to support common ranges for devices that we use.  A prompt for say, "Printers?" will include .26 - .30.  "Servers?" will include .5 - .7.  "DHCP?" prompt always will include .51 - .100 of the subnet. "Abnormal?" will include .100 - .254.</p>

<pre><code>Subnet?  10.10.27.1
Servers?  Y
Printers?  Y
DHCP?  Y
Abnormal?  N
</code></pre>

<p>Output being:</p>

<pre><code>10.10.27.1
10.10.27.5
10.10.27.6
10.10.27.7
10.10.27.26
10.10.27.27
10.10.27.28
10.10.27.29
10.10.27.30
10.10.27.51 (all the way to .100)
</code></pre>

<p>What is the best way to code this?</p>
