adding legacy api example
fixes to dns resolver
updated deps