<?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>Markus Bäker &#187; DNS</title>
	<atom:link href="http://www.mbaeker.de/tag/dns/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mbaeker.de</link>
	<description>Jeder hat es - ich jetzt auch</description>
	<lastBuildDate>Thu, 22 Jul 2010 18:37:32 +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>Hostdatei zu DNS Einträgen umwandeln</title>
		<link>http://www.mbaeker.de/2009/10/hostdatei-zu-dns-eintragen-umwandeln/</link>
		<comments>http://www.mbaeker.de/2009/10/hostdatei-zu-dns-eintragen-umwandeln/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 18:36:07 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[W2k8]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/?p=201</guid>
		<description><![CDATA[Ich hatte die Anforderung eine relative lange Hostdatei in DNS Einträge auf einen Windows DNS umzuwandeln. Natürlich war ich zu faul zum Abtippen. Mit dnscmd.exe und einer Batchdatei ist das auch nicht mehr nötig:
for /f &#8220;tokens=1-4&#8243; %%a in (%1) do (
 echo %%a &#8211; %%b &#8211; %%c
dnscmd.exe DNSSERVER /recordadd %%c /createPTR A %%a
)
Die Hostdatei muss [...]]]></description>
			<content:encoded><![CDATA[<p>Ich hatte die Anforderung eine relative lange Hostdatei in DNS Einträge auf einen Windows DNS umzuwandeln. Natürlich war ich zu faul zum Abtippen. Mit dnscmd.exe und einer Batchdatei ist das auch nicht mehr nötig:</p>
<blockquote><p><span style="font-family: Arial; font-size: x-small;">for /f &#8220;tokens=1-4&#8243; %%a in (%1) do (</span></p>
<p><span style="font-family: Arial; font-size: x-small;"> echo %%a &#8211; %%b &#8211; %%c</span></p>
<p><span style="font-family: Arial; font-size: x-small;">dnscmd.exe DNSSERVER /recordadd %%c /createPTR A %%a</span><br />
<span style="font-family: Arial; font-size: x-small;">)</span></p></blockquote>
<p><span style="font-size: x-small;"><span style="font-family: Arial;">Die Hostdatei muss etwas angepasst werden: Unnötige Kommentarzeilen entfernen und mehrfache Leerzeichen durch ein Leerzeichen zwischen den Hosteinträgen ersetzen (z.B. search und replace von zwei Leerzeichen durch ein Leerzeichen und das mehrfach).</span></span></p>
<p><span style="font-size: x-small;"><span style="font-family: Arial;">Beispielzeile:</span></span></p>
<p><span style="font-size: x-small;"><span style="font-family: Arial;">IP-Adresse DNSHosteintrag NetbiosName</span></span></p>
<p><span style="font-size: x-small;"><span style="font-family: Arial;">Falls in der zweiten Spalte bereits der NetbiosName steht, dann oben anstatt %%c %%b schreiben.</span></span></p>
<p><span style="font-size: x-small;"><span style="font-family: Arial;">Versteht dass hier jemand??<br />
</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2009/10/hostdatei-zu-dns-eintragen-umwandeln/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
