Improved DHCP and DNS setup
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
#1 Updated by rgmhtt over 10 years ago
- File hdactl added
- File named.acl.custom added
- File named.internal.custom added
- File dhcpd.custom.conf View added
- File dhcpd.subnet.custom.conf View added
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.
#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