[Samba] Expected service, found `wins, dns, files'

John H Terpstra jht at samba.org
Mon Dec 30 17:22:47 GMT 2002


On Mon, 30 Dec 2002, Kenneth Illingsworth wrote:

> Can anyone peruse my attached host.conf file and determine what missing statement this error is referring to? Here is the command that generated this error:
>
> [root at cofr3 s390]# /usr/sbin/rndc reload
> /etc/host.conf: line 11: expected service, found `wins, dns, files'
> rndc: reload command successful
>
> Thank you in advance for your time.

Suggest you set in host.conf

order hosts,bind
multi on


Then in /etc/nsswitch.conf change the hosts line to read:

hosts: files wins dns


The standard C library functions that read the host.conf file know nothing
of WINS.

- John T.
-- 
John H Terpstra
Email: jht at samba.org
-------------- next part --------------
#
# /etc/host.conf - resolver configuration file
#
# Please read the man page host.conf(5) for more info.
#
#
# The following option is only used by binaries linked against
# libc4 or libc5. This line should be in sync with the "hosts"
# option in the /etc/nsswitch.conf file.
#
order wins, dns, files
#
# The following options are used by the resolver library:
#
multi on



More information about the samba mailing list