<?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>Rich Buggy &#187; Linux</title>
	<atom:link href="http://buggy.id.au/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://buggy.id.au</link>
	<description>Developer, Manager, Entrepreneur</description>
	<lastBuildDate>Sat, 22 May 2010 12:09:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Connecting to Windows VPN</title>
		<link>http://buggy.id.au/2009/01/28/connecting-to-windows-vpn/</link>
		<comments>http://buggy.id.au/2009/01/28/connecting-to-windows-vpn/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 10:30:02 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.buggy.id.au/?p=121</guid>
		<description><![CDATA[After much pain I found this great article about how to connect to a Windows VPN from Ubunto 8.10. Thanks Dean!!]]></description>
			<content:encoded><![CDATA[<p>After much pain I found this great article about <a href="http://www.splatdot.com/2008/11/19/ubuntu-810-how-connect-microsoft-vpn">how to connect to a Windows VPN from Ubunto 8.10</a>. Thanks Dean!!</p>
]]></content:encoded>
			<wfw:commentRss>http://buggy.id.au/2009/01/28/connecting-to-windows-vpn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why I keep thinking about switching back to Windows</title>
		<link>http://buggy.id.au/2007/12/31/why-i-keep-thinking-about-switching-back-to-windows/</link>
		<comments>http://buggy.id.au/2007/12/31/why-i-keep-thinking-about-switching-back-to-windows/#comments</comments>
		<pubDate>Mon, 31 Dec 2007 01:44:13 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.buggy.id.au/2007/12/31/why-i-keep-thinking-about-switching-back-to-windows/</guid>
		<description><![CDATA[I&#8217;ve been using Linux powered servers since 1995. About 18 months ago I decided to try using Linux on the desktop. I&#8217;m mostly happy with it but there are a number of things that annoy me and at least once per month I seriously think about switching back to Windows. Some things are my fault: [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using Linux powered servers since 1995. About 18 months ago I decided to try using Linux on the desktop. I&#8217;m mostly happy with it but there are a number of things that annoy me and at least once per month I seriously think about switching back to Windows.</p>
<p>Some things are my fault:</p>
<ul>
<li>Buying a laptop with an NVIDIA card (I&#8217;m <strong>never</strong> going to buy another NVIDIA product)</li>
</ul>
<p>Some things are out of my control:</p>
<ul>
<li>Needing to test applications using IE</li>
<li>The Australian Tax Office only supports Windows</li>
<li>Being unable to sync the contacts/calendars between my phone and Evolution</li>
</ul>
<p>Some things aren&#8217;t important but still frustrate:</p>
<ul>
<li>The built-in webcam and microphone don&#8217;t work</li>
<li>The external microphone worked with Kubuntu (which killed the audio after a kernel upgrade) but not Ubuntu (which I use)</li>
<li>I&#8217;ve never been able to use the digital TV tuner that came with the computer</li>
</ul>
<p>While I can do 100% of my day-to-day tasks that only covers 95% of what I do each the month. Being unable able to do the other 5% has become very frustrating and is almost enough to make me switch back to Windows. I just keep feeling that if I hold off long enough that I&#8217;ll be able to do the last 5% with Linux (or <a href="http://www.reactos.org/" title="ReactOS: An open source version of Windows">Reactos</a> will become a viable option).</p>
<p><strong>Update:</strong> I&#8217;ve made some progress on syncing contacts between my phone and <a href="http://www.horde.org/" title="Horde Groupware Webmail Edition">Horde Groupware Webmail Edition</a> using SyncML which I then hope to sync with Evolution.</p>
]]></content:encoded>
			<wfw:commentRss>http://buggy.id.au/2007/12/31/why-i-keep-thinking-about-switching-back-to-windows/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ubuntu 7.04 includes PHP PDO extension</title>
		<link>http://buggy.id.au/2007/04/28/ubuntu-704-includes-php-pdo-extension/</link>
		<comments>http://buggy.id.au/2007/04/28/ubuntu-704-includes-php-pdo-extension/#comments</comments>
		<pubDate>Sat, 28 Apr 2007 02:51:30 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.buggy.id.au/2007/04/28/ubuntu-704-includes-php-pdo-extension/</guid>
		<description><![CDATA[It&#8217;s good to see that Ubuntu 7.04 includes support for the PHP PDO extension. I was a little confused when I saw php5-mysql, thinking it was just the mysql_ extension, but it actually includes the pdo_mysql drivers in addition to the mysql_ and mysqli_ extensions. Yay!!]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s good to see that Ubuntu 7.04 includes support for the PHP PDO extension. I was a little confused when I saw php5-mysql, thinking it was just the mysql_ extension, but it actually includes the pdo_mysql drivers in addition to the mysql_ and mysqli_ extensions. Yay!!</p>
]]></content:encoded>
			<wfw:commentRss>http://buggy.id.au/2007/04/28/ubuntu-704-includes-php-pdo-extension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 7.04 nearly here</title>
		<link>http://buggy.id.au/2007/04/17/ubuntu-704-nearly-here/</link>
		<comments>http://buggy.id.au/2007/04/17/ubuntu-704-nearly-here/#comments</comments>
		<pubDate>Tue, 17 Apr 2007 08:54:33 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.buggy.id.au/2007/04/17/ubuntu-704-nearly-here/</guid>
		<description><![CDATA[Ubuntu 7.04 is nearly here. Just two more sleeps (maybe three if you&#8217;re in Australia like me). Personally I can&#8217;t wait based on what I saw of the early tests.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ubuntu.com/news/ubuntudesktop704" title="Canoncial launches Ubuntu 7.04">Ubuntu 7.04</a> is nearly here. Just two more sleeps (maybe three if you&#8217;re in Australia like me). Personally I can&#8217;t wait based on what I saw of the early tests.</p>
]]></content:encoded>
			<wfw:commentRss>http://buggy.id.au/2007/04/17/ubuntu-704-nearly-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making Ubuntu and my Windows Mobile phone talk</title>
		<link>http://buggy.id.au/2007/03/19/making-ubuntu-and-my-windows-mobile-phone-talk/</link>
		<comments>http://buggy.id.au/2007/03/19/making-ubuntu-and-my-windows-mobile-phone-talk/#comments</comments>
		<pubDate>Sun, 18 Mar 2007 22:10:36 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.buggy.id.au/2007/03/19/making-ubuntu-and-my-windows-mobile-phone-talk/</guid>
		<description><![CDATA[Ever since I moved to Ubuntu I haven&#8217;t been able to get my XDA II mini to stay connected. The output from dmesg was always the same: [17179652.184000] usb 2-2: new full speed USB device using uhci_hcd and address 2 [17179652.356000] usb 2-2: configuration #1 chosen from 1 choice [17179652.460000] usbcore: registered new driver usbserial [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since I moved to Ubuntu I haven&#8217;t been able to get my XDA II mini to stay connected. The output from <code>dmesg</code> was always the same:</p>
<pre>[17179652.184000] usb 2-2: new full speed USB device using uhci_hcd and address 2
[17179652.356000] usb 2-2: configuration #1 chosen from 1 choice
[17179652.460000] usbcore: registered new driver usbserial
[17179652.464000] drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
[17179652.464000] usbcore: registered new driver usbserial_generic
[17179652.464000] drivers/usb/serial/usb-serial.c: USB Serial Driver core
[17179652.472000] drivers/usb/serial/usb-serial.c: USB Serial support registered for PocketPC PDA
[17179652.472000] drivers/usb/serial/ipaq.c: USB PocketPC PDA driver v0.5
[17179652.472000] ipaq 2-2:1.0: PocketPC PDA converter detected
[17179652.472000] usb 2-2: PocketPC PDA converter now attached to ttyUSB0
[17179652.472000] usbcore: registered new driver ipaq</pre>
<p>followed about 5 seconds later by:</p>
<pre>[17179667.064000] usb 2-2: USB disconnect, address 2
[17179667.064000] ipaq ttyUSB0: PocketPC PDA converter now disconnected from ttyUSB0
[17179667.068000] ipaq 2-2:1.0: device disconnected</pre>
<p>The solution turns out to be really simple &#8211; TURN YOUR PHONE ON!!</p>
<p>With the phone turned off Linux will detect the phone and set everything up then report the phone as disconnected about 5 seconds later. The solution is to turn your phone on. It doesn&#8217;t seem to matter if you turn it on before or after you connect it, just as long as you do it before running <code>synce-serial-start</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://buggy.id.au/2007/03/19/making-ubuntu-and-my-windows-mobile-phone-talk/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Solved: Evolution loosing connection to Exchange</title>
		<link>http://buggy.id.au/2007/03/06/solved-evolution-loosing-connection-to-exchange/</link>
		<comments>http://buggy.id.au/2007/03/06/solved-evolution-loosing-connection-to-exchange/#comments</comments>
		<pubDate>Tue, 06 Mar 2007 05:44:17 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.buggy.id.au/2007/03/06/solved-evolution-loosing-connection-to-exchange/</guid>
		<description><![CDATA[I&#8217;ve been running Evolution 2.8.1 on Ubuntu 6.10 for a few months without any problems. Today Evolution started reporting that it has lost it&#8217;s connection to Exchange: "Can't get message, Lost connection to Evolution Exchange backend process" After half a day of the Exchange web mail interface driving me crazy I finally fixed the problem. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been running Evolution 2.8.1 on Ubuntu 6.10 for a few months without any problems. Today Evolution started reporting that it has lost it&#8217;s connection to Exchange:</p>
<p><code>"Can't get message, Lost connection to Evolution Exchange backend process"</code></p>
<p>After half a day of the Exchange web mail interface driving me crazy I finally fixed the problem. The solution turned out to be simple. After removing the Exchange account from Evolution and quitting it I ran the following commands to remove all evidence of Exchange:</p>
<pre>
% evolution --force-shutdown
% cd ~/.evolution
% rm -rf `find . -name *exch* -print`</pre>
<p>I then restarted Evolution and added the Exchange account again.</p>
<p><strong>Warning:</strong> Before removing any files or directories you should back up your entire <code>~/.evolution</code> directory just in case something goes wrong and you need to restore it.</p>
]]></content:encoded>
			<wfw:commentRss>http://buggy.id.au/2007/03/06/solved-evolution-loosing-connection-to-exchange/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Installing PDO for PHP5 on Ubuntu</title>
		<link>http://buggy.id.au/2007/02/19/installing-pdo-on-ubuntu/</link>
		<comments>http://buggy.id.au/2007/02/19/installing-pdo-on-ubuntu/#comments</comments>
		<pubDate>Mon, 19 Feb 2007 03:25:14 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.buggy.id.au/2007/02/19/installing-pdo-on-ubuntu/</guid>
		<description><![CDATA[For some reason there aren&#8217;t any PDO packages for PHP 5 on Ubuntu 6.10. They&#8217;re pretty easy to install from PECL but you might need to install the dev version of your database client libraries. Below is what I had to type to install PDO with the MySQL driver. % sudo apt-get install libmysqlclient15-dev % [...]]]></description>
			<content:encoded><![CDATA[<p>For some reason there aren&#8217;t any PDO packages for PHP 5 on Ubuntu 6.10. They&#8217;re pretty easy to install from PECL but you might need to install the dev version of your database client libraries. Below is what I had to type to install PDO with the MySQL driver.</p>
<pre>
% sudo apt-get install libmysqlclient15-dev
% sudo pecl install pdo
% sudo pecl install pdo_mysql</pre>
<p>You then need add the following to the end of your php.ini file(s). Depending on which version of PHP you installed they&#8217;ll be /etc/php5/apache2/php.ini, /etc/php5/cgi/php.ini and /etc/php/cli/php.ini.</p>
<pre>
extension=pdo.so
extension=pdo_mysql.so</pre>
<p><strong>Update:</strong> Before you can install any PECL extensions you need to install the php5-dev package. For information see my post about <a href="http://www.buggy.id.au/2007/03/09/using-pecl-with-ubuntu/" title="Using PECL wit Ubuntu">Using PECL with Ubuntu</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://buggy.id.au/2007/02/19/installing-pdo-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Ubuntu SBS: MySQL Database Server</title>
		<link>http://buggy.id.au/2007/02/19/ubuntu-sbs-mysql-database-server/</link>
		<comments>http://buggy.id.au/2007/02/19/ubuntu-sbs-mysql-database-server/#comments</comments>
		<pubDate>Mon, 19 Feb 2007 02:00:13 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[small business server]]></category>

		<guid isPermaLink="false">http://www.buggy.id.au/2007/02/19/ubuntu-sbs-mysql-database-server/</guid>
		<description><![CDATA[I&#8217;ll be using MySQL to store user information for the small business server. This could be done with an LDAP server and many people will tell you that it should be. I chose MySQL over LDAP because it&#8217;s easier to understand, easier to use and you&#8217;ll probably require it anyway. Installing MySQL Once more apt-get [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll be using MySQL to store user information for the small business server. This could be done with an LDAP server and many people will tell you that it should be. I chose MySQL over LDAP because it&#8217;s easier to understand, easier to use and you&#8217;ll probably require it anyway.</p>
<h3>Installing MySQL</h3>
<p>Once more apt-get makes installing services trivial</p>
<pre>sudo apt-get install mysql-client-5.0 mysql-server-5.0 mysql-common</pre>
<p>That&#8217;s it!! You don&#8217;t need to do anything else in this post. I&#8217;ll cover creating a schema for users and adding a few in my next post.</p>
]]></content:encoded>
			<wfw:commentRss>http://buggy.id.au/2007/02/19/ubuntu-sbs-mysql-database-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu SBS: Reverse DNS</title>
		<link>http://buggy.id.au/2007/02/18/ubuntu-sbs-reverse-dns/</link>
		<comments>http://buggy.id.au/2007/02/18/ubuntu-sbs-reverse-dns/#comments</comments>
		<pubDate>Sun, 18 Feb 2007 10:08:23 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[small business server]]></category>

		<guid isPermaLink="false">http://www.buggy.id.au/2007/02/18/ubuntu-sbs-reverse-dns/</guid>
		<description><![CDATA[In the last post I explained how to configure forward DNS (turning the name into an IP address). In this post I&#8217;ll tell you how to configure BIND so that it turns an IP address into a name. I&#8217;ll also explain the SOA information at the top of the zone files. Reverse DNS We&#8217;re using [...]]]></description>
			<content:encoded><![CDATA[<p>In the last post I explained how to configure forward DNS (turning the name into an IP address). In this post I&#8217;ll tell you how to configure BIND so that it turns an IP address into a name. I&#8217;ll also explain the SOA information at the top of the zone files.</p>
<h3>Reverse DNS</h3>
<p>We&#8217;re using the 192.168.x.x network so I&#8217;ll use the file /etc/bind/db.192.168. Change the name of the file as appropriate for your network. Copy the following into your file</p>
<pre>;
; BIND reverse data file for local network
;
$TTL    604800
@       IN      SOA     localhost. root.localhost. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      localhost.</pre>
<p>You now need to add entries for each IP address in the form</p>
<pre>xxx.yyy      IN   PTR    sbs.example.com.</pre>
<p>This turns the IP number 192.168.yyy.xxx into the name sbs.example.com.</p>
<p>Once you have created the zone file you need to add it to /etc/bind/bind.conf.local</p>
<pre>    zone "168.192.in-addr.arpa" in{
      type master;
      file "/etc/bind/db.192.168";
      allow-update{none;};
    };</pre>
<p>To hide this from people outside of the network I included it in the &#8220;external&#8221; view created in the previous post. Restart bind and you should now be able to resolve IP numbers into names.</p>
<h3>Start of Authority &#8211; SOA</h3>
<p>The SOA record is the first thing that appears in the zone file. The format is</p>
<pre>&lt;domain.name.&gt;   IN  SOA  &lt;hostname.domain.name.&gt;  &lt;mailbox.domain.name&gt;
        &lt;serial-number&gt;
        &lt;refresh&gt;
        &lt;retry&gt;
        &lt;expire&gt;
        &lt;minimum-ttl&gt;</pre>
<p>Serial-number is the serial number for this version of the file. You need to increment this each time you make a change to the zone file. A good idea is to use the current date and a number in the format YYYYMMDDnn where nn is a unique number for that day. So the first zone file for today would have 2007021801.</p>
<p>Refresh is how many seconds to wait before polling the primary name server to see if the serial number has changed.</p>
<p>Retry is how many seconds to wait if a refresh fails before trying again.</p>
<p>Expire is the number of seconds after both a refresh and retry fail before the domain name server stops serving the domain.</p>
<p>Minimum-TTL is the minimum time for an entry to live.</p>
<p>Next time I&#8217;ll cover setting up MySQL.</p>
]]></content:encoded>
			<wfw:commentRss>http://buggy.id.au/2007/02/18/ubuntu-sbs-reverse-dns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu SBS: Domain Name Server</title>
		<link>http://buggy.id.au/2007/02/10/ubuntu-sbs-domain-name-server/</link>
		<comments>http://buggy.id.au/2007/02/10/ubuntu-sbs-domain-name-server/#comments</comments>
		<pubDate>Fri, 09 Feb 2007 21:45:41 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[small business server]]></category>

		<guid isPermaLink="false">http://www.buggy.id.au/2007/02/10/ubuntu-sbs-domain-name-server/</guid>
		<description><![CDATA[The domain name server is an important part of the small business server allowing us to connect to other computers using friendly names instead of IP addresses. Because my client has a static IP address and an ISP willing to operate the slave domain name server I configured their domain name server as the master [...]]]></description>
			<content:encoded><![CDATA[<p>The domain name server is an important part of the small business server allowing us to connect to other computers using friendly names instead of IP addresses. Because my client has a static IP address and an ISP willing to operate the slave domain name server I configured their domain name server as the master DNS for their domain. If your ISP isn&#8217;t willing to do this then you can use a service like no-ip.com or easyDNS.</p>
<h3>Installing the domain name server</h3>
<p>Installing the domain name server is a simple process thanks to apt-get. Simply log into the server and type in the following command.</p>
<pre>% sudo apt-get install bind9</pre>
<h3>Configuring DNS</h3>
<p>Because of our network setup the domain name server needs to resolve names to IP addresses differently for internal and external clients. To do this we use &#8220;views&#8221; so that internally names resolve directly to the servers IP address while externally they resolve to the routers IP address which will port forward to the server. We will also use views so some names resolve internally but not externally.</p>
<p>Start by creating a new file called /etc/bind/db.example.com-external (using your domain instead of example.com) and copy the following into it.</p>
<pre>;
; BIND data file for example.com
;
$ORIGIN example.com.
$TTL    604800
example.com.            IN      SOA     example.com. root.example.com. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
                IN      NS      xxx.xxx.xxx.xxx.
                IN      NS      ns1.my-isp.com.
                IN      NS      ns2.my-isp.com.
;
example.com.    IN      A       xxx.xxx.xxx.xxx
;
@               IN      MX      10      sbs.example.com.
;
;
localhost               IN      A       127.0.0.1
sbs                     IN      A       xxx.xxx.xxx.xxx
www                     IN      CNAME   sbs
mail                    IN      CNAME   sbs</pre>
<p>This zone file will be used when resolving names for requests from outside of our network. It should never return an internal IP address and should only contain entries we want visible externally. Make the following changes to suite your environment.</p>
<ul>
<li>Change root.example.com to the email address of the person responsible for your DNS replacing the @ with . (hence root@example.com becomes root.example.com)</li>
<li>Change example.com to your domain</li>
<li>Change sbs to the name of your small business server</li>
<li>Change xxx.xxx.xxx.xxx to the public IP address of your router</li>
<li>Change ns1.my-isp.com and ns2.my-isp.com to the names of the slave name servers</li>
</ul>
<p>Now copy that file to /etc/bind/db.example.com-internal (remember to use your domain instead of example.com).</p>
<pre>% sudo cp /etc/bind/db.example.com-external /etc/bind/db.example.com-internal</pre>
<p>This zone file will be used when clients inside our network make DNS queries. You&#8217;ll need to change all of the external IP adresses to internal IP addresses. You may also want to add entires for internal devices such as other computers, network printers and your gateway. It&#8217;s safe to put these here because they won&#8217;t be visible from outside of your network. These entries will look something like:</p>
<pre>pc1                     IN      A       xxx.xxx.xxx.xxx
pc2                     IN      A       xxx.xxx.xxx.xxx
printer                 IN      A       xxx.xxx.xxx.xxx
gateway                 IN      A       xxx.xxx.xxx.xxx</pre>
<p>Now edit /etc/bind/named.conf.local and copy the following into it.</p>
<pre>view "internal" {
    match-clients { 192.168.1.0/8; };

    zone "example.com" {
            type master;
            file "/etc/bind/db.example.com-internal";
    };
};

view "external" {
    match-clients { any; };

    zone "example.com" {
            type master;
            file "/etc/bind/db.example.com-external";
            allow-transfer {
                    xxx.xxx.xxx.xxx;
            };
    };
};</pre>
<p>Then make a couple of changes to suite your environment:</p>
<ul>
<li>example.com should be changed for your domain name</li>
<li>Replace xxx.xxx.xxx.xxx with the IP address for the server acting as the slave for your domain. You can add multiple lines here.</li>
<li>Change 192.168.1.0/8 to suite your subnet</li>
</ul>
<p>Finally restart the domain name server</p>
<pre>% sudo /etc/init.d/bind9 restart</pre>
<h3>Port forwarding</h3>
<p>To make your domain name server visible from outside of the network configure your router to forward UDP/TCP port 53 to the server.</p>
<h3>Testing the domain name server</h3>
<p>You should now test your DNS is configured properly by using the dig command. This needs to be done both inside and outside your network so you know each location is getting the correct result. Example queries are:</p>
<pre>% dig @localhost example.com.au ns
% dig @localhost example.com.au a
% dig @localhost example.com.au mx
% dig @localhost sbs.example.com.au a
% dig @localhost www.example.com.au a
% dig @localhost www.example.com.au mx
% dig @localhost mail.example.com.au a
% dig @localhost mail.example.com.au mx</pre>
<p>From outside your network simple change locahost for your routers IP address. This will also tell you if port forwarding is working correctly.</p>
<p><strong>Tip:</strong> If your queries timeout then check /var/log/syslog for the error messages.</p>
<h3>Making it live</h3>
<p>When you&#8217;re ready to make the your DNS server live it&#8217;s a fairly simple process.</p>
<ol>
<li>Configure your slave domain name servers to use your master. Your ISP or DNS hosting company can help you with this.</li>
<li>Get your domain registrar to change your primary, secondary and (optionally) other DNS servers.</li>
</ol>
<p>As you can use any of the domain name servers as the primary and secondary servers it might make sense to use your ISP/DNS hosting company&#8217;s server for this as they&#8217;ll have a faster connection.</p>
<p>I&#8217;ll finish the domain name server in the next post when I cover the reverse lookup.</p>
]]></content:encoded>
			<wfw:commentRss>http://buggy.id.au/2007/02/10/ubuntu-sbs-domain-name-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
