resolve prax before dns

Just a copy of #60 for the unstable branch