use correct domain names when registering static DHCP entries in DNS
use correct domain names when registering static DHCP entries in DNS

When registering static DHCP entries in DNS, we first try to use the domain name configured for the static entry (if any), then the domain name configured in the DHCP server settings for the corresponding interface (if any), and as a last resort the system domain name.

This change was proposed by user TechSmurf on the pfSense boards; see <http://forum.pfsense.org/index.php/topic,64934.msg352331.html#msg352331>.

NOYB/pfsense,ch1c4um/pfsense,BlackstarGroup/pfsense,phil-davis/pfsense,phil-davis/pfsense,NewEraCracker/pfsense,phil-davis/pfsense,NewEraCracker/pfsense,NOYB/pfsense,pfsense/pfsense,ptorsten/pfsense,jxmx/pfsense,jxmx/pfsense,ptorsten/pfsense,jxmx/pfsense,dennypage/pfsense,brunostein/pfsense,NewEraCracker/pfsense,ch1c4um/pfsense,BlackstarGroup/pfsense,dennypage/pfsense,pfsense/pfsense,pfsense/pfsense,ptorsten/pfsense,phil-davis/pfsense,pfsense/pfsense,brunostein/pfsense,ch1c4um/pfsense,dennypage/pfsense,BlackstarGroup/pfsense,BlackstarGroup/pfsense,brunostein/pfsense,NOYB/pfsense,ch1c4um/pfsense,dennypage/pfsense,NewEraCracker/pfsense