DHCP & DNS

Karl Larsen k5di at zianet.com
Sun Oct 21 22:48:42 UTC 2007


zephod at cfl.rr.com wrote:
> ---- Dave Burns <tburns at hawaii.edu> wrote: 
>   
>> My lazy ignorant suggestion is to reconfigure the router so that you
>> know the IP of the two boxes will not change and then use /etc/hosts.
>>     
>
> Yes, I know I could do that. It's OK when there are only 2 boxes but what if I had a small office setup with, say, 100 PCs. It's not so practical then. I'm interested in finding out if there is another way to make this work.
>
> Steve
>
>   
>> On 10/21/07, zephod at cfl.rr.com <zephod at cfl.rr.com> wrote:
>>     
>>> I think my understanding is a little lacking on this subject (one of many).
>>>
>>> Here is my simple and, I suspect, very common setup: 2 PCs, one FC6 Linux, one Windows Vista and a Linksys wireless router. A DHCP server on the Linksys determines the IP addresses of the 2 machines.
>>>
>>> My question is: is it possible for either machine to ping the other without having to make an entry in its local hosts file?  Making entries in the hosts file doesn't seem like a good idea since the IP address could, in theory, change.
>>> The Linksys is a WRT54G and I don't think that it contains a DNS server. The names of my 2 machine should never get to a public DNS router since they are on a private network.
>>>
>>> Steve
>>>
>>> --
>>> fedora-list mailing list
>>> fedora-list at redhat.com
>>> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>>>
>>>       
>> -- 
>> fedora-list mailing list
>> fedora-list at redhat.com
>> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>>     
>
>   
    I was told by an expert to put my own ip and the ip of my DNS 
servers in /etc/hosts/ and it now looks like this:

[karl at k5di ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain   localhost
216.31.109.91   k5di.com
216.234.192.92  nameserver
216.234.213.130 nameserver

So you should do the same thing I think.



-- 

	Karl F. Larsen, AKA K5DI
	Linux User
	#450462   http://counter.li.org.




More information about the users mailing list