Using names, not IP addresses, in home network
w.hamra1987 at gmail.com
Sun Apr 12 18:20:25 UTC 2009
2009/4/12 Bruce Marshall <bmarsh at bmarsh.com>:
> On Sunday 12 April 2009, Donn wrote:
>> On Sunday, 12 April 2009 19:46:10 Dotan Cohen wrote:
>> > I have a few computers on a home network, and currently the router
>> > assigns them IP addresses with DHCP. However, I find that every few
>> > weeks the addresses change. How can I name the machines names such as
>> > "laptop" and "ety" instead of useing IP addresses? Everything that
>> > I've googled seems quite out of date. Thanks.
>> Add the name to /etc/hostname ? It may work.
> Not really..... because it still needs an IP address.
> The way I do it is to give each computer a static IP address... and enter the
> name and IP address into /etc/hosts Then pass the /etc/hosts file around
> to the various computers. This only needs to be done once.
the best method, but some ppl cant use static, due to the laptop being
moved from one network to another a lot during the day.
> And another method would be to have your router hand out specific IP addresses
> based on the MAC address of each computer. And then use /etc/hosts to point
> to the specific IP addresses by name.
the method i use and prefer, but u need a router that can do it. my
router cant, but my IPCOP server can do it.
> You can also provide your own DNS server but /etc/hosts is much easier.
that as well, can be a hassle, but results are great.
> kubuntu-users mailing list
> kubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
Willy K. Hamra
Manager of Hamra Information Systems
Co. Manager of Zeina Computers and Billy Net.
More information about the kubuntu-users