optimize if in dnsserver
add log4net to DnsServer