s4-dnsserver: Handle the case when the dns name is NULL