* commit 'ae7e21b37f2f196dc2c8b4732b65c6329ec2fae5':
Fix for DNS resolutions when there is no default network set yet. We need to determine the actual netId to use prior to comparing it against the default netId. Also initialize the default network variable.