Refactor Named Web Socket DNS Discovery code and add DNS record cache for faster lookup of known DNS records