Geoff Scott wrote:

Eric Hines wrote:
My DNS server sits on lserver1.  I'm trying to ping lserver1 from
Do:

ping lserver1.test.biz

Response is?
With /etc/resolv.conf edited per John's example (subject to the changes I discussed in a posting just made), there's a long pause and then "unknown host." With /etc/resolv.conf in its original form (dhclient-script generated), there's a short pause and then "unknown host."

lserver1. With nsswitch set only to files or only to wins (/e.g./, hosts: files), this is successful. With nsswitch set only to dns, I
cannot get name resolution, although I can successfully ping by IP
address.  I can ping lserver1 by name or by IP successfully from
mustelidae.
Where is lserver1 pointing in terms of DNS?  How do I tell?  At this

John also mentions setting in resolv.conf
nameserver 127.0.0.1    (this is your loopback address)
nameserver 192.168.0.2   (this should be the ip of your router/firewall)
(you can have a maximum of 3 nameserver listed
I made that correction (it wasn't clear from John's example what that IP address was for), but I still got "unknown host) when I tried to ping lserver1 and lserver1.test.biz.

.  Is /etc/resolv.conf part of this
answer?
YES!
My resolv.conf, nsswitch.conf, and smb.conf are attached. The nsswitch is set to dns only, now for test. Normally it's set to files dns wins.

My named.conf and dhcpd.conf are built from John's example, as
mentioned above.  /Etc/hosts has the IP address/name pairs he calls
for. I think that means I'm running a local name server.
No.  The hosts file bypasses dns eg. Nsswitch is usually set to "files dns
wins"
Check files 1st then dns, then wins to find names on your lan
Files is your hosts files the rest should be self explanitory
That much I'd figured out: I meant the aggregate4 of all of those, since that was the goal of John's set up, which included all of those.

As you can see, I have very little understanding of what's going on
here; I've rather slavishly followed John's example, and I'm clearly
making mistakes I'm not recognizing.
You need to learn about DNS elsewhere. Go here, and read this:
http://www.novell.com/documentation/suse91/suselinux-adminguide/html/ch14.ht
ml
Particularly this:
http://www.novell.com/documentation/suse91/suselinux-adminguide/html/ch14s06
.html
Then apply it to your situation.
Going there tonight.

Thanks

Eric Hines

The over view is this:
The way out of this mess from my point of veiw is to switch off dhcp from
the router/firewall.
How?  I can't switch off the router/firewall.

Regards Geoff Scott
--
He can compress the most words into the smallest ideas of any man
I ever met.
 - Abraham Lincoln

# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2005/07/05 15:28:39

# Global parameters
[global]
        workgroup = DOM_TEST
        interfaces = eth0, lo
        bind interfaces only = Yes
        passdb backend = tdbsam
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *New*Password* %n\n *Re-enter*new*password* %n\n 
*Password*changed*
        username map = /etc/samba/smbusers
        unix password sync = Yes
        log level = 1
        syslog = 0
        log file = /var/log/samba/%m
        max log size = 50
        smb ports = 139 445
        name resolve order = wins bcast hosts
        time server = Yes
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = CUPS
        show add printer wizard = No
        add user script = /usr/sbin/useradd -m '%u'
        delete user script = /usr/sbin/userdel -r '%u'
        add group script = /usr/sbin/groupadd '%g'
        delete group script = /usr/sbin/groupdel '%g'
        add user to group script = /usr/sbin/usermod -G '%g' '%u'
        add machine script = /usr/sbin/useradd -s /bin/false -d /tmp '%u'
        shutdown script = /var/lib/samba/scripts/shutdown.sh
        abort shutdown script = /sbin/shutdown -c
        logon script = \scripts\login.bat
        logon path = \\%L\profiles\%U
        logon drive = X:
        domain logons = Yes
        preferred master = Yes
        wins support = Yes
        ldap ssl = no
        utmp = Yes
        idmap uid = 10000-20000
        idmap gid = 10000-20000
        map acl inherit = Yes
        veto files = /*.eml/*.nws/*.{*}/
        veto oplock files = /*.doc/*.xls/*.mdb/


## Shares omitted to same space.
; generated by /sbin/dhclient-script
; search hsd1.tx.comcast.net.
; nameserver 63.240.76.198
; nameserver 204.127.199.8
search lserver1.test.biz
nameserver 127.0.0.1
nameserver 192.168.1.1
#
# /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
#       db                      Use the local database (.db) files
#       compat                  Use NIS on compat mode
#       hesiod                  Use Hesiod for user lookups
#       [NOTFOUND=return]       Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
# hosts:      files dns wins
hosts:      dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   files

publickey:  nisplus

automount:  files
aliases:    files nisplus
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Reply via email to