<?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; dns</title>
	<atom:link href="http://sigtar.com/tag/dns/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>vmware &#8211; HA issues</title>
		<link>http://sigtar.com/2009/10/03/vmware-ha-issues/</link>
		<comments>http://sigtar.com/2009/10/03/vmware-ha-issues/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 21:47:57 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[Virtual]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[ha]]></category>
		<category><![CDATA[issues]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vmware-aam]]></category>

		<guid isPermaLink="false">http://sigtar.com/?p=988</guid>
		<description><![CDATA[Most of the time your HA issues are going to be DNS related. So ensure that your vcenter can ping all your hosts by FQDN without issue.  In some cases though a stubborn server may not want to play the game even when everything is configured properly.
This method is considered a &#8220;last effort&#8221; as you&#8217;ll [...]


Related posts:<ol><li><a href='http://sigtar.com/2009/10/01/vmware-issues-stopping-starting-a-virtual-machine/' rel='bookmark' title='Permanent Link: vmware &#8211; issues stopping / starting a virtual machine'>vmware &#8211; issues stopping / starting a virtual machine</a> <small>I&#8217;ve had this issue in vSphere where a machine appears...</small></li>
<li><a href='http://sigtar.com/2010/03/24/vmware-another-task-is-already-in-progress-error/' rel='bookmark' title='Permanent Link: VMWare &#8220;Another task is already in progress&#8221; error'>VMWare &#8220;Another task is already in progress&#8221; error</a> <small>Straight from : http://community.spiceworks.com/how_to/show/662 I&#8217;m using ESXi 4.0, and i...</small></li>
<li><a href='http://sigtar.com/2009/12/18/vma-using-hp-power-protector-agent-to-shutdown-virtual-hosts/' rel='bookmark' title='Permanent Link: vMA &#8211; Using HP Power Protector agent to shutdown virtual hosts'>vMA &#8211; Using HP Power Protector agent to shutdown virtual hosts</a> <small>Goal was to create a vMA which would send a...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Most of the time your HA issues are going to be DNS related. So ensure that your vcenter can ping all your hosts by FQDN without issue.  In some cases though a stubborn server may not want to play the game even when everything is configured properly.</p>
<p>This method is considered a &#8220;last effort&#8221; as you&#8217;ll need to run some CLI commands on the ESX box. But i have found it useful in a few situations.</p>
<p>This page has a great write up on which files HA uses and how to temporary stop the HA service. <a href="http://itknowledgeexchange.techtarget.com/virtualization-pro/vmware-ha-failure-got-you-down/">http://itknowledgeexchange.techtarget.com/virtualization-pro/vmware-ha-failure-got-you-down/</a></p>
<p>Remember to get to the console on ESXi you logon to the console press Alt-F1 then type &#8220;unsupported&#8221; (note: you cannot see what you are typing), then enter the root password.</p>
<p>The main bits are as follows;</p>
<p>Stop the HA service</p>
<p><em><strong>service vmware-aam stop</strong></em></p>
<p>Check that HA has stopped (if not then use <strong>kill </strong>command to kill them)</p>
<p><em><strong>ps ax | grep aam | grep -v grep</strong></em></p>
<p>Move the current HA config files to a backup directory (before restarting HA)</p>
<p><strong>cd /etc/opt/vmware/aam</strong></p>
<p><strong>mkdir .old</strong></p>
<p><strong>mv * .old</strong></p>
<p><strong>mv .[a-z]* .old</strong></p>
<p>Then back to your vcenter and select <em>Reconfigure for VMware HA </em>on the effected host. Fingers crossed that it starts up and reconfigures without any issues.</p>


<p>Related posts:<ol><li><a href='http://sigtar.com/2009/10/01/vmware-issues-stopping-starting-a-virtual-machine/' rel='bookmark' title='Permanent Link: vmware &#8211; issues stopping / starting a virtual machine'>vmware &#8211; issues stopping / starting a virtual machine</a> <small>I&#8217;ve had this issue in vSphere where a machine appears...</small></li>
<li><a href='http://sigtar.com/2010/03/24/vmware-another-task-is-already-in-progress-error/' rel='bookmark' title='Permanent Link: VMWare &#8220;Another task is already in progress&#8221; error'>VMWare &#8220;Another task is already in progress&#8221; error</a> <small>Straight from : http://community.spiceworks.com/how_to/show/662 I&#8217;m using ESXi 4.0, and i...</small></li>
<li><a href='http://sigtar.com/2009/12/18/vma-using-hp-power-protector-agent-to-shutdown-virtual-hosts/' rel='bookmark' title='Permanent Link: vMA &#8211; Using HP Power Protector agent to shutdown virtual hosts'>vMA &#8211; Using HP Power Protector agent to shutdown virtual hosts</a> <small>Goal was to create a vMA which would send a...</small></li>
</ol></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/10/03/vmware-ha-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>squid &#8211; your transparent proxy friend</title>
		<link>http://sigtar.com/2009/04/10/squid-your-transparent-proxy-friend/</link>
		<comments>http://sigtar.com/2009/04/10/squid-your-transparent-proxy-friend/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 19:46:20 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[3128]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[squid]]></category>
		<category><![CDATA[transparent]]></category>
		<category><![CDATA[transparent proxy]]></category>

		<guid isPermaLink="false">http://sigtar.com/?p=524</guid>
		<description><![CDATA[Still my favourite light and fast web proxy is Squid. Its very easy to setup and get running on almost all flavours of linux. You can find it here http://www.squid-cache.org/ but will probably find it in your local package manager&#8230;
This is for more my own reference&#8230; as i don&#8217;t think too many people have the need [...]


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>Still my favourite light and fast web proxy is Squid. Its very easy to setup and get running on almost all flavours of linux. You can find it here http://www.squid-cache.org/ but will probably find it in your local package manager&#8230;</p>
<p><strong><span style="font-weight: normal;">This is for more my own reference&#8230; as i don&#8217;t think too many people have the need for a transparent proxy. You only need one NIC configured on your VM / machine as its most probably on the same subnet as your dsl etc&#8230; </span></strong></p>
<p><strong><span style="font-weight: normal;">1. Setup squid working as a proxy first!</span></strong></p>
<p><strong><span style="font-weight: normal;">Set the default gateway on the NIC to your router. I also added a default route 0.0.0.0 sub 0.0.0.0 to the router also just in case the default route didn&#8217;t work. But seemed to! </span></strong></p>
<p><strong><span style="font-weight: normal;">Setup DNS! remember you should be able to resolve a name to an IP without issues (can cause most of the problems) Point your default DNS to your router (most have built in DNS forwarders), else you can just use your ISP&#8217;s DNS&#8217;s </span></strong></p>
<p><strong><span style="font-weight: normal;">2. Change the squid.config to have the necessary changes to act as a </span><span class="posthilit"><span style="font-weight: normal;"><span style="font-weight: normal;">transparent</span></span></span><span style="font-weight: normal;"><span style="font-weight: normal;"> proxy;</span></span></strong></p>
<p><span style="font-weight: normal;"><span style="font-weight: normal;"><strong>nano /etc/squid/squid.conf</strong></span></span></p>
<div><em>http_port 3128 transparent</em></div>
<div><em><br />
</em></div>
<div><strong> </strong></div>
<div><strong><span style="font-weight: normal;">3. Put this into the startup script; (usually in rc.d under etc) rc.local</span></strong></div>
<div><strong><span style="font-weight: normal;"><br />
</span></strong></div>
<div><strong>iptables -t nat -A PREROUTING -i eth0 -p tcp &#8211;dport 80 -j REDIRECT &#8211;to-port 3128</strong></div>
<p><strong><span style="font-weight: normal;">This redirects standard tcp requests to 3128 (squid&#8217;s port)&#8230; </span><span class="posthilit"><span style="font-weight: normal;"><span style="font-weight: normal;">transparent</span></span></span><span style="font-weight: normal;"><span style="font-weight: normal;"> to user</span></span></strong></p>
<p><strong><span style="font-weight: normal;">4. Ensure that IP forwarding is ENABLED;</span></strong></p>
<p><strong><span style="font-weight: normal;">change ip_forward from 0 to 1 (usually a txt file somewhere with 0 in it), do a search and you will find it&#8230; most probably in the ipv4 directory. This way all 443 (https and other apps) can forward to the web without issue&#8230; </span></strong></p>
<p><strong>echo 1 &gt; /proc/sys/net/ipv4/ip_forward</strong></p>
<p><strong> </strong></p>
<p><strong><span style="font-weight: normal;"> Should be it&#8230;. else good luck! </span></strong></p>
<p><strong><span style="font-weight: normal;">Update</span><span style="font-weight: normal;">: I have done an updated post about configuring open solaris as a transparent proxy here : <a href="http://sigtar.com/2009/04/22/opensolaris-configuring-squid-as-transparent-proxy/">http://sigtar.com/2009/04/22/opensolaris-configuring-squid-as-transparent-proxy/</a></span></strong></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/04/10/squid-your-transparent-proxy-friend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenSolaris &#8211; Manual Network DNS issue</title>
		<link>http://sigtar.com/2009/02/11/opensolaris-manual-network-config-issue/</link>
		<comments>http://sigtar.com/2009/02/11/opensolaris-manual-network-config-issue/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 03:06:07 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[nsswitch.conf]]></category>
		<category><![CDATA[nwam]]></category>
		<category><![CDATA[opensolaris]]></category>

		<guid isPermaLink="false">http://sigtar.com/?p=278</guid>
		<description><![CDATA[If you have tried to setup a manual IP on your opensolaris box you may find that DNS is not working as you would expect in some cases. nslookup resolves the name to an ip, but pinging doesnt make it to the box&#8230;
How to fix;
Edit your /etc/nsswitch.conf file and add the word &#8220;dns&#8220; to the hosts [...]


Related posts:<ol><li><a href='http://sigtar.com/2009/09/06/opensolaris-samba-and-network-browsing/' rel='bookmark' title='Permanent Link: Opensolaris &#8211; Samba and Network browsing'>Opensolaris &#8211; Samba and Network browsing</a> <small>If you&#8217;ve setup samba (rather than the builtin cifs/smb) chances...</small></li>
<li><a href='http://sigtar.com/2009/08/22/esx-network-utilization/' rel='bookmark' title='Permanent Link: ESX &#8211; network utilization'>ESX &#8211; network utilization</a> <small>One of the best articles i have found on this...</small></li>
<li><a href='http://sigtar.com/2009/08/03/opensolaris-network-teaming/' rel='bookmark' title='Permanent Link: opensolaris &#8211; network teaming'>opensolaris &#8211; network teaming</a> <small>Otherwise known as trunking or link aggregation. I believe it...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>If you have tried to setup a manual IP on your opensolaris box you may find that DNS is not working as you would expect in some cases. <strong>nslookup</strong> resolves the name to an ip, but <strong>ping</strong>ing doesnt make it to the box&#8230;</p>
<p>How to fix;</p>
<p>Edit your <strong>/etc/nsswitch.conf</strong> file and add the word &#8220;<strong>dns</strong>&#8220;<strong> </strong>to the <strong>hosts </strong>and <strong>ipnodes </strong>lines<br />
If you make a backup of <strong>/etc/nsswitch.conf</strong> you can also just copy <strong>/etc/nsswitch.dns</strong> over it&#8230;<br />
<strong></strong></p>
<p><strong>cp /etc/nsswitch.dns /etc/nsswitch.conf</strong></p>
<p>You may also want to check that auto-magic mode has been disabled when setting up your networking manually;</p>
<p><strong>svcs -a | grep nwam</strong></p>
<p>If it is enabled type;</p>
<p><strong>svcadm disable svc:/network/physical:nwam</strong></p>


<p>Related posts:<ol><li><a href='http://sigtar.com/2009/09/06/opensolaris-samba-and-network-browsing/' rel='bookmark' title='Permanent Link: Opensolaris &#8211; Samba and Network browsing'>Opensolaris &#8211; Samba and Network browsing</a> <small>If you&#8217;ve setup samba (rather than the builtin cifs/smb) chances...</small></li>
<li><a href='http://sigtar.com/2009/08/22/esx-network-utilization/' rel='bookmark' title='Permanent Link: ESX &#8211; network utilization'>ESX &#8211; network utilization</a> <small>One of the best articles i have found on this...</small></li>
<li><a href='http://sigtar.com/2009/08/03/opensolaris-network-teaming/' rel='bookmark' title='Permanent Link: opensolaris &#8211; network teaming'>opensolaris &#8211; network teaming</a> <small>Otherwise known as trunking or link aggregation. I believe it...</small></li>
</ol></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/opensolaris-manual-network-config-issue/feed/</wfw:commentRss>
		<slash:comments>1</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>
