[Samba] Nmbd: Static Mappings - To replace a microsoft server.

nazrul at heitech.com.my nazrul at heitech.com.my
Wed Apr 30 13:35:46 GMT 2003

I'm trying to share my host file to be included in #INCLUDE section in
lmhosts at client side, so that I just have to maintain on a single server.
Tell me if you had any better ideas.   ;)

|         |           "Matthew Western"                       |
|         |           <mwestern at affairs.net.au>               |
|         |           Sent by:                                |
|         |           samba-bounces+nazrul=heitech.com.my at list|
|         |           s.samba.org                             |
|         |                                                   |
|         |                                                   |
|         |           29/04/2003 11:25                        |
|         |           Please respond to mwestern              |
|         |                                                   |
  |                                                                                              |
  |       To:       "'Samba (E-mail)'" <samba at lists.samba.org>                                   |
  |       cc:                                                                                    |
  |       Subject:  [Samba] Nmbd:  Static Mappings - To replace a microsoft server.              |

Hi All,
I've currently got a samba server setup as a secondary WINS server (on the
client side) and have the following in the smb.conf file:
             wins support = yes
             dns proxy = yes
             name resolve order = wins dns hosts lmhosts

and have a number of entries in my /etc/hosts file:            server1            server2              server3

and these resolve fine.  This is the only way I could find to do static
mappings the same as M$ WINS server did.

Now, the next problem I have it I need to replicate the static mappings,
Domain entry.  ie, Static Mappings, Add Mapping, Select Domain and start
plonking addresses of your domain controllers.

In short how?  I don't think my settings above are ideal but I've not found
out what is the way to do it.

Why static addresses you might ask (like many others I've talked to).

1.  for Servers of which I don't have control (on a WAN)
2.  for Servers that don't have SMB setup.  ie, web servers, routers,
printers anything that comes to mind.
3.  for NAT addresses to the internet.

I realize i can do 2 & 3 with dynamic DNS or xDNS or whatever but I don't
want to.  :)  more reasons which I can't be bothered explaining here.

I guess I should have a look at the Samba 3.0.0 and see if this is
fixed/supported or whatever, but I'm not a programmer and things like CVS
scare me  :)   i do however read Man pages and google till i'm purple in

Anyway, just some thoughts.  Comments anyone?


To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list