[dnsserver] support empty domain variable