a·gen·tic a·gil·i·ty

The trouble with IIS6, .pac files and DNS

Explains issues with serving .pac proxy files on IIS6 due to missing MIME types and how to resolve DNS for proxy appliances lacking host file support.

Published on
2 minute read
Image
https://nkdagility.com/resources/R2MUioX4tLG
Subscribe

Now, I have, up until now, not had any experience with proxy servers. Well, to be honest, I still don’t… But I do have some experience with IIS as I have been using it since the sad old days of NT4. Yes that’s right, before Active Directory, The bad old days when domains were the work of a craftsman.

Anyhoo, my brother  David  called with a little problem with .pac files for a proxy server. My first though was that I did not know a dam thing about proxy servers, except that annoying “Access Denied” message you get when you try to go to the one URL that has the exact answer to the problem you have been trying to solve for hours… Well that’s not exactly true, I know what a a proxy server does in theory and what a .pac file does, I have just never used one..

David had two problems, well three if you count the network security guru bit.

The first reared its ugly head when he tried to access a .pac file from IIS. 404! WTF! He could see the file, but no download. Change it to a .txt and there it is. It seams that IIS 6.0 does not serve unknown MIME types , unlike previous versions. Adding the MIME type solved the problem: David did actually get this far, he just entered an incorrect MIME Type that he found on the web.

Inaccurate information on the web! Never… ;)

The second problem was that he was using a proxy server that was an appliance (i.e. a hardware box that probably said something like “Cisco proxy magic” on it) and it did not support host files. He needed a domain to resolve to something other than the IP stated on the web. As I have had some ups and downs with  Active Directory I had had this problem, among others, before. What he needs to do is add the domain he wants to repoint (say google.co.uk) to the DNS server and enter the IP address that he wants it to resolve to. Now when an internal request for that domain reaches the DNS server it is handled internally instead of being forwarded to the big cloud.

So all problems solved, well theoretically… David still need to try them out side of my little home lab.

Technorati Tags: Misc

Subscribe

Related Blog

No related videos found.

Connect with Martin Hinshelwood

If you've made it this far, it's worth connecting with our principal consultant and coach, Martin Hinshelwood, for a 30-minute 'ask me anything' call.

Our Happy Clients​

We partner with businesses across diverse industries, including finance, insurance, healthcare, pharmaceuticals, technology, engineering, transportation, hospitality, entertainment, legal, government, and military sectors.​

Milliman Logo

Milliman

Big Data for Humans Logo

Big Data for Humans

Qualco Logo

Qualco

Philips Logo

Philips

Boxit Document Solutions Logo

Boxit Document Solutions

Slaughter and May Logo

Slaughter and May

Schlumberger Logo

Schlumberger

Brandes Investment Partners L.P. Logo

Brandes Investment Partners L.P.

Alignment Healthcare Logo

Alignment Healthcare

Emerson Process Management Logo

Emerson Process Management

Freadom Logo

Freadom

DFDS Logo

DFDS

Flowmaster (a Mentor Graphics Company) Logo

Flowmaster (a Mentor Graphics Company)

Higher Education Statistics Agency Logo

Higher Education Statistics Agency

Kongsberg Maritime Logo

Kongsberg Maritime

CR2

Cognizant Microsoft Business Group (MBG) Logo

Cognizant Microsoft Business Group (MBG)

Bistech Logo

Bistech

Royal Air Force Logo

Royal Air Force

Nottingham County Council Logo

Nottingham County Council

New Hampshire Supreme Court Logo

New Hampshire Supreme Court

Ghana Police Service Logo

Ghana Police Service

Washington Department of Enterprise Services Logo

Washington Department of Enterprise Services

Washington Department of Transport Logo

Washington Department of Transport

ALS Life Sciences Logo

ALS Life Sciences

Boxit Document Solutions Logo

Boxit Document Solutions

Hubtel Ghana Logo

Hubtel Ghana

Lockheed Martin Logo

Lockheed Martin

Milliman Logo

Milliman

Genus Breeding Ltd Logo

Genus Breeding Ltd