<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Daz's bits and bobs &#187; dhcp</title>
	<atom:link href="http://sigtar.com/tag/dhcp/feed/" rel="self" type="application/rss+xml" />
	<link>http://sigtar.com</link>
	<description>…bytes bits</description>
	<lastBuildDate>Mon, 26 Jul 2010 07:25:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WPAD &#8211; Web Proxy Autodiscovery Protocol</title>
		<link>http://sigtar.com/2009/05/17/wpad-web-proxy-autodiscovery-protocol/</link>
		<comments>http://sigtar.com/2009/05/17/wpad-web-proxy-autodiscovery-protocol/#comments</comments>
		<pubDate>Sat, 16 May 2009 19:48:49 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[252]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[wpad]]></category>
		<category><![CDATA[wpad.dat]]></category>

		<guid isPermaLink="false">http://sigtar.com/?p=518</guid>
		<description><![CDATA[When using wpad there are some things that you should take note of;

DHCP wpad will override DNS wpad
DHCP 252 option can in some cases be slightly slower to resolve than DNS &#8211; there may be a patch for WinInet to resolve this.

You should always use lower case &#8211; wpad.dat  (it is case sensitive)
DHCP will allow [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>When using wpad there are some things that you should take note of;</p>
<ul>
<li>DHCP wpad will override DNS wpad</li>
<li>DHCP 252 option can in some cases be slightly slower to resolve than DNS &#8211; there may be a patch for <span id="ctl00_MainContentPlaceholder_ctl01_ctl00_lblEntry">WinInet to resolve this.<br />
</span></li>
<li>You should always use lower case &#8211; wpad.dat  (it is case sensitive)</li>
<li>DHCP will allow either a URL or a file location for wpad.dat</li>
</ul>
<p>Within IE on the LAN settings tab if you have WPAD &#8220;automatically detect settings&#8221; enabled and also configure a proxy server the WPAD should override the manual proxy configuration.</p>
<p>There is some good detail at the usual places <a href="http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol">http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol</a></p>
<p>I&#8217;ve done a bit of work around WPAD, but have yet to write up a decent &#8220;how-to&#8221;. I&#8217;ll update this the next time i dabble in the area.</p>
<p>Here is a quick example of the syntax of a typical wpad.dat file&#8230;</p>
<pre class="source-javascript">   <span class="kw2">function</span> FindProxyForURL<span class="br0">(</span>url, host<span class="br0">)</span> <span class="br0">{</span>
      <span class="co1">// our local URLs from the domains below example.com don't need a proxy:</span>
      <span class="kw1">if</span> <span class="br0">(</span>shExpMatch<span class="br0">(</span>url,<span class="st0">"*.example.com/*"</span><span class="br0">)</span><span class="br0">)</span>                  <span class="br0">{</span><span class="kw1">return</span> <span class="st0">"DIRECT"</span>;<span class="br0">}</span>
      <span class="kw1">if</span> <span class="br0">(</span>shExpMatch<span class="br0">(</span>url, <span class="st0">"*.example.com:*/*"</span><span class="br0">)</span><span class="br0">)</span>               <span class="br0">{</span><span class="kw1">return</span> <span class="st0">"DIRECT"</span>;<span class="br0">}</span>

      <span class="co1">// URLs within this network are accessed through </span>
      <span class="co1">// port 8080 on fastproxy.example.com:</span>
      <span class="kw1">if</span> <span class="br0">(</span>isInNet<span class="br0">(</span>host, <span class="st0">"10.0.0.0"</span>,  <span class="st0">"255.255.248.0"</span><span class="br0">)</span><span class="br0">)</span>    <span class="br0">{</span>
         <span class="kw1">return</span> <span class="st0">"PROXY fastproxy.example.com:8080"</span>;
      <span class="br0">}</span>

      <span class="co1">// All other requests go through port 8080 of proxy.example.com.</span>
      <span class="co1">// should that fail to respond, go directly to the WWW:</span>
      <span class="kw1">return</span> <span class="st0">"PROXY proxy.example.com:8080; DIRECT"</span>;
   <span class="br0">}</span></pre>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://sigtar.com/2009/05/17/wpad-web-proxy-autodiscovery-protocol/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux &#8211; Add DHCP and DNS</title>
		<link>http://sigtar.com/2009/02/11/linux-add-dhcp-and-dns/</link>
		<comments>http://sigtar.com/2009/02/11/linux-add-dhcp-and-dns/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 19:25:46 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[fedora]]></category>

		<guid isPermaLink="false">http://sigtar.com/?p=243</guid>
		<description><![CDATA[How to install DHCP and DNS on Fedora / Centos / Redhat box;
yum -y install dhcp.i386 bind.i386
Set services to auto start using ntsysv &#8212; services are called &#8220;dhcpd&#8221; and &#8220;named&#8221;.
How to configure dhcp;
nano /etc/dhcpd.conf &#8212; configure as per sample provided. The sample is usually located in the same directory.
service dhcpd restart &#8211; should start without [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>How to install DHCP and DNS on Fedora / Centos / Redhat box;</p>
<p><strong>yum -y install dhcp.i386 bind.i386</strong></p>
<p>Set services to auto start using <strong>ntsysv</strong> &#8212; services are called &#8220;dhcpd&#8221; and &#8220;named&#8221;.</p>
<p>How to configure dhcp;</p>
<p><strong>nano /etc/dhcpd.conf</strong> &#8212; configure as per sample provided. The sample is usually located in the same directory.<br />
<strong>service dhcpd restart</strong> &#8211; should start without problem if done correctly</p>
<p>Note: dhcp range has to be on the same network as your adapter. You can run dhcpd from the command line to diagnose any issues.</p>
<p>How to configure bind (DNS);</p>
<p>I usually just forward DNS requests to my internal router. To do this just edit <strong>/etc/resolve.conf </strong>and place the following line in the file;</p>
<p><strong>nameserver <em>192.168.9.1</em></strong></p>
<p>Use your ip above then all should be good. Test by pinging a domain like www.yahoo.com etc&#8230; You should get an ip back even if you don&#8217;t get successful pings (due to firewall etc). <strong>nslookup </strong>is also another quick and easy way to check DNS requests.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://sigtar.com/2009/02/11/linux-add-dhcp-and-dns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
