<?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>Zulius &#187; samba</title>
	<atom:link href="http://www.zulius.com/tag/samba/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zulius.com</link>
	<description>Advanced Application Development</description>
	<lastBuildDate>Mon, 30 Aug 2010 20:44:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Resolve Windows netbios names from Linux</title>
		<link>http://www.zulius.com/how-to/resolve-windows-netbios-names-from-linux/</link>
		<comments>http://www.zulius.com/how-to/resolve-windows-netbios-names-from-linux/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 11:59:57 +0000</pubDate>
		<dc:creator>Tim White</dc:creator>
				<category><![CDATA[how-to]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netbios]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.zulius.com/?p=704</guid>
		<description><![CDATA[p>Platforms: any *nix distro
What You'll Need: Samba

In a heterogeneous LAN it is often useful to resolve network addresses by a computer's name (ie. netbios name).  This is especially true if the LAN does not have a DNS server so that host names can be used instead of IP addresses (which if dynamically assigned, could [...]]]></description>
			<content:encoded><![CDATA[<p><div class="wp-caption alignleft" style="width: 159px"><img alt="Ping a Windows box" src="/img/blog/resolveWindowsNetbiosTitleImate.png" title="Ping a Windows box" width="150" height="110" /><p class="wp-caption-text">Ping a Windows box</p></div>
<p><strong>Platforms: </strong><br />any *nix distro</p>
<p><strong>What You'll Need:</strong><br /> <a href="http://www.samba.org/">Samba</a></p>
<p>
In a heterogeneous LAN it is often useful to resolve network addresses by a computer's name (ie. <a href="http://en.wikipedia.org/wiki/NetBIOS">netbios</a> name).  This is especially true if the LAN does not have a DNS server so that host names can be used instead of IP addresses (which if dynamically assigned, could change often).</p>
<p>
To enable Windows netbios name resolution from a Linux computer, make sure that <a href="http://www.samba.org/">Samba</a> is installed (although the smb service does not need to be running).  The Samba suite includes <a href="http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/winbind.html">winbind</a>, which enables Windows host names to be resolved.</p>
<p>Then edit /etc/nsswitch.conf and change this line:</p>
<pre class="brush: plain;">hosts:      files dns</pre>
<p>to this:</p>
<pre class="brush: plain;">hosts:      files dns wins</pre>
<p>Then test by pinging the computer name of Windows machine on the LAN:</p>
<pre class="brush: plain;">$ ping windowsbox
PING windowsbox (192.168.0.100) 56(84) bytes of data.
64 bytes from 192.168.0.100: icmp_seq=1 ttl=128 time=0.117 ms
64 bytes from 192.168.0.100: icmp_seq=2 ttl=128 time=0.127 ms
64 bytes from 192.168.0.100: icmp_seq=3 ttl=128 time=0.127 ms
64 bytes from 192.168.0.100: icmp_seq=4 ttl=128 time=0.127 ms
64 bytes from 192.168.0.100: icmp_seq=5 ttl=128 time=0.128 ms</pre>
<p>This setting really comes in handy when mounting a shared folder of a dynamically IP'ed Windows box from Linux.  Instead of using the Windows' box IP address, just specify it's netbios name.  Example entry in /etc/fstab:</p>
<pre class="brush: plain;">
//windowsbox/my_share/ /mnt/my_mount_point/ cifs rw,username=xxx,password=xxx,domain=xxx 0 0
</pre>
<img src="http://www.zulius.com/blog/?ak_action=api_record_view&id=704&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.zulius.com/how-to/resolve-windows-netbios-names-from-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
