<?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>djerk.nl &#187; dns</title>
	<atom:link href="http://www.djerk.nl/wordpress/tag/dns/feed" rel="self" type="application/rss+xml" />
	<link>http://www.djerk.nl/wordpress</link>
	<description>Anything related to Djerk Geurts may be found here (either locally or linked)</description>
	<lastBuildDate>Mon, 26 Jul 2010 04:45:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DNS on IOS</title>
		<link>http://www.djerk.nl/wordpress/2008/dns-on-ios</link>
		<comments>http://www.djerk.nl/wordpress/2008/dns-on-ios#comments</comments>
		<pubDate>Sat, 12 Apr 2008 10:19:50 +0000</pubDate>
		<dc:creator>Djerk</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[linkedin]]></category>

		<guid isPermaLink="false">http://www.djerk.nl/wordpress/wordpress/2008/dns-on-ios</guid>
		<description><![CDATA[I&#8217;ll leave the debate to others about running services on routers. As usual ymmv and all that, though besides the obvious objections I think it&#8217;s quite cool of my little c877 to proxy DNS and serve what it has locally. Imho, my home DNS config is not heavy enough to warrant rigging up DNS on [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll leave the debate to others about running services on routers. As usual ymmv and all that, though besides the obvious objections I think it&#8217;s quite cool of my little c877 to proxy DNS and serve what it has locally. Imho, my home DNS config is not heavy enough to warrant rigging up DNS on my Samba server.</p>
<p>My first google tonight led me to an <a href="http://blog.ioshints.info/2006/09/use-your-cisco-router-as-primary-dns.html" title="External link to DNS server article on ioshints.info" target="_blank">article on the excellent ios hints and tricks site (ioshints.info)</a>. Though this is for a full public DNS server it was a little overkill for me, please read this <a href="http://blog.ioshints.info/2007/05/write-protecting-primary-dns-server-on.html" title="External link, how to protect your DNS server (ioshints.info)" target="_blank">article</a> as well if you do plan to go that route.</p>
<p>My goal was to have my DSL router serve local IP&#8217;s for a few public and local domain names. For example this allows me to use sip.djerk.nl as my proxy address in my soft-phone both at home and away.</p>
<p>The following code is what I ended up with.<span id="more-146"></span></p>
<p><code># These hostnames will be served locally<br />
# As such they overrule their public dns<br />
# clients do need to use this router as a dns server<br />
ip host view VoIP sip.djerk.nl 192.168.100.130<br />
ip host sip.djerk.nl 192.168.100.130<br />
ip host c877 192.168.100.1</code></p>
<p>interface Vlan10<br />
description *** VoIP LAN ***<br />
ip dns view-group VoIP</p>
<p># For my Voice vlan<br />
ip dns view VoIP<br />
domain name djerk.nl<br />
# search list for this view<br />
domain list djerk.nl<br />
domain name-server  x.x.x.x<br />
domain name-server  y.y.y.y<br />
domain round-robin</p>
<p># Default dns handling<br />
ip dns view default<br />
domain name geurtscass.com<br />
domain list geurtscass.com</p>
<p>ip dns view-list VoIP<br />
view VoIP 1<br />
view default 100</p>
<p># Enable local dns server (proxy dns if no domains are configured here)<br />
# I do not allow inbound dns requests (intf ACL) so no need to worry about abuse<br />
ip dns server</p>
<p>Most interesting is the usage of views and a view-list. According to CCO the view-list is needed to bind a view to an interface, views can&#8217;t be assigned directly. Also noteworthy is that I&#8217;ve not found a way to reduce the sip.djerk.nl host mapping to a single line, as adding the default view to the VoIP view-list was not enough. Maybe I should add the VoIP view to the default view-list.</p>
<p>Well just tried that and it didn&#8217;t work either. Anyone out there who knows how to do the same in IOS but with less lines?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.djerk.nl/wordpress/2008/dns-on-ios/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
