Fixed dns lookup and added size limit attribute