+ Post New Thread
Results 1 to 8 of 8
Windows Thread, new wpad setup not working in Technical; Hi there guys I have created a wpad file and named it wpad.dat as required. Saved this on our webserver. ...
  1. #1
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    25

    new wpad setup not working

    Hi there guys

    I have created a wpad file and named it wpad.dat as required. Saved this on our webserver. Then put the settings for this in DHCP

    Settings = 252, named wpad, string = http://www.theockendonacademy.com/wpad.dat


    This is what is inside our wpad file

    function FindProxyForURL(url, host)
    {
    // variable strings to return
    var proxy_yes = "PROXY cache.thurrock.tbn:8084";
    var proxy_no = "DIRECT";
    if (shExpMatch(url, "*.theockendonacademy.com")) { return proxy_no; }
    // Proxy anything else
    return proxy_yes;
    }



    Any ideas why its not working?

    I did this to see if I can get to the wpad file via http://www.theockendonacademy.com/wpad.dat and http://ipaddressofserver/wpad.dat

    I can get to the file just fine


    So why would it not work, is the script wrong in the wpad file?


    Many thanks

  2. #2

    Join Date
    Nov 2006
    Posts
    22
    Thank Post
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    16
    Have you ticked the "Automatically Detect Settings" checkbox within the Internet Explorer LAN options?

    Stephen

  3. #3


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,462
    Thank Post
    866
    Thanked 845 Times in 667 Posts
    Rep Power
    195
    If you manually stick that wpad file into a browser's config (its functionally equivalent to proxy.pac, put it there), does that work?

  4. #4
    Zenden's Avatar
    Join Date
    Mar 2009
    Location
    Manchester
    Posts
    154
    Thank Post
    70
    Thanked 32 Times in 25 Posts
    Rep Power
    16
    sorry if i am way off here but shouldnt you point the dns to wpad.theockendonacademy.com/wpad.dat rather than www? then if you check "automatically detect settings" in the browser it should work!

  5. #5
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    25
    Yep we have got the box ticked for "Automatically Detect Settings"

    Seems after more test 2/4 computers as worked in our office


    We didnt test it for long through, forgot to check if our internal sites worked, ie mail, eportal
    Last edited by pritchardavid; 19th May 2011 at 10:32 AM.

  6. #6
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    25
    Quote Originally Posted by Zenden View Post
    sorry if i am way off here but shouldnt you point the dns to wpad.theockendonacademy.com/wpad.dat rather than www? then if you check "automatically detect settings" in the browser it should work!
    Hi there mat

    Your not the first person thats said that (look on the forum and the internet)

    But im not sure how to do that

    we have our internet site domain www.theockendonacademy.com
    we also have our internal domain ockendon.thurrock.sch.uk

    Where to you put the alias (is that the correct record?)

    In the internal domain dns zone, or the external dns zone?



    Never been brillant at DNS..... Would like our moodle site www.theockendonacademy.com/moodle as a subdomain if I knew how to set it up (vle.theockendonacademy.com)

  7. #7

    AngryTechnician's Avatar
    Join Date
    Oct 2008
    Posts
    3,730
    Thank Post
    698
    Thanked 1,211 Times in 761 Posts
    Rep Power
    394
    Normally your WPAD would be on an internal server, not externally published. So you would create either an A or CNAME record in your internal DNS.

    If you don't have an internal webserver already, and don't want to install IIS just for this, there's no reason you couldn't create wpad CNAME on your internal DNS to point to the external webserver, and then have the DHCP option set to http://wpad.ockendon.thurrock.sch.uk/wpad.dat

    Worth noting that if your DNS is on Server 2008 or 2008 R2, you will need to alter the DNS blocklist or the wpad name will not resolve.

    All that said, I don't think IE relies on the hostname being called WPAD (Firefox and some other browsers do). I suspect something else may be up here. Have you configured the webserver currently hosting the wpad.dat to return the correct MIME type for .dat files (application/x-ns-proxy-autoconfig)? Also, what version of IE are you using? Older versions sometimes request the file based on the IP address, not the hostname, which can break in virtual hosting environments.

  8. Thanks to AngryTechnician from:

    TomTomGo (5th October 2011)

  9. #8
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    25
    Our webserver is internal (IIS)


    Ok still not working


    Our webserver is called WebServer - It as the IP address or 10.146.67.150. There of course is a A record for this in the DNS (Which I have made it a static one)

    I have now since made a alias record called wpad. I setup this on our active directory domain (ockendon.thurrock.sch.uk) not our website domain

    I then went into DHCP and changed the 252 record for wpad to the following string value http://wpad.ockendon.thurrock.sch.uk/wpad.dat

    I then used this command on one of the DNS servers to unblock wpad - dnscmd /config /globalqueryblocklist

    Now when I paste (http://wpad.ockendon.thurrock.sch.uk/wpad.dat) into the web browser I get this message

    Unable to determine IP address from host name for wpad.ockendon.thurrock.sch.uk


    But if I ping wpad.ockendon.thurrock.sch.uk it finds the right IP address for the server


    Any ideas?

SHARE:
+ Post New Thread

Similar Threads

  1. Crazy IE wpad issues
    By Zenden in forum Windows
    Replies: 4
    Last Post: 2nd March 2011, 03:52 PM
  2. wpad.dat file
    By techie211 in forum Windows
    Replies: 5
    Last Post: 5th August 2010, 08:34 AM
  3. WPAD DHCP Fun
    By eddyc in forum Internet Related/Filtering/Firewall
    Replies: 5
    Last Post: 10th June 2010, 02:15 PM
  4. WPAD Issues
    By gsk in forum Internet Related/Filtering/Firewall
    Replies: 7
    Last Post: 21st May 2009, 02:04 PM
  5. WPAD.DAT
    By k-strider in forum Coding
    Replies: 0
    Last Post: 4th July 2007, 03:12 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •