My problem is that users are on DHCP and sometimes I get personA appearing
in a telnet session as personB in the logs and plays up.
The other thing also is that if a client comes along and adds his/her
machien to the network, they will have no problems with telnet or whatever
that's trying to resolve their name..

There are other reasons too just can't be bothered saying them all..

thanks,
George Vieira


-----Original Message-----
From: Steve Kowalik [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 13, 2001 6:00 PM
To: George Vieira
Cc: SLUG List
Subject: Re: [SLUG] Linux and WINS resolution.


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