add non-standard dns port support
update configure template