Luca Berra wrote: > On Tue, Jul 08, 2003 at 04:58:29PM +0200, Buchan Milne wrote: >>Luca Berra wrote: >>>> I don't think dhclient should be relied upon, since it would be nice >>>> if the system would handle changing from a static IP to a dynamic >>>> IP. >>> >>> well, we should at least be able to extract info that only dhclient >>> has and put it somewere that can be accessed by ifup-post. >>> >> >>But if it is only going to be info that is in /etc/resolv.conf, why not >> use that? > > well dhcp provides a lot more option than what can be put in resolv.conf >
Makes sense once I see your script, but the point with /etc/resolv.conf is that it is done anyway by ifup/down etc, and it could do something sensible with that if using a static IP, but I guess that applies to a few other things also. >>Does requesting it by name work? Should be "netbios-name-servers" or >> "netbios-dd-server". I had "request netbios-name-servers;", but this is >> to my own dhcp3 server. > > yes, but i have to request all options, like: > request subnet-mask, broadcast-address, time-offset, routers, > domain-name, domain-name-servers, host-name, netbios-name-servers, > ntp-servers; > > (on one line) > and hope you don't ever request an option the blasted 2003 server (i've > found out what it was) does not grok or it will not answer correctly. > It might be nice if you put it somewhere, http://mandrake.vmlinuz.ca might be a good place ... Hmmm, I haven't got access to a 2003 server, so please test some functionality of samba against it at some stage ... I will do some research on what tests would be valuable. >>> I just used this in my /etc/dhclient.conf (to some Windows DHCP/DNS >>> machine): >>> >>> send fqdn.fqdn "pike"; >>> send fqdn.encoded off; >>> send fqdn.server-update on; >>> do-forward-updates on; >>" >> >>If someone could test this against a Windows DNS server (as some things >> look wrong, and the dhclient.conf man page knows nothing about >>"do-forward-updates"). > i did strings on my dhclient binary and i don't have > "do-forward-updates", besides i doubt that using an unqualified name as > "fqdn.fqdn" would give expected results. > I think the fqdn being passed in this case is "pike", see the example in dhclient.conf(5). >>Then, we could consider having an option there to update WINS server IP >> (or do you think the include method is better?). > > well, with the include method and some tricks I can change the > workgroup I appear in, and i believe it is also possible to have a > laptop change domain membership based on location :) Would be possible if you are careful with your secrets.tdb (ie specify path in your smb.conf), but you may get unexpected behaviour with file permissions, unless you use winbind and keep the winbind*.tdb files seperate too, and use seperate winbind (idmap in 3) uid/gid ranges. > Besides the include method does not cost a dime and is harder to break > than changing smb.conf. And would also work for those of us who run 2 copies of samba on the same machine with less effort ;-). I will take a look, but first let me see if I can get an openldap package finished for cooker ... just some minor tweaks to do to %post .... Regards, Buchan
