Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Is it possible to set up CNAME lookups with Unbound pkg for google safe search?

    Scheduled Pinned Locked Moved DHCP and DNS
    3 Posts 3 Posters 2.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      goldstrom
      last edited by

      I'm trying to figure out how to do this on my pfSense box (2.1.5) in a home / family environment that's been running pretty well for about 3 years. I just added the Unbound pkg, but have not activated it yet.
      Based on Google's instructions, I'm trying to do this:
      "Add a new CNAME record on your local DNS server for your local Google domain(s) pointing to forcesafesearch.google.com. For this example, we will be using www.google.com. Create a CNAME record for www.google.com that points to forcesafesearch.google.com"
      Appreciate any help!

      1 Reply Last reply Reply Quote 0
      • jimpJ Offline
        jimp Rebel Alliance Developer Netgate
        last edited by

        That type of CNAME requires a full-fledged authoritative name server like BIND. It won't work with a caching resolver like Unbound (or even dnsmasq) – they require such a query to be answered locally/directly.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • T Offline
          tlinder
          last edited by

          Hi David
          You can do is lookup the ip for forcesafesearch.google.com which is

          216.239.38.120

          and then activate the dns forwarder and create an entry

          Host: www
          Domain: google.com
          IP: 216.239.38.120

          Then you point the DNS-entry of your client machines or your dhcp server to the IP of your pfsense.

          If you also want to block all other 195 domains that google has active you can import the forwarder file I created (see below) by going to :

          Diagnostics -> Backup/restore -> Restore configuration -> Restore Area: DNS Forwarder

          Hope this helps. Keep in mind that the IP-Address can change in the future.

          [google safesearc hosts import for pfsense.txt](/public/imported_attachments/1/google safesearc hosts import for pfsense.txt)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.