On Sat, 1 Nov 1997 02:23:23 +1100, you wrote:
>Thanks for using NetForward!
>http://www.netforward.com
>v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v
>
>Two questions:
>
>1) Is there any way to get nmbd to always reply and do it's lookup using
a
>DNS query?
>
>2) Is it possible to turn OFF dns caching in NMBD?
>
>Here is an example of two queries from the log:
>
>Successful:
>--------------------------------
>10/31/97 09:12:34 received a packet of len 50 from (131.151.37.9) port 1444
>nmb packet from 131.151.37.9(1444) header: id=24148 opcode=Query(0)
>response=No
> header: flags: bcast=Yes rec_avail=No rec_des=Yes trunc=No auth=No
> header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=0
> question: q_name=INFINITY(0) q_type=32 q_class=1
>Name query from 131.151.37.9 for name INFINITY<0x0>
>find_name_on_subnet: on subnet 131.151.37.255 - found name INFINITY(00)
>source=3
>OK 131.151.37.9
>replying netbios packet: nmb_query INFINITY(0) 131.151.37.9
>nmb packet from 131.151.37.9(1444) header: id=24148 opcode=Query(0)
>response=Yes
> header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=Yes
> header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
> answers: nmb_name=INFINITY(0) rr_type=32 rr_class=1 ttl=42723
> answers 0 char D...%. hex 440083972509
>nmb packet from 131.151.37.9(1444) header: id=24148 opcode=Query(0)
>response=Yes
> header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=Yes
> header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
> answers: nmb_name=INFINITY(0) rr_type=32 rr_class=1 ttl=42723
> answers 0 char D...%. hex 440083972509
>10/31/97 09:12:34 sending a packet of len 62 to (131.151.37.9) on port 1444
>----------------------------------
>
>
>Unsuccessful:
>----------------------------------
>10/31/97 09:12:48 received a packet of len 50 from (131.151.37.9) port 1445
>nmb packet from 131.151.37.9(1445) header: id=24163 opcode=Query(0)
>response=No
> header: flags: bcast=Yes rec_avail=No rec_des=Yes trunc=No auth=No
> header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=0
> question: q_name=STOOGES.CC(0) q_type=32 q_class=1
>Name query from 131.151.37.9 for name STOOGES.CC<0x0>
>find_name_on_subnet: on subnet 131.151.37.255 - name STOOGES.CC(00) NOT
FOUND
>find_name_on_subnet: on subnet 255.255.255.255 - found name
>STOOGES.CC(00) source=4
>Found DNS cache entry STOOGES.CC(0)
>----------------------------------
>
>Stooges does not have a nmbd or smbd running on it, but I do want it to
>resolve.
>
>I have had odd behavior with this, where nmbd doesn't always seem to
>work. In one case, when I brought up the nmbd on a ethernet segment, it
>made all the PC's on that segment unable to browse the network at all.
>
>Our setup:
>
>Multiple subnets. All the subnets are forwarding broadcasts to one
>specific host that is running an nmbd.
>
>There are lots of machines on the network out of our control, so it is
>likely that there will be other nmbds and NT stations, etc. I'd like to
>be able to override all of them and force our central server to be the
>master server.
>
>Any ideas?
>
Setting 'os level = 255' and 'prefered master = yes' will
prevent it from
being de-elected, however should it go down for a while another samba/win
NT system will probably take over, when it finds at a regular election that
it has the highest os level. When the server comes back up it will force an
election, however should the samba machine which has taken over have an os
level of 255 and prefered master set to yes it will not be able to de-elect
this machine, once the offending nmbd is killed then your server will take
over again. This should guard against someone accidentally setting up a
machine to be local/domain master, however should someone malicously select
os level = 255 then there isn't much you can do about them winning
elections when your server goes down and staying elected when it comes back
up.
At least this is how I understand it
---
Yours Sincerely,
,
() o /| | |
/\ _ _ _ __ _ _ |___| __| _
/ \| / |/ |/ | / \_/ |/ | | |\| | / | |/
/(__/|_/ | | |_/\__/ | |_/ | |/ \_/|/\_/|_/|__/
/|
\|
(Simon Hyde)