My problem is not unique, but I still don't have a solution. My home computers obtain IP addresses from DHCP server on my home router. The addresses change.
I could force fixed addresses, but I wonder if there is a more elegant solution. I could create dummy network devices with fixed addresses, but
that is more or less the same, but more complicated.
There is a daemon named NMBD which comes with Samba. It does the right
thing, only for NetBIOS protocol. Clients register with it when they
'come alive'. My guess is that NMBD requires fixed IP address, too ?
Is there any way I could put NMBD in the good use ?
Therefore, if you want to mix Linux and Windows on the same network,
you either have to use Samba on the Linux machines - which means the daemons to offer shares, and the client to connect to shares offered
by others -
do something about the router - which means either--
replacing it (but how do you know in advance that the replacement will
be any better), or reflashing it with open source firmware, such as
OpenWRT, the DNS of which can be configured to work properly.
My problem is not unique, but I still don't have a solution. My home computers obtain IP addresses from DHCP server on my home router. The addresses change.
I could force fixed addresses, but I wonder if there is a more elegant solution. I could create dummy network devices with fixed addresses, but
that is more or less the same, but more complicated.
There is a daemon named NMBD which comes with Samba. It does the right
thing, only for NetBIOS protocol. Clients register with it when they
'come alive'. My guess is that NMBD requires fixed IP address, too ?
Is there any way I could put NMBD in the good use ?
My problem is not unique, but I still don't have a solution. My home computers obtain IP addresses from DHCP server on my home router. The addresses change.
I could force fixed addresses, but I wonder if there is a more elegant solution. I could create dummy network devices with fixed addresses, but
that is more or less the same, but more complicated.
My problem is not unique, but I still don't have a solution. My home computers obtain IP addresses from DHCP server on my home router. The addresses change.
I could force fixed addresses, but I wonder if there is a more elegant solution. I could create dummy network devices with fixed addresses, but
that is more or less the same, but more complicated.
J.O. Aho wrote:
On 10/29/2015 12:08 PM, askfor wrote:
My problem is not unique, but I still don't have a solution. My home
computers obtain IP addresses from DHCP server on my home router. The
addresses change.
I could force fixed addresses, but I wonder if there is a more elegant
solution. I could create dummy network devices with fixed addresses, but >>> that is more or less the same, but more complicated.
You can let the dhcp server update the nameserver with help of the
ddns-update-style see this Ubuntu documentation for how to do it:
http://askubuntu.com/questions/162265/how-to-setup-dhcp-server-and-dynamic-dns-with-bind
Don't forget to provide which nameserver the dhcp clients should use, if
they use another nameserver than the one working for your dhcp server,
it will not work.
You are not THAT Aho, are you :)
I forgot to mention that none of my machines is up 24/7, so there is no
point of installing any servers.
However there is something else I could do. I can run a program which broadcasts its own name over UDP and collects name address pairs from
other machines which do the same. Collected addresses might be
appended to existing /etc/hosts with header and footer like:
On 10/30/2015 02:59 AM, askfor wrote:
J.O. Aho wrote:
On 10/29/2015 12:08 PM, askfor wrote:
My problem is not unique, but I still don't have a solution. My home
computers obtain IP addresses from DHCP server on my home router. The
addresses change.
I could force fixed addresses, but I wonder if there is a more elegant >>>> solution. I could create dummy network devices with fixed addresses,
but
that is more or less the same, but more complicated.
You can let the dhcp server update the nameserver with help of the
ddns-update-style see this Ubuntu documentation for how to do it:
http://askubuntu.com/questions/162265/how-to-setup-dhcp-server-and-dynamic-dns-with-bind
Don't forget to provide which nameserver the dhcp clients should use, if >>> they use another nameserver than the one working for your dhcp server,
it will not work.
You are not THAT Aho, are you :)
No, I'm not Alfred, but I do use awk.
I forgot to mention that none of my machines is up 24/7, so there is no
point of installing any servers.
I would suggest you spend a few bucks on a better router, which
nameserver you can update. Solves a lot of issues for you.
However there is something else I could do. I can run a program which
broadcasts its own name over UDP and collects name address pairs from
other machines which do the same. Collected addresses might be
appended to existing /etc/hosts with header and footer like:
feels like a bit overhead, shouldn't all new machines broadcast I'm new
here, my name is and my ip is (ipv4/ipv6) and then all the others just answer I'm and my ip is (ipv4/ipv6).
I personally don't like to have any temporary lines in my hosts file,
IMHO it should be as clean as possible.
My problem is not unique, but I still don't have a solution. My home computers obtain IP addresses from DHCP server on my home router. The addresses change.
I could force fixed addresses, but I wonder if there is a more elegant solution. I could create dummy network devices with fixed addresses, but
that is more or less the same, but more complicated.
There is a daemon named NMBD which comes with Samba. It does the right
thing, only for NetBIOS protocol. Clients register with it when they
'come alive'. My guess is that NMBD requires fixed IP address, too ?
Is there any way I could put NMBD in the good use ?
J.O. Aho wrote:
At the moment, host files on my machines serve no purpose, except to
hold machines own name.
I've learned about thing called Avahi,but it simply doesn't work for me.
It is supposed to incorporate a minimum DNS server on each machine,
which collects other addresses via multicast. Also, it uses
nsswitch.conf to redirect name resolution queries to itself.
Unfortunately neither machine is able to ping anything based on the
name. I can ping any address, I can ping localhost and I can ping using
name in hosts file. However, Avahi is supposed to assign 'fqdn' in form
of <machinename>.local to each machine, but I can't ping that.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 307 |
Nodes: | 16 (2 / 14) |
Uptime: | 46:41:25 |
Calls: | 6,910 |
Files: | 12,377 |
Messages: | 5,429,527 |