Project

General

Profile

« Previous | Next » 

Revision 4c62f9e6

Added by Phil Davis almost 9 years ago

Fix DDNS domain for static map DHCP entries

If you specify DDNS Domain in a DHCP static map entry, it does not make its way through to dhcpd.conf
This is because the var name $pdnscfg is wrong from an old copy-paste that first made this code.
(cherry picked from commit a5a55231770e548898b6b1c18146cc0c6631c5c6)

View differences:

src/etc/inc/services.inc
1078 1078

  
1079 1079
				if (isset($sm['ddnsupdate'])) {
1080 1080
					if (($sm['ddnsdomain'] <> "") && ($sm['ddnsdomain'] != $dhcpifconf['ddnsdomain'])) {
1081
						$pdnscfg .= "		ddns-domainname \"{$sm['ddnsdomain']}\";\n";
1081
						$smdnscfg .= "		ddns-domainname \"{$sm['ddnsdomain']}\";\n";
1082 1082
					}
1083
					$pdnscfg .= "		ddns-update-style interim;\n";
1083
					$smdnscfg .= "		ddns-update-style interim;\n";
1084 1084
				}
1085 1085

  
1086 1086
				if (is_array($sm['dnsserver']) && ($sm['dnsserver'][0]) && ($sm['dnsserver'][0] != $dhcpifconf['dnsserver'][0])) {

Also available in: Unified diff