[opensuse] finding host name of a windows machine
I have DHCP running on my linux server, and it gives out ips. I would like to access all my computers in my network by hostname....but that doesn't seem to work unless I put the IP and host in /etc/hosts.. How can I do this? My DHCP server is my router. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Type hostname at the command prompt. Something that actually makes sense in windows. Mike Quoting "Michael S. Dunsavage" <mikesd1981@verizon.net>:
I have DHCP running on my linux server, and it gives out ips. I would like to access all my computers in my network by hostname....but that doesn't seem to work unless I put the IP and host in /etc/hosts..
How can I do this? My DHCP server is my router. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 7/12/2011 9:21 AM, Michael Harnden wrote:
Type hostname at the command prompt. Something that actually makes sense in windows. Mike Right. That would get me the hostname of the local computer. I don't care if the local computer knows the name. I want to find the remote machine from the linux server. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 12 Jul 2011 19:38:02 +0530, Michael S. Dunsavage <mikesd1981@verizon.net> wrote:
On 7/12/2011 9:21 AM, Michael Harnden wrote:
Type hostname at the command prompt. Something that actually makes sense in windows. Mike Right. That would get me the hostname of the local computer. I don't care if the local computer knows the name. I want to find the remote machine from the linux server.
are the windows machines on your network changing all the time, or is it always the same machines around? if the latter, i think setting up static IP addresses for them and fixing these in your /etc/hosts file would be the easiest solution. if there are different machines coming thru' all the time, i'd set up a DNS server; not too difficult either. -- phani. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Michael S. Dunsavage wrote:
I have DHCP running on my linux server, and it gives out ips. I would like to access all my computers in my network by hostname....but that doesn't seem to work unless I put the IP and host in /etc/hosts..
How can I do this? My DHCP server is my router.
You need to set up a name server (DNS). -- Per Jessen, Zürich (29.0°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 7/12/2011 9:43 AM, Per Jessen wrote:
Michael S. Dunsavage wrote:
I have DHCP running on my linux server, and it gives out ips. I would like to access all my computers in my network by hostname....but that doesn't seem to work unless I put the IP and host in /etc/hosts..
How can I do this? My DHCP server is my router. You need to set up a name server (DNS).
The router doesn't support that function. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Michael S. Dunsavage said the following on 07/12/2011 10:11 AM:
On 7/12/2011 9:43 AM, Per Jessen wrote:
Michael S. Dunsavage wrote:
I have DHCP running on my linux server, and it gives out ips. I would like to access all my computers in my network by hostname....but that doesn't seem to work unless I put the IP and host in /etc/hosts..
How can I do this? My DHCP server is my router. You need to set up a name server (DNS).
The router doesn't support that function.
Yes but you say
I have DHCP running on my linux server,
So you can run DNS on your linux server too -- An NSA-employed acquaintance, when asked whether the government can crack DES traffic, quipped that real systems are so insecure that they never need to bother. Unfortunately, there are no easy recipes for making a system secure, no substitute for careful design and critical, ongoing scrutiny. -- Matt Blaze in AC2 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 12/07/11 16:52, Anton Aylward wrote:
Michael S. Dunsavage said the following on 07/12/2011 10:11 AM:
On 7/12/2011 9:43 AM, Per Jessen wrote:
Michael S. Dunsavage wrote:
I have DHCP running on my linux server, and it gives out ips. I would like to access all my computers in my network by hostname....but that doesn't seem to work unless I put the IP and host in /etc/hosts..
How can I do this? My DHCP server is my router. You need to set up a name server (DNS).
The router doesn't support that function.
Yes but you say
I have DHCP running on my linux server,
So you can run DNS on your linux server too
Why not dnsmasq wich would do dns and dhcp. DC -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 7/12/2011 10:52 AM, Anton Aylward wrote:
Michael S. Dunsavage said the following on 07/12/2011 10:11 AM:
On 7/12/2011 9:43 AM, Per Jessen wrote:
Michael S. Dunsavage wrote:
I have DHCP running on my linux server, and it gives out ips. I would like to access all my computers in my network by hostname....but that doesn't seem to work unless I put the IP and host in /etc/hosts..
How can I do this? My DHCP server is my router. You need to set up a name server (DNS).
The router doesn't support that function. Yes but you say
I have DHCP running on my linux server, So you can run DNS on your linux server too
My fault. I do NOT have DHCP on my linux server, I have it running on my router. I typed what I thought, not what I meant. The last line of my original email clarified. I should have proof read. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Michael S. Dunsavage wrote:
On 7/12/2011 9:43 AM, Per Jessen wrote:
Michael S. Dunsavage wrote:
I have DHCP running on my linux server, and it gives out ips. I would like to access all my computers in my network by hostname....but that doesn't seem to work unless I put the IP and host in /etc/hosts..
How can I do this? My DHCP server is my router. You need to set up a name server (DNS).
The router doesn't support that function.
So you'll have to run it elsewhere - any Linux-box will do. -- Per Jessen, Zürich (31.2°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Michael S. Dunsavage wrote:
The router doesn't support that function.
It doesn't have to. You can run a DNS server on any computer. Just configure the DHCP server to point to it. Also, you can run your DHCP server on any computer too and get more flexibility than you do with consumer level routers. My firewall/router is an old computer running openSUSE 11.3. It also runs a DHCP server, DNSMasq, VPN and a 6in4 tunnel for access to IPv6. DNSMasq can handle both IPv4 & IPv6 addresses. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Michael S. Dunsavage said the following on 07/12/2011 08:48 AM:
I have DHCP running on my linux server, and it gives out ips. I would like to access all my computers in my network by hostname....but that doesn't seem to work unless I put the IP and host in /etc/hosts..
How can I do this? My DHCP server is my router.
(You seem to contradict yourself: Is the DHCP server on the router or the linux server?) On the face of it, it sounds like you need a (local) DNS server. HOWEVER: I'm guessing since your description is sparse and you seem concerned about DHCP - which is not about name <-> IP address mapping but about IP address assignment. On my HOME LAN I have both DHCP and DNS. It is possible for DHCP to supply information to DNS, but that isn't a setup for beginners and there's no way I can be sure *YOUR* router's DHCP capability can do that. So what I'd suggest is this: EITHER Don't use DHCP. Use static addressing for all devices on your LAN. OR Do what pretty much amount to the same thing. My laptop gets it address via DHCP but the DHCP server is set up to supply the same IP address to the laptop every time, as determined by the MAC address of the laptop's Ethernet card. As far as I have seen even the cheapest LinkSys wifi routers for home use have that capability You can then tie down the name name <-> IP address mapping as if you were using static addressing. However if I take my laptop elsewhere, it is still using DHCP and in another setting it will get the IP address from that context. Hopefully whoever set up the DHCP server also set it up to hand out suitable routing and DNS information as well :-) I get the best of both worlds :-) There are excellent books on setting up DNS and DHCP from O'Reilly. Sidebar: although my routers can support DHCP I don't use that capability. I have a DHCP as well as a DNS server on my otherwise underutilized mail server on my home LAN. No, they are not running in virtual machines, they are running Chrooted, which is a LOT more efficient. Even so, the machine has a peak load average the never seems to exceed 0.5 (compared to my dual core plus lots of memory laptop which often exceeds 5.0). The server is and old Dell, single core 1GHz Celeron. The server also runs NFS and SAMBA for other machines on the net. It handles all this quite reliably and with less problems than I see friends who try to do the same with Windows and/or Virtual machines. No doubt experience has something to do with it, but lets face it, these are all old, and except for SAMBA, *NIX applications that have been around since before Windows. Many of them are "the backbone of the Internet" and were before Bill Gates discovered IP networking. Its not as if they are unchanged, they have 'grown up'. But they seem remarkably easy to deploy under Linux even without the Windows-style GUIs. -- "Ahhh. A man with a sharp wit. Someone ought to take it away from him before he cuts himself." - Peter da Silva -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 7/12/2011 10:13 AM, Anton Aylward wrote:
EITHER
Don't use DHCP. Use static addressing for all devices on your LAN.
That gets complicated after a while because I have friends that come in w/ there equipment and I don't want to have to set up static IPs all the time on their phones/laptops etc.
OR
Do what pretty much amount to the same thing. My laptop gets it address via DHCP but the DHCP server is set up to supply the same IP address to the laptop every time, as determined by the MAC address of the laptop's Ethernet card. Yup, did that. However, both options are limited to my personal hardware already here. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Michael S. Dunsavage said the following on 07/12/2011 11:25 AM:
On 7/12/2011 10:13 AM, Anton Aylward wrote:
EITHER
Don't use DHCP. Use static addressing for all devices on your LAN.
That gets complicated after a while because I have friends that come in w/ there equipment and I don't want to have to set up static IPs all the time on their phones/laptops etc.
Yup! That's the situation I'm in so the "OR" is what what I do and it works well.
OR
Do what pretty much amount to the same thing. My laptop gets it address via DHCP but the DHCP server is set up to supply the same IP address to the laptop every time, as determined by the MAC address of the laptop's Ethernet card.
Yup, did that. However, both options are limited to my personal hardware already here.
I'm not sure what you are saying here. I have fixed mappings for my 'known' equipment in the range xx.xx.xx.10-20 and the DHCP "Pool" for allocation of "other" incidental "visitor" devices is xx.xx.xx.100-200 Could you clarify what your problem is? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 7/12/2011 11:54 AM, Anton Aylward wrote:
I'm not sure what you are saying here. I have fixed mappings for my 'known' equipment in the range xx.xx.xx.10-20 and the DHCP "Pool" for allocation of "other" incidental "visitor" devices is xx.xx.xx.100-200
Could you clarify what your problem is?
Essentially I want to see who is on my network by hostname. So if I open up Kong or Dolphin, and click on Network and then my Network name, I can see by hostname. ie: if my friend brings his laptop, I don't want to have to set a static ip on his machine and edit /etc/hosts. I want to be able to access his machine by hostname. This looks promising http://www.linuxquestions.org/questions/linux-networking-3/ping-netbios-name... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I'm not sure what you are saying here. I have fixed mappings for my 'known' equipment in the range xx.xx.xx.10-20 and the DHCP "Pool" for allocation of "other" incidental "visitor" devices is xx.xx.xx.100-200
Essentially I want to see who is on my network by hostname. So if I open up Kong or Dolphin, and click on Network and then my Network name, I can see by hostname.
ie: if my friend brings his laptop, I don't want to have to set a static ip on his machine and edit /etc/hosts. I want to be able to access his machine by hostname.
This looks promising http://www.linuxquestions.org/questions/linux-networking-3/ping-netbios-name...
I'm not sure this is a 100% fix for every device, every time. it also means that you'll need to add extra services (perhaps? maybe you're already running all the samba daemons). the only way that _really_ makes sense to me is to put in statics, perhaps some static dhcp assignments (e.g. mac dd:ee:aa:dd:00:00 always gets 10.1.1.200, bb:ee:ee:ff:00:00 gets 10.1.1.205, and unknowns get something in the range of 10.1.1.100-120, then have DNS set the names (or use /etc/hosts), etc etc. using this wins method sounds like it'll work with windoze based stuff (and maybe that's all you care about and so it'd be close enough), but I suspect there will be some pitfalls -- Even the Magic 8 ball has an opinion on email clients: Outlook not so good. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 13/07/11 01:11, Michael S. Dunsavage wrote:
On 7/12/2011 11:54 AM, Anton Aylward wrote:
I'm not sure what you are saying here. I have fixed mappings for my 'known' equipment in the range xx.xx.xx.10-20 and the DHCP "Pool" for allocation of "other" incidental "visitor" devices is xx.xx.xx.100-200
Could you clarify what your problem is?
Essentially I want to see who is on my network by hostname. So if I open up Kong or Dolphin, and click on Network and then my Network name, I can see by hostname.
ie: if my friend brings his laptop, I don't want to have to set a static ip on his machine and edit /etc/hosts. I want to be able to access his machine by hostname.
This looks promising http://www.linuxquestions.org/questions/linux-networking-3/ping-netbios-name...
mDNS / Zeroconf (avahi on Linux, Bonjour on MacOS) is supposed to provide this type of functionality across OS's from what I understand. You will already have it running but only in service discovery mode. I don't know how to set it up to do name resolution myself, but I'm sure with some googleing you'll find out. I think it may have something to do with nss-mdns? Regards, Tejas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Michael S. Dunsavage wrote:
That gets complicated after a while because I have friends that come in w/ there equipment and I don't want to have to set up static IPs all the time on their phones/laptops etc.
You can have both static addresses and DHCP on the same network. On my home network, anything that's permanently connected has a static address and portable devices, including my notebook, smart phone and guest's computers use DHCP. My laptop and smart phone also have a fixed address, by configuring the DHCP server to assign a specific IP address to the MAC address. Just make sure your static addresses and DHCP do not overlap. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Michael S. Dunsavage wrote:
I have DHCP running on my linux server, and it gives out ips. I would like to access all my computers in my network by hostname....but that doesn't seem to work unless I put the IP and host in /etc/hosts..
How can I do this? My DHCP server is my router.
There are a few different methods. One it to use MAC addresses to specify IP address and then use a DNS server (I use DNSMasq) or you could use the host name option to specify the IP address and again a DNS. I use the MAC address method. Also, you can configure DNSMasq to read the hosts file on the server for local addresses. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (9)
-
Anton Aylward
-
Dave Cotton
-
James Knott
-
Michael Harnden
-
Michael S. Dunsavage
-
Per Jessen
-
phanisvara das
-
Tejas Guruswamy
-
zGreenfelder