I am running redhat 7.3 with Samba 2.2.4. I was wondering if there was a way to use Samba to resolve my IPs instead of having to add all the entries to my /etc/hosts file? For instance, I would like to be able to do `ping acormany` instead of `ping <IP Address>`. We are currently using WINS on a Windows box to resolve the IPs. As of right now, I can `ping acormany` on a Windows system, but not on my Redhat 7.3. Can this be resolved through Samba? If so, could someone point me in the right direction? Thanks Adam Cormany __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
Look at the libnss_wins.so module and add wins to your /etc/nsswitch file. Adam Cormany wrote:> > I am running redhat 7.3 with Samba 2.2.4. I was > wondering if there was a way to use Samba to resolve > my IPs instead of having to add all the entries to my > /etc/hosts file? For instance, I would like to be able > to do `ping acormany` instead of `ping <IP Address>`. > We are currently using WINS on a Windows box to > resolve the IPs. As of right now, I can `ping > acormany` on a Windows system, but not on my Redhat > 7.3. Can this be resolved through Samba? If so, could > someone point me in the right direction? > > Thanks > Adam Cormany > > __________________________________________________ > Do You Yahoo!? > LAUNCH - Your Yahoo! Music Experience > http://launch.yahoo.com > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba-- =====================================================================Herb Lewis Silicon Graphics Networking Engineer 1600 Amphitheatre Pkwy MS-510 Strategic Software Organization Mountain View, CA 94043-1351 herb@sgi.com Tel: 650-933-2177 http://www.sgi.com Fax: 650-932-2177 ======================================================================
Ok, I just finished compiling libnss_wins.so: 1) I did a `make nsswitch/libnns_wins.so 2) I found mixed documentation saying to copy libnns_wins.so to /lib, some docs say with the name libnns_wins.so, some with libnns_wins.so.2. I did both just in case:) 3) I added wins to my "hosts:" field in /etc/nsswitch.conf 4) I restarted smbd/nmbd just in case. I still can not `ping acormany` though. Am I missing something? --- Herb Lewis <herb@sgi.com> wrote:> Look at the libnss_wins.so module and add wins to > your > /etc/nsswitch file. > > Adam Cormany wrote: > > > > I am running redhat 7.3 with Samba 2.2.4. I was > > wondering if there was a way to use Samba to > resolve > > my IPs instead of having to add all the entries to > my > > /etc/hosts file? For instance, I would like to be > able > > to do `ping acormany` instead of `ping <IP > Address>`. > > We are currently using WINS on a Windows box to > > resolve the IPs. As of right now, I can `ping > > acormany` on a Windows system, but not on my > Redhat > > 7.3. Can this be resolved through Samba? If so, > could > > someone point me in the right direction? > > > > Thanks > > Adam Cormany > > > > __________________________________________________ > > Do You Yahoo!? > > LAUNCH - Your Yahoo! Music Experience > > http://launch.yahoo.com > > > > -- > > To unsubscribe from this list go to the following > URL and read the > > instructions: > http://lists.samba.org/mailman/listinfo/samba > > -- >=====================================================================> Herb Lewis Silicon> Graphics > Networking Engineer 1600 > Amphitheatre Pkwy MS-510 > Strategic Software Organization Mountain > View, CA 94043-1351 > herb@sgi.com Tel: > 650-933-2177 > http://www.sgi.com Fax: > 650-932-2177 >=====================================================================>> -- > To unsubscribe from this list go to the following > URL and read the > instructions:http://lists.samba.org/mailman/listinfo/samba __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
Do you have a DNS Server ?? A M$ DNS server can be configured to look up names in a WINS db if it doesn't have an entry, that's probably how your windows computer can ping the name. IMHO I don't see what Samba has to do with this? Josh Konkol, CNE MCSE Senior Network Analyst GuideOne Insurance Mail Stop AB-1 515-267-2427 jkonkol@guidemail.com .~. /V\ /( )\ ^^-^^ -----Original Message----- From: Adam Cormany [mailto:acormany@yahoo.com] Sent: Thursday, May 16, 2002 2:49 PM To: Herb Lewis Cc: samba@lists.samba.org Subject: Re: [Samba] Name Resolution, Pinging Ok, I just finished compiling libnss_wins.so: 1) I did a `make nsswitch/libnns_wins.so 2) I found mixed documentation saying to copy libnns_wins.so to /lib, some docs say with the name libnns_wins.so, some with libnns_wins.so.2. I did both just in case:) 3) I added wins to my "hosts:" field in /etc/nsswitch.conf 4) I restarted smbd/nmbd just in case. I still can not `ping acormany` though. Am I missing something? --- Herb Lewis <herb@sgi.com> wrote:> Look at the libnss_wins.so module and add wins to > your > /etc/nsswitch file. > > Adam Cormany wrote: > > > > I am running redhat 7.3 with Samba 2.2.4. I was > > wondering if there was a way to use Samba to > resolve > > my IPs instead of having to add all the entries to > my > > /etc/hosts file? For instance, I would like to be > able > > to do `ping acormany` instead of `ping <IP > Address>`. > > We are currently using WINS on a Windows box to > > resolve the IPs. As of right now, I can `ping > > acormany` on a Windows system, but not on my > Redhat > > 7.3. Can this be resolved through Samba? If so, > could > > someone point me in the right direction? > > > > Thanks > > Adam Cormany > > > > __________________________________________________ > > Do You Yahoo!? > > LAUNCH - Your Yahoo! Music Experience > > http://launch.yahoo.com > > > > -- > > To unsubscribe from this list go to the following > URL and read the > > instructions: > http://lists.samba.org/mailman/listinfo/samba > > -- >=====================================================================> Herb Lewis Silicon> Graphics > Networking Engineer 1600 > Amphitheatre Pkwy MS-510 > Strategic Software Organization Mountain > View, CA 94043-1351 > herb@sgi.com Tel: > 650-933-2177 > http://www.sgi.com Fax: > 650-932-2177 >=====================================================================>> -- > To unsubscribe from this list go to the following > URL and read the > instructions:http://lists.samba.org/mailman/listinfo/samba __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
We do have a DNS, but we do not use it at all for our internal inoffice resolution. We use WINS only for our internal office resolution. --- "Konkol, Josh" <JKonkol@guidemail.com> wrote:> So you don't have a DNS server ?? > > Josh Konkol, CNE MCSE > Senior Network Analyst > GuideOne Insurance > Mail Stop AB-1 > 515-267-2427 > jkonkol@guidemail.com > > .~. > /V\ > /( )\ > ^^-^^ > > > > -----Original Message----- > From: Adam Cormany [mailto:acormany@yahoo.com] > Sent: Thursday, May 16, 2002 3:16 PM > To: Konkol, Josh > Cc: samba@lists.samba.org > Subject: RE: [Samba] Name Resolution, Pinging > > > Your statement is correct about the MS DNS server > can > be configured, but that really isn't my issue. I'm > dealing with trying to get the Redhat Linux 7.3 > system > to be able to ping/resolve hostnames. > > It has to do with Samba for the fact that Samba can > handle the job if set up correctly, which I'm > attempting to do. > > --- "Konkol, Josh" <JKonkol@guidemail.com> wrote: > > Do you have a DNS Server ?? A M$ DNS server can > be > > configured to look up > > names in a WINS db if it doesn't have an entry, > > that's probably how your > > windows computer can ping the name. > > > > IMHO I don't see what Samba has to do with this? > > > > Josh Konkol, CNE MCSE > > Senior Network Analyst > > GuideOne Insurance > > Mail Stop AB-1 > > 515-267-2427 > > jkonkol@guidemail.com > > > > .~. > > /V\ > > /( )\ > > ^^-^^ > > > > > > > > -----Original Message----- > > From: Adam Cormany [mailto:acormany@yahoo.com] > > Sent: Thursday, May 16, 2002 2:49 PM > > To: Herb Lewis > > Cc: samba@lists.samba.org > > Subject: Re: [Samba] Name Resolution, Pinging > > > > > > Ok, I just finished compiling libnss_wins.so: > > 1) I did a `make nsswitch/libnns_wins.so > > 2) I found mixed documentation saying to copy > > libnns_wins.so to /lib, some docs say with the > name > > libnns_wins.so, some with libnns_wins.so.2. I did > > both > > just in case:) > > 3) I added wins to my "hosts:" field in > > /etc/nsswitch.conf > > 4) I restarted smbd/nmbd just in case. > > > > I still can not `ping acormany` though. Am I > missing > > something? > > > > --- Herb Lewis <herb@sgi.com> wrote: > > > Look at the libnss_wins.so module and add wins > to > > > your > > > /etc/nsswitch file. > > > > > > Adam Cormany wrote: > > > > > > > > I am running redhat 7.3 with Samba 2.2.4. I > was > > > > wondering if there was a way to use Samba to > > > resolve > > > > my IPs instead of having to add all the > entries > > to > > > my > > > > /etc/hosts file? For instance, I would like to > > be > > > able > > > > to do `ping acormany` instead of `ping <IP > > > Address>`. > > > > We are currently using WINS on a Windows box > to > > > > resolve the IPs. As of right now, I can `ping > > > > acormany` on a Windows system, but not on my > > > Redhat > > > > 7.3. Can this be resolved through Samba? If > so, > > > could > > > > someone point me in the right direction? > > > > > > > > Thanks > > > > Adam Cormany > > > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > LAUNCH - Your Yahoo! Music Experience > > > > http://launch.yahoo.com > > > > > > > > -- > > > > To unsubscribe from this list go to the > > following > > > URL and read the > > > > instructions: > > > http://lists.samba.org/mailman/listinfo/samba > > > > > > -- > > > > > >=====================================================================> > > Herb Lewis Silicon> > > Graphics > > > Networking Engineer 1600 > > > Amphitheatre Pkwy MS-510 > > > Strategic Software Organization > Mountain > > > View, CA 94043-1351 > > > herb@sgi.com Tel: > > > 650-933-2177 > > > http://www.sgi.com Fax: > > > 650-932-2177 > > > > > >=====================================================================> > >> > > -- > > > To unsubscribe from this list go to the > following > > > URL and read the > > > instructions: > > http://lists.samba.org/mailman/listinfo/samba > > > > > > __________________________________________________ > > Do You Yahoo!? > > LAUNCH - Your Yahoo! Music Experience > > http://launch.yahoo.com > > > > -- > > To unsubscribe from this list go to the following > > URL and read the > > instructions: > > http://lists.samba.org/mailman/listinfo/samba > > > > -- > > To unsubscribe from this list go to the following > > URL and read the > > instructions: > http://lists.samba.org/mailman/listinfo/samba > > > __________________________________________________ > Do You Yahoo!? > LAUNCH - Your Yahoo! Music Experience > http://launch.yahoo.com > > -- > To unsubscribe from this list go to the following > URL and read the > instructions:http://lists.samba.org/mailman/listinfo/samba __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
You might experiment with nmblookup to see if it will provide you with what you want. If you can get the ip's on your linux box with nmblookup netbiosname, you could write a little script to ping for you. Something like this: #!/bin/bash a=`nmblookup $1 | sed -n s/"Got a positive name query response from //p" | \ cut -d" " -f1` ping $a You might find it easy to add all those hosts to your /etc/hosts file with: nmblookup -T "*" and a little editing with vi or sed. YMMV. Joel On Thu, May 16, 2002 at 09:34:22AM -0700, Adam Cormany wrote:> I am running redhat 7.3 with Samba 2.2.4. I was > wondering if there was a way to use Samba to resolve > my IPs instead of having to add all the entries to my > /etc/hosts file? For instance, I would like to be able > to do `ping acormany` instead of `ping <IP Address>`. > We are currently using WINS on a Windows box to > resolve the IPs. As of right now, I can `ping > acormany` on a Windows system, but not on my Redhat > 7.3. Can this be resolved through Samba? If so, could > someone point me in the right direction? > > Thanks > Adam Cormany > > __________________________________________________ > Do You Yahoo!? > LAUNCH - Your Yahoo! Music Experience > http://launch.yahoo.com > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
Then in smb.conf use wins server = <Your internal WINS server> Cheers ------------- Kristyan Osborne IT Technician Longhill High School 01273 391672 ------ Computers are like airconditioners: They stop working properly if you open windows. Win95: A 32-bit patch for a 16-bit GUI shell running on top of an 8-bit operating system written for a 4-bit processor by a 2-bit company who cannot stand 1 bit of competition. -----Original Message----- From: Adam Cormany [mailto:acormany@yahoo.com] Sent: 16 May 2002 21:39 To: Konkol, Josh Cc: samba@lists.samba.org Subject: RE: [Samba] Name Resolution, Pinging We do have a DNS, but we do not use it at all for our internal inoffice resolution. We use WINS only for our internal office resolution. --- "Konkol, Josh" <JKonkol@guidemail.com> wrote:> So you don't have a DNS server ?? > > Josh Konkol, CNE MCSE > Senior Network Analyst > GuideOne Insurance > Mail Stop AB-1 > 515-267-2427 > jkonkol@guidemail.com > > .~. > /V\ > /( )\ > ^^-^^ > > > > -----Original Message----- > From: Adam Cormany [mailto:acormany@yahoo.com] > Sent: Thursday, May 16, 2002 3:16 PM > To: Konkol, Josh > Cc: samba@lists.samba.org > Subject: RE: [Samba] Name Resolution, Pinging > > > Your statement is correct about the MS DNS server > can > be configured, but that really isn't my issue. I'm > dealing with trying to get the Redhat Linux 7.3 > system > to be able to ping/resolve hostnames. > > It has to do with Samba for the fact that Samba can > handle the job if set up correctly, which I'm > attempting to do. > > --- "Konkol, Josh" <JKonkol@guidemail.com> wrote: > > Do you have a DNS Server ?? A M$ DNS server can > be > > configured to look up > > names in a WINS db if it doesn't have an entry, > > that's probably how your > > windows computer can ping the name. > > > > IMHO I don't see what Samba has to do with this? > > > > Josh Konkol, CNE MCSE > > Senior Network Analyst > > GuideOne Insurance > > Mail Stop AB-1 > > 515-267-2427 > > jkonkol@guidemail.com > > > > .~. > > /V\ > > /( )\ > > ^^-^^ > > > > > > > > -----Original Message----- > > From: Adam Cormany [mailto:acormany@yahoo.com] > > Sent: Thursday, May 16, 2002 2:49 PM > > To: Herb Lewis > > Cc: samba@lists.samba.org > > Subject: Re: [Samba] Name Resolution, Pinging > > > > > > Ok, I just finished compiling libnss_wins.so: > > 1) I did a `make nsswitch/libnns_wins.so > > 2) I found mixed documentation saying to copy > > libnns_wins.so to /lib, some docs say with the > name > > libnns_wins.so, some with libnns_wins.so.2. I did > > both > > just in case:) > > 3) I added wins to my "hosts:" field in > > /etc/nsswitch.conf > > 4) I restarted smbd/nmbd just in case. > > > > I still can not `ping acormany` though. Am I > missing > > something? > > > > --- Herb Lewis <herb@sgi.com> wrote: > > > Look at the libnss_wins.so module and add wins > to > > > your > > > /etc/nsswitch file. > > > > > > Adam Cormany wrote: > > > > > > > > I am running redhat 7.3 with Samba 2.2.4. I > was > > > > wondering if there was a way to use Samba to > > > resolve > > > > my IPs instead of having to add all the > entries > > to > > > my > > > > /etc/hosts file? For instance, I would like to > > be > > > able > > > > to do `ping acormany` instead of `ping <IP > > > Address>`. > > > > We are currently using WINS on a Windows box > to > > > > resolve the IPs. As of right now, I can `ping > > > > acormany` on a Windows system, but not on my > > > Redhat > > > > 7.3. Can this be resolved through Samba? If > so, > > > could > > > > someone point me in the right direction? > > > > > > > > Thanks > > > > Adam Cormany > > > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > LAUNCH - Your Yahoo! Music Experience > > > > http://launch.yahoo.com > > > > > > > > -- > > > > To unsubscribe from this list go to the > > following > > > URL and read the > > > > instructions: > > > http://lists.samba.org/mailman/listinfo/samba > > > > > > -- > > > > > >=====================================================================> > > Herb Lewis Silicon> > > Graphics > > > Networking Engineer 1600 > > > Amphitheatre Pkwy MS-510 > > > Strategic Software Organization > Mountain > > > View, CA 94043-1351 > > > herb@sgi.com Tel: > > > 650-933-2177 > > > http://www.sgi.com Fax: > > > 650-932-2177 > > > > > >=====================================================================> > >> > > -- > > > To unsubscribe from this list go to the > following > > > URL and read the > > > instructions: > > http://lists.samba.org/mailman/listinfo/samba > > > > > > __________________________________________________ > > Do You Yahoo!? > > LAUNCH - Your Yahoo! Music Experience > > http://launch.yahoo.com > > > > -- > > To unsubscribe from this list go to the following > > URL and read the > > instructions: > > http://lists.samba.org/mailman/listinfo/samba > > > > -- > > To unsubscribe from this list go to the following > > URL and read the > > instructions: > http://lists.samba.org/mailman/listinfo/samba > > > __________________________________________________ > Do You Yahoo!? > LAUNCH - Your Yahoo! Music Experience > http://launch.yahoo.com > > -- > To unsubscribe from this list go to the following > URL and read the > instructions:http://lists.samba.org/mailman/listinfo/samba __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
He said he is using a M$ WINS server not the samba box. In the smb.conf doc it says the dns proxy setting is only used when the samba server is acting as a WINS server. It also says it is set to yes by default anyway. I think the simplist solutions would be to add DNS to the existing WINS Server and configure it to do lookups in WINS, then set the DNS Server for the Linux box to it's IP Address. Samba has nothing to do with it. Josh Konkol, CNE MCSE Senior Network Analyst GuideOne Insurance Mail Stop AB-1 515-267-2427 jkonkol@guidemail.com .~. /V\ /( )\ ^^-^^ -----Original Message----- From: nj-hotmail [mailto:ntest7@hotmail.com] Sent: Thursday, May 16, 2002 3:25 PM To: samba@lists.samba.org Subject: Re: [Samba] Name Resolution, Pinging how about setting the MS DNS server as the resolver for Unix, and using Dns Proxy = Yes in samba? or did I miss something here? ----- Original Message ----- From: "Adam Cormany" <acormany@yahoo.com> To: "Konkol, Josh" <JKonkol@guidemail.com> Cc: <samba@lists.samba.org> Sent: Thursday, May 16, 2002 3:16 PM Subject: RE: [Samba] Name Resolution, Pinging | Your statement is correct about the MS DNS server can | be configured, but that really isn't my issue. I'm | dealing with trying to get the Redhat Linux 7.3 system | to be able to ping/resolve hostnames. | | It has to do with Samba for the fact that Samba can | handle the job if set up correctly, which I'm | attempting to do. | | --- "Konkol, Josh" <JKonkol@guidemail.com> wrote: | > Do you have a DNS Server ?? A M$ DNS server can be | > configured to look up | > names in a WINS db if it doesn't have an entry, | > that's probably how your | > windows computer can ping the name. | > | > IMHO I don't see what Samba has to do with this? | > | > Josh Konkol, CNE MCSE | > Senior Network Analyst | > GuideOne Insurance | > Mail Stop AB-1 | > 515-267-2427 | > jkonkol@guidemail.com | > | > .~. | > /V\ | > /( )\ | > ^^-^^ | > | > | > | > -----Original Message----- | > From: Adam Cormany [mailto:acormany@yahoo.com] | > Sent: Thursday, May 16, 2002 2:49 PM | > To: Herb Lewis | > Cc: samba@lists.samba.org | > Subject: Re: [Samba] Name Resolution, Pinging | > | > | > Ok, I just finished compiling libnss_wins.so: | > 1) I did a `make nsswitch/libnns_wins.so | > 2) I found mixed documentation saying to copy | > libnns_wins.so to /lib, some docs say with the name | > libnns_wins.so, some with libnns_wins.so.2. I did | > both | > just in case:) | > 3) I added wins to my "hosts:" field in | > /etc/nsswitch.conf | > 4) I restarted smbd/nmbd just in case. | > | > I still can not `ping acormany` though. Am I missing | > something? | > | > --- Herb Lewis <herb@sgi.com> wrote: | > > Look at the libnss_wins.so module and add wins to | > > your | > > /etc/nsswitch file. | > > | > > Adam Cormany wrote: | > > > | > > > I am running redhat 7.3 with Samba 2.2.4. I was | > > > wondering if there was a way to use Samba to | > > resolve | > > > my IPs instead of having to add all the entries | > to | > > my | > > > /etc/hosts file? For instance, I would like to | > be | > > able | > > > to do `ping acormany` instead of `ping <IP | > > Address>`. | > > > We are currently using WINS on a Windows box to | > > > resolve the IPs. As of right now, I can `ping | > > > acormany` on a Windows system, but not on my | > > Redhat | > > > 7.3. Can this be resolved through Samba? If so, | > > could | > > > someone point me in the right direction? | > > > | > > > Thanks | > > > Adam Cormany | > > > | > > > | > __________________________________________________ | > > > Do You Yahoo!? | > > > LAUNCH - Your Yahoo! Music Experience | > > > http://launch.yahoo.com | > > > | > > > -- | > > > To unsubscribe from this list go to the | > following | > > URL and read the | > > > instructions: | > > http://lists.samba.org/mailman/listinfo/samba | > > | > > -- | > > | > | =====================================================================| > > Herb Lewis Silicon | > > Graphics | > > Networking Engineer 1600 | > > Amphitheatre Pkwy MS-510 | > > Strategic Software Organization Mountain | > > View, CA 94043-1351 | > > herb@sgi.com Tel: | > > 650-933-2177 | > > http://www.sgi.com Fax: | > > 650-932-2177 | > > | > | =====================================================================| > > | > > -- | > > To unsubscribe from this list go to the following | > > URL and read the | > > instructions: | > http://lists.samba.org/mailman/listinfo/samba | > | > | > __________________________________________________ | > Do You Yahoo!? | > LAUNCH - Your Yahoo! Music Experience | > http://launch.yahoo.com | > | > -- | > To unsubscribe from this list go to the following | > URL and read the | > instructions: | > http://lists.samba.org/mailman/listinfo/samba | > | > -- | > To unsubscribe from this list go to the following | > URL and read the | > instructions: | http://lists.samba.org/mailman/listinfo/samba | | | __________________________________________________ | Do You Yahoo!? | LAUNCH - Your Yahoo! Music Experience | http://launch.yahoo.com | | -- | To unsubscribe from this list go to the following URL and read the | instructions: http://lists.samba.org/mailman/listinfo/samba | -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba