On Sat, Jan 13, 2001 at 01:39:26PM +1100, George Vieira wrote:
> Hi all,
> 
> Is there a way to get /etc/host.conf to check WINS servers too? I prefer to
> add machines to the WINS server rather than the /etc/hosts file and keep
> updating both. I know some of you would probably ask why not use Samba as a
> WINS server but in the past I haven't been able to get it working so I
> prefer another method first if possible.
>
UGH. Repeat after me, "I am crimanally insane."
Unless you'd like to stuff around with gethostbyname(2) and friends, which use DNS, 
which funnily enough, is designed for this kind of thing, and not WINS, which is 
*^(*&^)(*^)(*& :-)

slinky:~# grep -E '(wins|name\ resolve|dns)' /etc/samba/smb.conf
        wins support = yes
        name resolve order = hosts wins lmhosts bcast
        dns proxy = yes

Insert those lines in [global] and restart Samba, and you have a non-NT WINS server. 
Also, may I suggest reading Chapter 7 of Using Samba, which is freeily avaliable 
online.

There may be other methods by People Smarter Than Me[tm], but I much prefer using DNS, 
rather than WINS for these kind of things.

> thanks,
> George Vieira
> 
> 
> 
> -- 
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://slug.org.au/lists/listinfo/slug
> 

-- 
                                                    Steve
  "I'm a sysadmin because I couldn't beat a blind monkey in a coding contest."
                                                        --Me


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to