20 Nov 2007 apenwarr   » (Master)

2007-11-19: This just saved me a lot of annoyance

This just saved me a lot of annoyance

If you use Debian or Ubuntu, do yourself a favour. Run this command:

    apt-get install winbind

Then edit your /etc/nsswitch.conf and change the line that looks like this:

    hosts: files dns

To this:

    hosts: files dns wins

Now even if your computer is on a network with fantastically stupid DNS, you can be happy like Windows users already are: your programs will do broadcast/wins lookups to find a hostname if it's not found in DNS.

(I had a really hard time finding out from google how to do this, so if you'll forgive me some redundancy: winbindd is part of samba. It can use WINS for hostname lookups (to augment or replace DNS). It provides nss_wins (libnss_wins) for NSS. It finds Windows hostnames automatically using samba on your Linux system.)

Lazyweb: anybody know how to do this in MacOS X?

Syndicated 2007-11-20 01:15:56 from apenwarr's log

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!