Hi all,
I have just noticed that my microcore linux samba file server that's been running for ages can't ping windows by host name, only by their ip address's.
I've always been able to ping the microcore linux server by its ip address AND its hostname no problem.
Here's my /opt/eth0.sh file.
#!/bin/sh
pkill udhcpc
ifconfig eth0 10.1.1.150 netmask 255.0.0.0 broadcast 10.1.1.255 up
route add default gw 10.1.1.1
echo nameserver 10.1.1.1 > /etc/resolv.conf
my /etc/resolv.conf file
nameserver 10.1.1.1
my /etc/nsswitch.conf file
# /etc/nsswitch.conf: GNU Name Service Switch config.
#
passwd: files
group: files
shadow: files
hosts: files dns wins
networks: files
rpc: files
services: files
my /usr/local/etc/samba/smb.conf file
[global]
workgroup = workgroup
name resolve order = bcast lmhosts host wins
netbios name = adminbackup
security = share
log file = /mnt/sda1/sambalogs/%m
log level = 1
max log size = 50
debug timestamp = yes
load printers = no
show add printer wizard = no
printcap name = /dev/null
disable spoolss = yes
[backup]
comment = Admin Backup
path = /mnt/sda1/shares/backup
read only = no
guest ok = yes
force user = tc
force group = staff
output of ifconfig -a
ifconfig -a
dummy0 Link encap:Ethernet HWaddr 5E:5D:F7:10:D2:02
BROADCAST NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 00:0C:76:DD:A5:C0
inet addr:10.1.1.150 Bcast:10.1.1.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:69064 errors:0 dropped:0 overruns:0 frame:0
TX packets:34134 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:100096566 (95.4 MiB) TX bytes:2353468 (2.2 MiB)
Interrupt:22
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
The file server i'm talking about still works fine as a file server for our windows workgroup network.
Its microcore_3.8.4
Thanks in advance for any tips and suggestions