Sequential DNS Server Queries Option



  • By default pfSense 2.0.1 queries all configured DNS servers simultaneously and uses the first response.  However, if the primary is nearly always the quickest to respond, the queries  to the other DNS servers is of little benefit.

    To change this behavior in pfSense 2.0.1 to query the specified DNS servers sequentially, the ‘strict-order’ option can be used in Services: DNS Forwarder – Advanced.

    For myself I’ve added a check box in System: General Setup – DNS Servers to add/remove the ‘strict-order‘ option.

    Attached is the /usr/local/www/system.php patch of my pfSense 2.0.1 system for the ‘strict-order’ option.

    Patches are intended as examples only.
    Patches are AS IS and Untested.
    Not for production use.
    Do NOT use in production environment.
    Use at your own risk.
    No support.
    By using this patch you agree to assume all liability.

    Patch file built with 
    2.0.1-RELEASE (i386)
    built on Mon Dec 12 18:24:17 EST 2011
    FreeBSD 8.1-RELEASE-p6

    Save Attached File:
    System.DNSForwarderStrictOrder.patch (.txt)

    Apply Patch:
    patch -p0 -i System.DNSForwarderStrictOrder.patch (.txt)

    ![DNS Forwarder Strict Order Option.jpg](/public/imported_attachments/1/DNS Forwarder Strict Order Option.jpg)
    ![DNS Forwarder Strict Order Option.jpg_thumb](/public/imported_attachments/1/DNS Forwarder Strict Order Option.jpg_thumb)
    System.DNSForwarderStrictOrder.patch.txt


Locked