VectorLinux
December 21, 2014, 06:05:38 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Configure WINS setting in VL5.9 STD  (Read 864 times)
hata_ph
Packager
Vectorian
****
Posts: 3261


-- Just being myself --


« on: April 16, 2009, 02:32:21 am »

I have configure one of my VL5.9 STD as a samba server. Before this it is using DHCP for the network connection. But now I have change to using static IP. What is the method to manual key in the WINS setting for it? Below is my rc.inet1 script.....

Quote
#!/bin/sh
# This file is supposed to be created by vnetadd
# and modified by vnetset.
# You can modify it by hand, but be careful ;-)
#
# GNU GPL  (c) Eko M. Budi, 2004
#          (c) Vector Linux, 2004
#

###########################################################
## The settings
DEVICE='eth0'
DHCP='no'
IPADDR='10.0.9.240'
NETMASK='255.255.255.0'
GATEWAY='10.0.9.1'
PROBE='no'

###########################################################
## The script

## You may make customized script here
## If not, source the standard network
. /etc/rc.d/functions-network "$@"



EDIT: Strangely now I can access my VL samba server without the WINS setting. Does that mean I no need WINS for hostname resolve?

PS: My company still using WINS for hostname resolve.....

this is my /etc/nsswitch.cong

Quote
#
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Legal entries are:
#
#      nisplus or nis+         Use NIS+ (NIS version 3)
#      nis or yp               Use NIS (NIS version 2), also called YP
#      dns                     Use DNS (Domain Name Service)
#      files                   Use the local files
#      [NOTFOUND=return]       Stop searching if not found so far
#

# passwd:    files nis
# shadow:    files nis
# group:     files nis

passwd:    compat winbind
group:     compat winbind

hosts:     files dns wins winbind
networks:       files

services:       files
protocols:      files
rpc:       files
ethers:    files
netmasks:       files
netgroup:       files
bootparams:     files

automount:      files
aliases:        files

« Last Edit: April 16, 2009, 03:05:33 am by hata_ph » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!