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

which order client resolve DNS request

Scheduled Pinned Locked Moved DHCP and DNS
7 Posts 6 Posters 1.4k 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.
  • M
    M0L50N
    last edited by M0L50N Apr 7, 2022, 3:35 PM Apr 7, 2022, 3:32 PM

    Hi,

    I've setup a DHCP server on my pfsense. In that server, I give these DNS servers in that order :
    1st IP - DNS filtering server on our network
    2nd IP - Domain controller

    The DNS filtering server and DC are setup to check ISP if they dont find.

    In General / setup, I've put ISP DNS and google to backup

    My question : do I have to put ISP DNS in my dhcp server or it will be redundant? What is the servers order the windows 10 client use : begin with 2 DNS server gived by the DHCP and if not resolved will check others DNS in General/setup?

    Thanks

    B S J 3 Replies Last reply Apr 7, 2022, 5:17 PM Reply Quote 0
    • B
      bingo600 @M0L50N
      last edited by bingo600 Apr 7, 2022, 5:31 PM Apr 7, 2022, 5:17 PM

      @m0l50n

      Afaik Windows "fire a DNS request to all known servers".

      But you would need to be more informative.

      1:
      What is the function of the filter DNS ?
      Does it just resolve and filter "external lookups" ?

      2:
      What does the DC know that the filter DNS doesn't

      /Bingo

      If you find my answer useful - Please give the post a 👍 - "thumbs up"

      pfSense+ 23.05.1 (ZFS)

      QOTOM-Q355G4 Quad Lan.
      CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
      LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

      1 Reply Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @M0L50N
        last edited by Apr 7, 2022, 5:42 PM

        @m0l50n Windows uses the "last one I talked to" DNS as a priority, it doesn't use the configured order. So, for a Windows domain you do not want anything that can't resolve your domain set as a DNS server. That will cause issues like failed logins, slow logins, errors finding servers, group policy errors, etc.

        If you have a Windows domain, in the DNS Resolver settings add a Domain Override pointing to each of your DCs. (domain.local -> 192.168.1.3) That will send requests to the Windows servers.

        You can of course configure Windows DNS to forward to the pfSense if you want, and set the PCs to use the Windows servers for DNS.

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote 👍 helpful posts!

        1 Reply Last reply Reply Quote 0
        • A
          AndyRH
          last edited by Apr 7, 2022, 5:47 PM

          Windows will ask the first DNS server, wait a short time and ask the next. It will proceed down the list in this fashion until an answer is received. The first responding DNS server is moved to the top of the list. The order only changes when there is a new winner. After a time a non-responding DNS server will be last on the list.
          I do not remember the wait time, but it is in milliseconds.
          I do not know of a way to view the current DNS server order. 'ipconfig /all' will show the order originally given.
          Various Unix/Linux OS's are similar, but may have important differences based on the exact flavor.

          o||||o
          7100-1u

          1 Reply Last reply Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator @M0L50N
            last edited by Apr 7, 2022, 6:23 PM

            @m0l50n said in which order client resolve DNS request:

            egin with 2 DNS server gived by the DHCP and if not resolved will check others DNS in General/setup?

            doesn't work that way. If I get back a nx say for your ad domain, why would I go ask some other ns. The only reason go ask another ns is didn't get any answer.

            You should have al your clients go ask your AD. Then your AD would forward to your public dns service that filters.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            A 1 Reply Last reply Apr 7, 2022, 6:31 PM Reply Quote 1
            • A
              AndyRH @johnpoz
              last edited by Apr 7, 2022, 6:31 PM

              @johnpoz Correct, I should have added in my response any answer and the OS will stop asking.

              o||||o
              7100-1u

              1 Reply Last reply Reply Quote 0
              • T
                TheDarkness
                last edited by May 18, 2022, 4:53 PM

                If you have a Windows AD you need to configure only the IP of the DCs on clients.
                Windows with domain could have weird behavior if clients use a non DC DNS server.
                You have to configure the DCs to forward to the other DNS servers.
                The best approach is having at least 2 DC to have some redundancy, and configure both IPs on clients.

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received