Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can I do without /etc/hosts?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
BlueNoteMKVI
n00b
n00b


Joined: 07 Jul 2004
Posts: 65

PostPosted: Fri Oct 14, 2005 9:20 pm    Post subject: Can I do without /etc/hosts? Reply with quote

My home network has grown quite a bit and it's getting tedious to keep /etc/hosts updated everywhere. Is there a way to do without, by running some sort of DNS server on the network?

Here's a sketch of my setup:

Incoming DSL line goes to LinkSYS VOIP router.
VOIP router connects to two phone lines and a Linksys Wireless G router.
Wireless G router connects via cables to:
-Main desktop (Xandros)
-Secondary desktop (XP)
-Server in the closet (Gentoo)
There are also three laptops living here that connect wirelessly, and a Linksys wireless print server.

Is it possible to set up one of those computers to maintain the list of which computers are at which addresses, even if (in the case of the laptops) they acquire their addresses via DHCP and it's different each time? Could I do that somehow on the router?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54596
Location: 56N 3W

PostPosted: Fri Oct 14, 2005 9:31 pm    Post subject: Reply with quote

BlueNoteMKVI,

You can't dump it altogether. It needs to contain the locakhost entry.
If you are using DHCP, then DHCP should run a nameserver for you.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
WhimpyPeon
Apprentice
Apprentice


Joined: 18 Oct 2003
Posts: 158
Location: Columbus, Nebraska

PostPosted: Fri Oct 14, 2005 9:49 pm    Post subject: Reply with quote

dnsmasq will handle dhcp and dns. It is quite easy to install/configure and you only need to maintain a hosts file on that computer (for local dns). Did I mention it is in portage!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum