{"id":100,"date":"2013-10-25T23:43:54","date_gmt":"2013-10-25T21:43:54","guid":{"rendered":"http:\/\/www.emperial.dk\/?p=100"},"modified":"2013-10-26T00:01:35","modified_gmt":"2013-10-25T22:01:35","slug":"configuring-samba-to-be-the-a-wins-server","status":"publish","type":"post","link":"https:\/\/www.emperial.dk\/?p=100","title":{"rendered":"Configuring Samba to be a WINS server"},"content":{"rendered":"<p>This is quite easy to do, and it makes browsing the smb network fast.<\/p>\n<p>Configuring the server:<br \/>\nsimply edit smb.conf (typically located at \/etc\/samba\/smb.conf)<br \/>\nlocate the the wins support and enable it.:<\/p>\n<pre># Windows Internet Name Serving Support Section:\r\n# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server\r\nwins support = yes<\/pre>\n<p>setup the way samba should resolve the hosts:<\/p>\n<pre># What naming service and in what order should we use to resolve host names\r\n# to IP addresses\r\n#   name resolve order = lmhosts host wins bcast\r\n   name resolve order = host wins bcast<\/pre>\n<p>The following option should be addet to the linux DHCP server (if you use linux as a DHCP server):<\/p>\n<pre>option netbios-name-servers x.x.x.x;<\/pre>\n<p>where x.x.x.x is the IP of the WINS server<\/p>\n<p>If you use a normal router, sometimes they support pushing out the wins server, if you use a router running dd-wrt<br \/>\ngo tothe\u00a0 basic setup and add the WINS server IP, there.<\/p>\n<p>If this fails you can add the WINS server manually to windows:<br \/>\ngo to the control panel, and press the View network status and tasks, then press the change adapter setting<br \/>\nright click the network interface and select properties, select the TCP\/IP (for windows 7 select TCP\/IPv4)<br \/>\nand press properties again click advanced and select the WINS\u00a0 and add the IP of the WINS server and you are ready to go<\/p>\n<p><a href=\"https:\/\/www.emperial.dk\/wp-content\/uploads\/2013\/10\/WINS_server_win7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-102\" alt=\"WINS_server_win7\" src=\"https:\/\/www.emperial.dk\/wp-content\/uploads\/2013\/10\/WINS_server_win7-251x300.png\" width=\"251\" height=\"300\" srcset=\"https:\/\/www.emperial.dk\/wp-content\/uploads\/2013\/10\/WINS_server_win7-251x300.png 251w, https:\/\/www.emperial.dk\/wp-content\/uploads\/2013\/10\/WINS_server_win7.png 414w\" sizes=\"auto, (max-width: 251px) 100vw, 251px\" \/><\/a><\/p>\n<p>For linux clients simply edit the smb.conf and add the following:<\/p>\n<pre># WINS Server - Tells the NMBD components of Samba to be a WINS Client\r\n# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both\r\n   wins server = x.x.x.x<\/pre>\n<p>replace x.x.x.x with the IP of the WINS server<\/p>\n<p>Happy smb surfing \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is quite easy to do, and it makes browsing the smb network fast. Configuring the server: simply edit smb.conf (typically located at \/etc\/samba\/smb.conf) locate the the wins support and enable it.: # Windows Internet Name Serving Support Section: # &hellip; <a href=\"https:\/\/www.emperial.dk\/?p=100\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,17,5],"tags":[12,8,13,16,9],"class_list":["post-100","post","type-post","status-publish","format-standard","hentry","category-linux","category-network","category-windows","tag-linux-2","tag-lubuntu","tag-samba","tag-servers","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.emperial.dk\/index.php?rest_route=\/wp\/v2\/posts\/100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.emperial.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.emperial.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.emperial.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.emperial.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=100"}],"version-history":[{"count":8,"href":"https:\/\/www.emperial.dk\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":112,"href":"https:\/\/www.emperial.dk\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions\/112"}],"wp:attachment":[{"href":"https:\/\/www.emperial.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.emperial.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.emperial.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}