[Samba] DNS proxy is broken in 3.0.2a?
Dmitry Melekhov
dm at belkam.com
Tue Mar 9 05:26:27 GMT 2004
Gerald (Jerry) Carter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Dmitry Melekhov wrote:
>
> | But, if wins replication is still not supported, is there
> | any way to change wins info without nmbd restart?
> | We run samba in large enough network ( we are oil company ;-) ),
> | and we use dns proxy as wins repication replacement...
>
> I just tried to reproduce this and it works ok for me. Would
> you send me you smb.conf and possibly a level 10 debug log from
> nmbd ? Thanks.
>
Hello!
Looks that I were wrong, when I said that all is OK :-(
Now I can successefully find host with nslookup:
vader:~ # nslookup center
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: center.p98.belkam.com
Address: 192.168.22.224
but it doesn't work with wins:
vader:~ # nmblookup -R -U 192.168.22.220 center
Unknown parameter encountered: "domain admin group"
Ignoring unknown parameter "domain admin group"
params.c:Parameter() - Ignoring badly formed line in configuration file:
use client driver
Unknown parameter encountered: "client code page"
Ignoring unknown parameter "client code page"
Unknown parameter encountered: "character set"
Ignoring unknown parameter "character set"
querying center on 192.168.22.220
name_query failed to find name center
vader:~ #
Here is part of nmbd.log with log level =10 :
[2004/03/09 09:09:41, 10] lib/util_sock.c:read_udp_socket(188)
read_udp_socket: lastip 192.168.6.10 lastport 59948 read: 50
[2004/03/09 09:09:41, 10] libsmb/nmblib.c:parse_nmb(473)
parse_nmb: packet id = 27393
[2004/03/09 09:09:41, 5] libsmb/nmblib.c:read_packet(722)
Received a packet of len 50 from (192.168.6.10) port 59948
[2004/03/09 09:09:41, 4] libsmb/nmblib.c:debug_nmb_packet(106)
nmb packet from 192.168.6.10(59948) header: id=27393 opcode=Query(0)
response=
No
header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=No
header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=0
question: q_name=SGTRANS<00> q_type=32 q_class=1
[2004/03/09 09:09:41, 3]
nmbd/nmbd_winsserver.c:wins_process_name_query_request(
1445)
wins_process_name_query: name query for name SGTRANS<00> from IP
192.168.6.10
[2004/03/09 09:09:41, 10] nmbd/nmbd_subnetdb.c:namelist_entry_compare(69)
nmbd_subnetdb:namelist_entry_compare()
1 == memcmp( "SGTRANS<00>", "ISA<20>", 84 )
[2004/03/09 09:09:41, 10] nmbd/nmbd_subnetdb.c:namelist_entry_compare(69)
nmbd_subnetdb:namelist_entry_compare()
1 == memcmp( "SGTRANS<00>", "LEX<00>", 84 )
[2004/03/09 09:09:41, 10] nmbd/nmbd_subnetdb.c:namelist_entry_compare(69)
nmbd_subnetdb:namelist_entry_compare()
1 == memcmp( "SGTRANS<00>", "LEX<20>", 84 )
[2004/03/09 09:09:41, 10] nmbd/nmbd_subnetdb.c:namelist_entry_compare(69)
nmbd_subnetdb:namelist_entry_compare()
-1 == memcmp( "SGTRANS<00>", "USER<03>", 84 )
[2004/03/09 09:09:41, 10] nmbd/nmbd_subnetdb.c:namelist_entry_compare(69)
nmbd_subnetdb:namelist_entry_compare()
1 == memcmp( "SGTRANS<00>", "P100<00>", 84 )
[2004/03/09 09:09:41, 10] nmbd/nmbd_subnetdb.c:namelist_entry_compare(69)
nmbd_subnetdb:namelist_entry_compare()
-1 == memcmp( "SGTRANS<00>", "TOMCAT<20>", 84 )
[2004/03/09 09:09:41, 10] nmbd/nmbd_subnetdb.c:namelist_entry_compare(69)
nmbd_subnetdb:namelist_entry_compare()
1 == memcmp( "SGTRANS<00>", "SBBELKAM<20>", 84 )
[2004/03/09 09:09:41, 10] nmbd/nmbd_subnetdb.c:namelist_entry_compare(69)
nmbd_subnetdb:namelist_entry_compare()
-1 == memcmp( "SGTRANS<00>", "SKA1<00>", 84 )
[2004/03/09 09:09:41, 10] nmbd/nmbd_subnetdb.c:namelist_entry_compare(69)
nmbd_subnetdb:namelist_entry_compare()
0 == memcmp( "SGTRANS<00>", "SGTRANS<00>", 84 )
[2004/03/09 09:09:41, 9] nmbd/nmbd_namelistdb.c:find_name_on_subnet(124)
find_name_on_subnet: on subnet WINS_SERVER_SUBNET - found name
SGTRANS<00> sou
rce=3
[2004/03/09 09:09:41, 3]
nmbd/nmbd_winsserver.c:wins_process_name_query_request(
1491)
wins_process_name_query: name query for name SGTRANS<00> - name
expired. Retur
ning fail.
nmbd founds name, but, I don't understand why, resturns it as expired...
There is no SGTRANS in wins.dat, I can't see it in net cache list
(btw, I don't know what this command do ;-) )
but, sometimes I see this name in log.nbmd:
SGTRANS<00> TTL = Mon Mar 8 11:08:08 2004 10.1.1.6 4
SGTRANS<20> TTL = Mon Mar 8 11:10:43 2004 10.1.1.6 4
Current date is:
vader:/var/log/samba # LANG=C date
Tue Mar 9 09:26:05 SAMT 2004
More information about the samba-technical
mailing list