Method and apparatus for restricting access to private information in domain name systems by information filtering