Feature #714

Improved DHCP and DNS setup

Added by rgmhtt over 10 years ago. Updated about 10 years ago.

Target version:
Start date:
Due date:
% Done:



I am providing here a revised hdactl and a script to add a few settings.

hda-range adds 4 settings to support different DHCP range and CIDR where the CIDR block is SMALLER than /24 (eg /28). It does NOT properly handle LARGER CIDR blocks (eg /22). The variables are added as typical default values, a tool like phpmyadmin can be used to set them desired values. The variables are:


Note that netmask_size CAN be computed from netmask by someone smarter than me.

These variables are used by the revised hdactl in building the dhcp and dns files. There are a number of changes in hdactl, you will have to do a diff to find them all.

Here is what I have done:


Allowed for different ranges and CIDR values.


Converted to 'view' style
Tried to add customization to trusted ACL, but am getting and error, I will add that later.
Added customization to add additional zones.

Note for this to work, the file /etc/named.internal.custom is needed. By default it can be empty.

hda-a2n.conf and hda-n2a.conf are restricted to the CIDR block.

Please test these and add them to the F14 release.

I am also supplying a script to fix the netmask to get amahi to even work after install on a CIDR blocked address.

This addresses parts of 319, 337, and 340

hda-range (3.09 KB) rgmhtt, 01/04/2011 01:14 PM

hdactl (25.8 KB) rgmhtt, 01/04/2011 01:14 PM

hda-change-netmask (2.15 KB) rgmhtt, 01/04/2011 01:14 PM

hdactl (25.9 KB) rgmhtt, 01/05/2011 10:31 AM

named.acl.custom (47 Bytes) rgmhtt, 01/05/2011 10:31 AM

named.internal.custom (130 Bytes) rgmhtt, 01/05/2011 10:31 AM

dhcpd.custom.conf View (25 Bytes) rgmhtt, 01/05/2011 10:31 AM

dhcpd.subnet.custom.conf View (32 Bytes) rgmhtt, 01/05/2011 10:31 AM


#1 Updated by rgmhtt over 10 years ago

I have gotten includes working in named.conf and dhcpd.conf. This provides customization options frequently asked for. This approach allows for installers to customize as needed and then we can work out what needs to be included as a 'standard'.

'Default' include files are provided here. The named* files go in /etc/ (unless you finally get chroot working). The dhcp* files go in /etc/dhcp/. You can select a better place for these (eg /var/hda/?

With these changes I have addressed bugs 319, 337, and 340.

#2 Updated by Anonymous about 10 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:"a3577845e6aac5a27932188e0f0d7dbe176bd9b3".

#3 Updated by cpg about 10 years ago

  • Assignee set to cpg

i spent hours deciphering what was going on here.

i decide to implement something that works for everyone, by getting the settings in /etc/hdactl.conf
though DB settings will override the conf file, if they exists.

the rest sounds like martian to me and it's not explained properly in this bug. sorry.
reopen with a better explanation if you want it to be considered.

what has been done is in the git repo and also in the f14 repo live: hdactl-3.6.18-1

Also available in: Atom