Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DNS and NIS and WINS and OH MY!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ejholmes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jul 2004
Posts: 134
Location: USA

PostPosted: Thu Feb 10, 2005 7:41 am    Post subject: DNS and NIS and WINS and OH MY! Reply with quote

Hey guys,
I've run into a little dilema here. I have a very small home network consisting of two laptops, 3 desktops and eventually one server (maybe 6 months to a year from now). My problem is that I don't know what I should use for the LAN hostname resolution. Two of the desktops are pure windows, one is a gentoo/windows and one of the laptops is pure gentoo. Samba is running on all the Gentoo PC's and the Windows PC can see those machines perfectly fine which means that NetBIOS must be working. Preferably that is what i'd like to use: NetBIOS, but the gentoo systems don't seem to be able to talk to each other using NetBIOS names, they just end up saying "unknown host". So I don't know what to do. If I had that server I guess i could run DNS on it but wouldn't that require me to enter in the ip adress of each machine manually? I just want the most convenient hostname resolver which seems like WINS at the moment if I can get it to work on all the machines. So, what should i do? I need some expert opinions :wink:
_________________
Client-----
Athlon XP 3200+
768 mb
nVidia GeForce 4 mx

Server-----
Athlon Sempron 1.5 GHz
128 mb ram
$200 from walmart :-)
Back to top
View user's profile Send private message
ejholmes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jul 2004
Posts: 134
Location: USA

PostPosted: Thu Feb 10, 2005 7:59 am    Post subject: Reply with quote

Well, it looks like i solved it. I'm using WINS now on all machines. Here's the dump of testparm from one of the gentoo systems.

Code:

[global]
        workgroup = HOME
        server string = Eric_on_Linux
        map to guest = Bad User
        log file = /var/log/samba3/log.%m
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        wins server = 192.168.0.12
        printer admin = @adm


and here's what /etc/nsswitch.conf looks like...
Code:

# /etc/nsswitch.conf:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/nsswitch.conf,v 1.4 2002/11/18 19:39:22 azarah Exp $

passwd:      compat
shadow:      compat
group:       compat

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

hosts:       files dns wins
networks:    files dns

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

automount:   files
aliases:     files


Please post anything about DNS if you can, I'd still like to know the benefits of using DNS over WINS for LAN if there are any. And also, if you notice, I have the WINS server set to one of the Windows machines. Is there a way to set it dynamically so that if 192.168.0.12 went down I wouldn't lose WINS?
_________________
Client-----
Athlon XP 3200+
768 mb
nVidia GeForce 4 mx

Server-----
Athlon Sempron 1.5 GHz
128 mb ram
$200 from walmart :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum