[Samba] nmblookup not honoring smb.conf?

adam morley axm135 at po.cwru.edu
Thu Nov 21 03:34:01 GMT 2002


$ nmblookup ohwow
querying ohwow on 129.22.171.31
name_query failed to find name ohwow

$ nmblookup  -s /etc/samba/smb.conf ohwow
querying ohwow on 129.22.171.31
name_query failed to find name ohwow

$ cat /etc/samba/smb.conf
[global]
workgroup = scholars
netbios name = fedora
security = user
wins server = 129.22.4.11
wins support = no
name resolve order = wins lmhosts dns

my problem is that while nmblookup is reading smb.conf (see attached strace) its not honoring the name resolve order line and checking with the wins server.  am i missing something obvious?

thanks.

-- 
adam

To be the responsible big kid on the block is not to steal the little guys lunch money, but to ensure that people don't want to steal each others lunch money.
-------------- next part --------------
execve("/usr/bin/nmblookup", ["nmblookup", "bastion"], [/* 37 vars */]) = 0
brk(0)                                  = 0x8107e88
open("/etc/ld.so.preload", O_RDONLY)    = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2, ...}) = 0
old_mmap(NULL, 2, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = 0x126000
close(3)                                = 0
munmap(0x126000, 2)                     = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=69627, ...}) = 0
old_mmap(NULL, 69627, PROT_READ, MAP_PRIVATE, 3, 0) = 0x126000
close(3)                                = 0
open("/usr/lib/libssl.so.0.9.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\201\0"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0555, st_size=218338, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x137000
old_mmap(NULL, 195492, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x138000
mprotect(0x165000, 11172, PROT_NONE)    = 0
old_mmap(0x165000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2c000) = 0x165000
close(3)                                = 0
open("/usr/lib/libcrypto.so.0.9.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\336\1"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0555, st_size=920484, ...}) = 0
old_mmap(NULL, 830500, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x168000
mprotect(0x226000, 52260, PROT_NONE)    = 0
old_mmap(0x226000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xbe000) = 0x226000
old_mmap(0x230000, 11300, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x230000
close(3)                                = 0
open("/usr/lib/libcups.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0:\0\000"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=116778, ...}) = 0
old_mmap(NULL, 108640, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x233000
mprotect(0x24b000, 10336, PROT_NONE)    = 0
old_mmap(0x24b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x18000) = 0x24b000
old_mmap(0x24d000, 2144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x24d000
close(3)                                = 0
open("/lib/libnsl.so.1", O_RDONLY)      = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000:\0\000"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=92622, ...}) = 0
old_mmap(NULL, 89600, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x24e000
mprotect(0x261000, 11776, PROT_NONE)    = 0
old_mmap(0x261000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12000) = 0x261000
old_mmap(0x262000, 7680, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x262000
close(3)                                = 0
open("/lib/libpam.so.0", O_RDONLY)      = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\24"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=35867, ...}) = 0
old_mmap(NULL, 29332, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x264000
mprotect(0x26b000, 660, PROT_NONE)      = 0
old_mmap(0x26b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x7000) = 0x26b000
close(3)                                = 0
open("/usr/lib/libpopt.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\21"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=32523, ...}) = 0
old_mmap(NULL, 30200, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x26c000
mprotect(0x273000, 1528, PROT_NONE)     = 0
old_mmap(0x273000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x6000) = 0x273000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\202\1"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1369635, ...}) = 0
old_mmap(NULL, 1225056, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x274000
mprotect(0x396000, 37216, PROT_NONE)    = 0
old_mmap(0x396000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x121000) = 0x396000
old_mmap(0x39c000, 12640, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x39c000
close(3)                                = 0
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\31\0\000"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=11780, ...}) = 0
old_mmap(NULL, 11516, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x3a0000
mprotect(0x3a2000, 3324, PROT_NONE)     = 0
old_mmap(0x3a2000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x3a2000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3a3000
mprotect(0x168000, 778240, PROT_READ|PROT_WRITE) = 0
mprotect(0x168000, 778240, PROT_READ|PROT_EXEC) = 0
munmap(0x126000, 69627)                 = 0
time(NULL)                              = 1037842856
brk(0)                                  = 0x8107e88
brk(0x8107eb0)                          = 0x8107eb0
brk(0x8108000)                          = 0x8108000
brk(0x8109000)                          = 0x8109000
open("/etc/localtime", O_RDONLY)        = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1267, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x126000
read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0"..., 4096) = 1267
close(3)                                = 0
munmap(0x126000, 4096)                  = 0
gettimeofday({1037842856, 507868}, NULL) = 0
stat64("/etc/samba/smb.conf", {st_mode=S_IFREG|0644, st_size=150, ...}) = 0
open("/etc/samba/smb.conf", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=150, ...}) = 0
read(3, "[global]\nworkgroup = scholars\nne"..., 150) = 150
close(3)                                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
ioctl(3, 0x8912, 0xbfffc7e8)            = 0
ioctl(3, 0x8915, 0xbfffc810)            = 0
ioctl(3, 0x8913, 0xbfffc810)            = 0
ioctl(3, 0x891b, 0xbfffc810)            = 0
ioctl(3, 0x8915, 0xbfffc7f0)            = 0
ioctl(3, 0x8913, 0xbfffc7f0)            = 0
ioctl(3, 0x891b, 0xbfffc7f0)            = 0
close(3)                                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(3, {sin_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("0.0.0.0")}}, 16) = 0
setsockopt(3, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
getsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [0], [4]) = 0
getsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], [4]) = 0
getsockopt(3, SOL_SOCKET, SO_BROADCAST, [1], [4]) = 0
getsockopt(3, SOL_TCP, TCP_NODELAY, 0xbffff450, 0xbffff454) = -1 EOPNOTSUPP (Operation not supported)
getsockopt(3, SOL_IP, IP_TOS, [0], [4]) = 0
getsockopt(3, SOL_IP, IP_TOS, [0], [4]) = 0
getsockopt(3, SOL_SOCKET, SO_SNDBUF, [65535], [4]) = 0
getsockopt(3, SOL_SOCKET, SO_RCVBUF, [65535], [4]) = 0
getsockopt(3, SOL_SOCKET, SO_SNDLOWAT, [1], [4]) = 0
getsockopt(3, SOL_SOCKET, SO_RCVLOWAT, [1], [4]) = 0
getsockopt(3, SOL_SOCKET, SO_SNDTIMEO, [0], [4]) = 0
getsockopt(3, SOL_SOCKET, SO_RCVTIMEO, [0], [4]) = 0
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 6), ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x126000
write(1, "querying bastion on 129.22.171.3"..., 34) = 34
getpid()                                = 1901
time(NULL)                              = 1037842856
gettimeofday({1037842856, 512475}, NULL) = 0
sendto(3, "\24Y\1\20\0\1\0\0\0\0\0\0 ECEBFDFEEJEPEOCACAC"..., 50, 0, {sin_family=AF_INET, sin_port=htons(137), sin_addr=inet_addr("129.22.171.31")}}, 16) = 50
gettimeofday({1037842856, 513696}, NULL) = 0
pipe([4, 5])                            = 0
fcntl64(4, F_GETFL)                     = 0 (flags O_RDONLY)
fcntl64(4, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
fcntl64(5, F_GETFL)                     = 0x1 (flags O_WRONLY)
fcntl64(5, F_SETFL, O_WRONLY|O_NONBLOCK) = 0
select(5, [3 4], NULL, NULL, {0, 90000}) = 0 (Timeout)
stat64("/var/cache/samba", {st_mode=S_IFDIR|0755, st_size=144, ...}) = 0
open("/var/cache/samba/unexpected.tdb", O_RDONLY|O_LARGEFILE) = 6
read(6, "TDB file\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 168) = 168
fstat64(6, {st_mode=S_IFREG|0644, st_size=8192, ...}) = 0
mmap2(NULL, 8192, PROT_READ, MAP_SHARED, 6, 0) = 0x127000
munmap(0x127000, 8192)                  = 0
close(6)                                = 0
gettimeofday({1037842856, 601268}, NULL) = 0
select(5, [3 4], NULL, NULL, {0, 90000}) = 0 (Timeout)
stat64("/var/cache/samba", {st_mode=S_IFDIR|0755, st_size=144, ...}) = 0
open("/var/cache/samba/unexpected.tdb", O_RDONLY|O_LARGEFILE) = 6
read(6, "TDB file\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 168) = 168
fstat64(6, {st_mode=S_IFREG|0644, st_size=8192, ...}) = 0
mmap2(NULL, 8192, PROT_READ, MAP_SHARED, 6, 0) = 0x127000
munmap(0x127000, 8192)                  = 0
close(6)                                = 0
gettimeofday({1037842856, 691557}, NULL) = 0
select(5, [3 4], NULL, NULL, {0, 90000}) = 0 (Timeout)
stat64("/var/cache/samba", {st_mode=S_IFDIR|0755, st_size=144, ...}) = 0
open("/var/cache/samba/unexpected.tdb", O_RDONLY|O_LARGEFILE) = 6
read(6, "TDB file\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 168) = 168
fstat64(6, {st_mode=S_IFREG|0644, st_size=8192, ...}) = 0
mmap2(NULL, 8192, PROT_READ, MAP_SHARED, 6, 0) = 0x127000
munmap(0x127000, 8192)                  = 0
close(6)                                = 0
gettimeofday({1037842856, 780968}, NULL) = 0
sendto(3, "\24Y\1\20\0\1\0\0\0\0\0\0 ECEBFDFEEJEPEOCACAC"..., 50, 0, {sin_family=AF_INET, sin_port=htons(137), sin_addr=inet_addr("129.22.171.31")}}, 16) = 50
gettimeofday({1037842856, 781470}, NULL) = 0
select(5, [3 4], NULL, NULL, {0, 90000}) = 0 (Timeout)
stat64("/var/cache/samba", {st_mode=S_IFDIR|0755, st_size=144, ...}) = 0
open("/var/cache/samba/unexpected.tdb", O_RDONLY|O_LARGEFILE) = 6
read(6, "TDB file\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 168) = 168
fstat64(6, {st_mode=S_IFREG|0644, st_size=8192, ...}) = 0
brk(0x810a000)                          = 0x810a000
mmap2(NULL, 8192, PROT_READ, MAP_SHARED, 6, 0) = 0x127000
munmap(0x127000, 8192)                  = 0
close(6)                                = 0
gettimeofday({1037842856, 871564}, NULL) = 0
select(5, [3 4], NULL, NULL, {0, 90000}) = 0 (Timeout)
stat64("/var/cache/samba", {st_mode=S_IFDIR|0755, st_size=144, ...}) = 0
open("/var/cache/samba/unexpected.tdb", O_RDONLY|O_LARGEFILE) = 6
read(6, "TDB file\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 168) = 168
fstat64(6, {st_mode=S_IFREG|0644, st_size=8192, ...}) = 0
mmap2(NULL, 8192, PROT_READ, MAP_SHARED, 6, 0) = 0x127000
munmap(0x127000, 8192)                  = 0
close(6)                                = 0
gettimeofday({1037842856, 960946}, NULL) = 0
select(5, [3 4], NULL, NULL, {0, 90000}) = 0 (Timeout)
stat64("/var/cache/samba", {st_mode=S_IFDIR|0755, st_size=144, ...}) = 0
open("/var/cache/samba/unexpected.tdb", O_RDONLY|O_LARGEFILE) = 6
read(6, "TDB file\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 168) = 168
fstat64(6, {st_mode=S_IFREG|0644, st_size=8192, ...}) = 0
mmap2(NULL, 8192, PROT_READ, MAP_SHARED, 6, 0) = 0x127000
munmap(0x127000, 8192)                  = 0
close(6)                                = 0
gettimeofday({1037842857, 51558}, NULL) = 0
sendto(3, "\24Y\1\20\0\1\0\0\0\0\0\0 ECEBFDFEEJEPEOCACAC"..., 50, 0, {sin_family=AF_INET, sin_port=htons(137), sin_addr=inet_addr("129.22.171.31")}}, 16) = 50
gettimeofday({1037842857, 51941}, NULL) = 0
select(5, [3 4], NULL, NULL, {0, 90000}) = 0 (Timeout)
stat64("/var/cache/samba", {st_mode=S_IFDIR|0755, st_size=144, ...}) = 0
open("/var/cache/samba/unexpected.tdb", O_RDONLY|O_LARGEFILE) = 6
read(6, "TDB file\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 168) = 168
fstat64(6, {st_mode=S_IFREG|0644, st_size=8192, ...}) = 0
mmap2(NULL, 8192, PROT_READ, MAP_SHARED, 6, 0) = 0x127000
munmap(0x127000, 8192)                  = 0
close(6)                                = 0
gettimeofday({1037842857, 140957}, NULL) = 0
select(5, [3 4], NULL, NULL, {0, 90000}) = 0 (Timeout)
stat64("/var/cache/samba", {st_mode=S_IFDIR|0755, st_size=144, ...}) = 0
open("/var/cache/samba/unexpected.tdb", O_RDONLY|O_LARGEFILE) = 6
read(6, "TDB file\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 168) = 168
fstat64(6, {st_mode=S_IFREG|0644, st_size=8192, ...}) = 0
mmap2(NULL, 8192, PROT_READ, MAP_SHARED, 6, 0) = 0x127000
munmap(0x127000, 8192)                  = 0
close(6)                                = 0
gettimeofday({1037842857, 232416}, NULL) = 0
select(5, [3 4], NULL, NULL, {0, 90000}) = 0 (Timeout)
stat64("/var/cache/samba", {st_mode=S_IFDIR|0755, st_size=144, ...}) = 0
open("/var/cache/samba/unexpected.tdb", O_RDONLY|O_LARGEFILE) = 6
read(6, "TDB file\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 168) = 168
fstat64(6, {st_mode=S_IFREG|0644, st_size=8192, ...}) = 0
mmap2(NULL, 8192, PROT_READ, MAP_SHARED, 6, 0) = 0x127000
munmap(0x127000, 8192)                  = 0
close(6)                                = 0
gettimeofday({1037842857, 320941}, NULL) = 0
write(1, "name_query failed to find name b"..., 39) = 39
munmap(0x126000, 4096)                  = 0
_exit(0)                                = ?


More information about the samba mailing list