Change split parameter

I find a bug, when my nameserver_hostname variable contain a "." caracter, the split('.').first function just keep the first part of my nameserver_hostname.
With 'domain' as separator, the nameser_hostname without the domain will be keeped, as expected