Created DNS whitelisting middleware