I have a network with RH7.2 (netbois name "server"), Mandrake 8.1 ("Linuxbox"), Smoothwall ("Smoothwall"), WinNT ("di-bosco"), Win 98 ("robertw" & "Nicole") x 2 and Win 2k ("DiBosco2k"). Smoothwall is the DHCP server. Why would it be that all the Windows machines can ping to a netbios name, eg ping server, ping Linuxbox etc, but non of the Linux based machines can? Linux machines all say unknown host machinename What do I have read up on to make this work on the linux machines as well? All the machines bar Smoothwall and RH server are dynamic IP addresses, I am under the impression this makes things somewhat more complicated! Cheers, Rob
Robert As you have noticed, aren't those Win PCs clever ... They magically "resolve" nodenames to IP addresses via NetBIOS. Whereas your boring old Linux boxen follow the standard way, which is to use host/NIS/BIND etc etc What you need is a /etc/hosts file populated with IP address to names but you use DHCP, so you will have to use "Dynamic DNS". Now in theory bind 9 and dhcpd 3 can do this, both of which are on your Smoothwall box (assuming current version of SW). Docs are on ISC's web site along with the source code or failing that try Linuxdoc Cheers Jon G>>> Robert Wood <Robert.Wood@apostrophe.org.uk> 13/02/2002 23:42:32 >>>I have a network with RH7.2 (netbois name "server"), Mandrake 8.1 ("Linuxbox"), Smoothwall ("Smoothwall"), WinNT ("di-bosco"), Win 98 ("robertw" & "Nicole") x 2 and Win 2k ("DiBosco2k"). Smoothwall is the DHCP server. Why would it be that all the Windows machines can ping to a netbios name, eg ping server, ping Linuxbox etc, but non of the Linux based machines can? Linux machines all say unknown host machinename What do I have read up on to make this work on the linux machines as well?A ll the machines bar Smoothwall and RH server are dynamic IP addresses, I am under the impression this makes things somewhat more complicated! Cheers, Rob -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
DHCP is only Dynamic Host Configuration Protocol. This is the service that *assigns* IP addresses to machines as needed. This service does not provide name resolution. You will either need to run a WINS (Windows Internet Name Service) server (if your linux machines can use wins), or a DNS (Domain Name Service) server. Either setup your machines to auto register with this server or add the ip entries yourself. If you plan on continuing to get IP addresses from DHCP, you will need to configure the clients to auto register with the service. -Dan -----Original Message----- From: Robert Wood [mailto:Robert.Wood@apostrophe.org.uk] Sent: Wednesday, February 13, 2002 6:43 PM To: samba@lists.samba.org Subject: [Samba] Netbios name resolution with DHCP I have a network with RH7.2 (netbois name "server"), Mandrake 8.1 ("Linuxbox"), Smoothwall ("Smoothwall"), WinNT ("di-bosco"), Win 98 ("robertw" & "Nicole") x 2 and Win 2k ("DiBosco2k"). Smoothwall is the DHCP server. Why would it be that all the Windows machines can ping to a netbios name, eg ping server, ping Linuxbox etc, but non of the Linux based machines can? Linux machines all say unknown host machinename What do I have read up on to make this work on the linux machines as well? All the machines bar Smoothwall and RH server are dynamic IP addresses, I am under the impression this makes things somewhat more complicated! Cheers, Rob -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Note also that if your machine's hostname differs from it's netbios name (ie you have setup a netbios name in smb.conf), you will still not be able to ping it with it's netbios name. Also, if you use WINS, but not DNS, you will still only be able to ping by name from windows. That is, unless you use nss_wins. You should either add "nsswitch/libnss_wins.so" as an argument to your make command for samba, or grab RPMs (for you mandrake box at least) at http://ranger.dnsalias.com/mandrake/samba Note that you then need to have WINS running on one machine (a samba box with "wins support = yes" is fine), and any other machine using nss_wins needs to have a wins server defined in smb.conf "wins server = IP.ADD.RE.SS" Dynamic IP addresses only makes dns (usually not WINS) more complicated (you would probably want to setup dynamic DNS with bind 9.x and dhcp 3.x - if you do, let me know how, I'm having trouble with this) Buchan | Message: 22 | From: "Thomas, Daniel J." <Daniel.Thomas@jhuapl.edu> | To: "'Robert.Wood@apostrophe.org.uk'" <Robert.Wood@apostrophe.org.uk>, | samba@lists.samba.org | Subject: RE: [Samba] Netbios name resolution with DHCP | Date: Thu, 14 Feb 2002 08:34:38 -0500 | | DHCP is only Dynamic Host Configuration Protocol. This is the service that | *assigns* IP addresses to machines as needed. This service does not provide | name resolution. You will either need to run a WINS (Windows Internet Name | Service) server (if your linux machines can use wins), or a DNS (Domain Name | Service) server. Either setup your machines to auto register with this | server or add the ip entries yourself. If you plan on continuing to get IP | addresses from DHCP, you will need to configure the clients to auto register | with the service. | -Dan | | -----Original Message----- | From: Robert Wood [mailto:Robert.Wood@apostrophe.org.uk] | Sent: Wednesday, February 13, 2002 6:43 PM | To: samba@lists.samba.org | Subject: [Samba] Netbios name resolution with DHCP | | | I have a network with RH7.2 (netbois name "server"), Mandrake 8.1 | ("Linuxbox"), Smoothwall ("Smoothwall"), WinNT ("di-bosco"), Win 98 | ("robertw" & "Nicole") x 2 and Win 2k ("DiBosco2k"). | | Smoothwall is the DHCP server. | | Why would it be that all the Windows machines can ping to a netbios name, eg | | ping server, ping Linuxbox etc, but non of the Linux based machines can? | Linux machines all say | | unknown host machinename | | What do I have read up on to make this work on the linux machines as well? | All the machines bar Smoothwall and RH server are dynamic IP addresses, I am | | under the impression this makes things somewhat more complicated! | | Cheers, | | Rob | - -- |----------------Registered Linux User #182071-----------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone * Work +27 82 472 2231 * +27 21 8828820x202 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/gpg.key -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8a8+rrJK6UGDSBKcRAoRsAKCaOhpvkxyBPqqZaYjXlfcU1kb1rwCfbXrk w/hHInUEA+kuj4y9q8dbbWg=Qvjr -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Robert Wood wrote: | >> Note that you then need to have WINS running on one machine (a samba box | with "wins support = yes" is fine), and any other machine using nss_wins | needs to have a wins server defined in smb.conf "wins server = IP.ADD.RE.SS" | | Dynamic IP addresses only makes dns (usually not WINS) more complicated (you | would probably want to setup dynamic DNS with bind 9.x and dhcp 3.x - if you | do, let me know how, I'm having trouble with this) << | | Thanks for everyone's help. | | Am I right in thinking that WINS is the Windows way of resolving dynamic IP | addresses to netbios names? | Not really, WINS is one way of resolving a netbios name to an IP address and the reverse. The other ways are by lmhosts files and by broadcast (works only in one subnet). With nss_wins, wins is now available for unix also. | I've installed nss_wins and now I can ping the *Linux* machines on the | network but not the Windows machines! (I also had to add wins to the hosts | section of nsswitch.conf to make it work.) That should have worked before anyway. If you can't ping your windows machines by netbios name, and nss_wins is setup correctly, then the chances are that your windows machines aren't setup for wins. You either need to do this manually on each machine, or do it by dhcp by adding something like the following to dhcpd.conf (inside your subnet "stanza": ~ option netbios-name-servers xxx.xxx.xxx.17, xxx.xxx.xxx.87; ~ option netbios-dd-server xxx.xxx.xxx.17, xxx.xxx.xxx.87; ~ option netbios-node-type 4; | | I've added wins support to the smb.conf file on the Red Hat server which | *isn't* the DHCP server, is that daft? The Smoothwall server is easy to set | up as the DHCP server, which is why I chose to use that thather than the RH | machine. | No, as long as the box running wins has a static IP (even if it is by dhcp, but you would then reserve it's IP based on MAC address). | So, any ideas why I can ping the Linux machi8nes but not the Windows | machines?! You might want to check that you can find the windows machines by wins first, before you check nss_wins: nmblookup -U <IP of WINS server> -R <netbios name of machine> If that works, then nss_wins should work. - -- |----------------Registered Linux User #182071-----------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone * Work +27 82 472 2231 * +27 21 8828820x202 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/gpg.key -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8bMzsrJK6UGDSBKcRAgfeAJ4qmbTAb31ueVDDspN8lcyUMY1VjQCghCl/ iUVGW3pQYgBohxpb4r3iiNY=glYH -----END PGP SIGNATURE-----