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

    DNS Forwarder wt Windows 2000/2003 domains - Solution

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 2 Posters 3.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.
    • S
      shawkes
      last edited by

      The DNS Forwarder is too strict in what it determines is a valid domain name, when using Windows 2000/2003 domains one must forward a set of zones onto the Windows Domain controller in order for the client computers to login (and other domain related tasks)  A simple solution would be to relax the rules by adding an underscore "_" to the regular expression in the function "is_domain" located in the file "/etc/inc/util.inc"

      List of required zones for proper Microsoft Domain usage:

      _udp. <domain>_tcp. <domain>_sites. <domain>_msdcs. <domain>forestdnszones. <domain>domaindnszones. <domain>Example (Red = New Code):
      /* returns true if $domain is a valid domain name */
      function is_domain($domain) {
      if (!is_string($domain))
      return false;

      if (preg_match("/^([[color=Red]**_**a-z0-9-]+.?)*$/i", $domain))
      return true;
      else
      return false;
      }

      See:
      http://support.microsoft.com/kb/255913/?sd=RMVP&fr=1</domain></domain></domain></domain></domain></domain>

      1 Reply Last reply Reply Quote 0
      • S
        sullrich
        last edited by

        Done, thanks!

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