Navigation

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

    Wildcard DNS entries - host override

    DHCP and DNS
    1
    2
    1793
    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.
    • F
      Fegu last edited by

      (An obvious corresponding post to the sticky one on address=, but for server=)

      If you need a wildcard in your DNS forwarder (*.domain.com)

      1. Log in to pfSense instance via the web interface.
        2. Go to Services-> DNS Forwarder (http://pfSensense_url/services_dnsmasq.php)
        3. Click the Advanced button. Add as many of the following as you need, each entry on a new line.

      server=/netflix.com/208.122.23.23

      Where netflix.com is the end of the wildcard entry, and 208.122.23.23 is the ip of the DNS server that these wildcard names will be resolved by. Think of /netflix.com as *netflix.com. So www.netflix.com, api-public.netflix.com, and anything else that ends in netflix.com and is not defined elsewhere, will be resolved by the DNS server at the ip provided.

      For a more thorough example see: http://www.gundersen.net/american-netflix-on-ipad-and-chromecast-without-vpn-using-pfsense/

      1 Reply Last reply Reply Quote 0
      • F
        Fegu last edited by

        It turns out that the domain override in the DNS Forwarder actually adds wildcards, it is just that the docs and the label/legend in the GUI does not explicitly say so.

        If you need a wildcard in your DNS forwarder (*.domain.com)

        1. Log in to pfSense instance via the web interface.
          2. Go to Services-> DNS Forwarder (http://pfSensense_url/services_dnsmasq.php)
          3. In domain overrides: add as many as you need, each entry on a new line.

        netflix.com 208.122.23.23

        Where netflix.com is the end of the wildcard entry, and 208.122.23.23 is the ip of the DNS server that these wildcard names will be resolved by. Think of netflix.com as *netflix.com. So www.netflix.com, api-public.netflix.com, and anything else that ends in netflix.com and is not defined elsewhere, will be resolved by the DNS server at the ip provided. Each entry is translated into a –server=/domain.com entry for dnsmasq. See dnsmasq man pages for further details.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Products

        • Platform Overview
        • TNSR
        • pfSense Plus
        • Appliances

        Services

        • Training
        • Professional Services

        Support

        • Subscription Plans
        • Contact Support
        • Product Lifecycle
        • Documentation

        News

        • Media Coverage
        • Press
        • Events

        Resources

        • Blog
        • FAQ
        • Find a Partner
        • Resource Library
        • Security Information

        Company

        • About Us
        • Careers
        • Partners
        • Contact Us
        • Legal
        Our Mission

        We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

        Subscribe to our Newsletter

        Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

        © 2021 Rubicon Communications, LLC | Privacy Policy