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

    Which domain to set instead of "example.com" when setting up proxy autoconfig?

    Scheduled Pinned Locked Moved Cache/Proxy
    15 Posts 5 Posters 2.3k 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.
    • D
      dims
      last edited by

      How can this affect the behavior of clients?

      This configuration should respond on clients searching proxy autoconfig via DNS, by why would they search some text from this config?

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        You need to configure DNS and DHCP servers for this, obviously. Also noted in the GUI.

        1 Reply Last reply Reply Quote 0
        • D
          dims
          last edited by

          DNS and DHCP are configured.

          But how the domain name reaches the client?

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            1 Reply Last reply Reply Quote 0
            • T
              thermo
              last edited by

              In system -> general setup, domain name. that is the domain which will end up in wpad. Assuming domain name is set to "dims.localnet" (do not use .local - if  you have a registered domain name then use a subdomain of that, eg: "dimsnetwork.dims.com") and the wpad server is "wpad-web", the domain name is "wpad-web.dims.localnet".  Dhcp will push this domain name to clients by default.
              if you have a pc named main-pc. the full hostname name should be resolvable by "main-pc.dims.localnet"

              1 Reply Last reply Reply Quote 0
              • D
                dims
                last edited by

                If some client has static IP address, i.e. not using DHCP, how can it know it's domain name then?

                1 Reply Last reply Reply Quote 0
                • D
                  dims
                  last edited by

                  Once more.

                  The client, willing to autoconfigure it's proxy, should query wpad.dat file from some URL.

                  For example, this can be http://wpad.dimsnetwork.dims.com/wpad.dat

                  How this client would KNOW this URL?

                  How it would know, what to put between http://wpad. and /wpad.dat?

                  If you say, that this text comes with DHCP, then this means, that client with static IP can't autoconfigure proxy, right?

                  1 Reply Last reply Reply Quote 0
                  • D
                    doktornotor Banned
                    last edited by

                    @dims:

                    If you say, that this text comes with DHCP, then this means, that client with static IP can't autoconfigure proxy, right?

                    No, wrong. That's what the DNS is for. Now, kindly use the fine Google or the search feature here on the forum.

                    1 Reply Last reply Reply Quote 0
                    • KOMK
                      KOM
                      last edited by

                      How this client would KNOW this URL?

                      It's either configured manually on the client or received from the DHCP server.  If you have a bunch of subdomains, add extra DNS records to handle resolving wpad.sub.domain.com to your wpad server.

                      1 Reply Last reply Reply Quote 0
                      • T
                        thermo
                        last edited by

                        @dims:

                        Once more.

                        The client, willing to autoconfigure it's proxy, should query wpad.dat file from some URL.

                        For example, this can be http://wpad.dimsnetwork.dims.com/wpad.dat

                        How this client would KNOW this URL?

                        How it would know, what to put between http://wpad. and /wpad.dat?

                        If you say, that this text comes with DHCP, then this means, that client with static IP can't autoconfigure proxy, right?

                        Client would query in certain order - wpad, if failed, then wpad.dimsnetwork.dims.com
                        it would append the dimsnetwork.dims.com from the search domains listed when you setup static dns on the client. you can also override dns server so that wpad. always returns a a local ip.
                        Wpad ain't nothing difficult, it's relatively straightforward to configure, so try it.

                        1 Reply Last reply Reply Quote 0
                        • D
                          dims
                          last edited by

                          @doktornotor:

                          kindly use the fine Google or the search feature here on the forum.

                          I did but didn't find an answer. Can you post it here please? You can use lmgtfy if you wan't, but result SHOULD contain an answer, but not general words on the topic.

                          1 Reply Last reply Reply Quote 0
                          • D
                            dims
                            last edited by

                            @KOM:

                            It's either configured manually on the client or received from the DHCP server.  If you have a bunch of subdomains, add extra DNS records to handle resolving wpad.sub.domain.com to your wpad server.

                            Suppose, I didn't configure domain manually but configured IP manually, i.e. not using DHCP. This means WPAD won't work then?

                            1 Reply Last reply Reply Quote 0
                            • C
                              chris4916
                              last edited by

                              @dims:

                              Suppose, I didn't configure domain manually but configured IP manually, i.e. not using DHCP. This means WPAD won't work then?

                              As described in draft RFC about WPAD and also in RFC3040, DHCP is only one mechanism tat can be used, client side, to find proxy.pac file.
                              Other mechanism exist and some should be implemented if you want to ensure that most clients benefit from WPAD.

                              The resource discovery mechanisms utilized by WPAD are as follows:
                                    *  Dynamic Host Configuration Protocol DHCP
                                    *  Service Location Protocol SLP
                                    *  "Well Known Aliases" using DNS A records
                                    *  DNS SRV records
                                    *  "service: URLs" in DNS TXT records

                              implementing DHCP, "well known alias", "DNS SRV records" and "service: URL" is pretty simple.
                              You will find examples here and there easily.

                              • pfSense documentation covers some aspects.
                              • I tried to produce something with wider coverage (goal was more to focus on proxy design that WPAD) here.
                              • internet contains a lot of useful example

                              What you need to understand (and that is not yet clear if I read correctly your posts) is that "well known alias" mechanism relies on your local domain configuration and therefore local DNS too.

                              This mechanism, launched client side, relies on host FQDN.
                              Say your workstation name is:
                              workstation.sub_level2.sub_level1.domain.com
                              well known alias mechanism will search first for:
                              wpad.sub_level2.sub_level1.domain.com
                              then for:
                              wpad.sub_level1.domain.com
                              then
                              wpad.domain.com

                              By configuring one of these entries in your local DNS, it will allow you browser to find web server hosting proxy.pac file.

                              Jah Olela Wembo: Les mots se muent en maux quand ils indisposent, agressent ou blessent.

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