LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-25-2004, 09:33 PM   #1
jeffxor
LQ Newbie
 
Registered: Jan 2004
Location: Sydney, Austalia
Posts: 15

Rep: Reputation: 0
Internal DHCP and Hostnames


I have a question I want to setup an internal domain at home. Currently i have 2 machines running Mandrake 10, I Laptop running Mandrake 10 an Xbox which are all connected into a Netgear Router which is connected to Wireless Modem providing Internet access.

Currently my router is performing the task of DHCP server as it is the only device that is always on. Now I have been googling like crazy but can't seem to find a simple awnser or example to achieve what i desire.

Instead of referencing each machine by its IP address I want to do it via machine names. I read that entering Machinename Ip pairs in /etc/hosts may do it but I am not sure that each machine will get the same IP everytime it boots and I can see a setting in my router to perform this.


To me it seems like a fairly easy thing to do but can't find any info anywheres.

Any help is appreciated.
 
Old 11-25-2004, 11:58 PM   #2
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
You can set up a server with ISC bind and dhcp, that dhcp is a little more flexible and there is a way to always assign the same IP address to a given computer, based on its hardware ethernet id. Then your name server "bind" will resolve the ip address to host name for the systems in your network and you won't need hosts files.
 
Old 11-26-2004, 01:18 AM   #3
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
I don't really understand why computer savvy people use DHCP for both their machines on a network that never changes.

If you only have a handful of machines, just set them all up with static IPs and make out the host files accordingly. DHCP is meant for bigger networks where people are connecting to networks they know nothing about and the administrators don't want to have to keep track of all the static IPs they've handed out. That, and DHCPs integration into [some] DNS servers make it a good choice for networks that change often, or have many many client computers.

As for the suggestion of installing a server and putting BIND and DHCPd on it -- This is a *lot* of work (and possibly expense) to achieve what the poster wants. Static IPs and hosts files and the whole thing can be done in about 15 minutes.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcp internal dns problem snoyl Linux - Networking 0 12-02-2005 05:17 AM
Fedora can resolve external hostnames but not internal TheLandofSmeg Linux - Networking 3 02-25-2005 07:57 PM
SUSE 9.1 DHCP using hostnames Genjix Linux - Networking 6 02-04-2005 06:01 PM
Allowing DHCP server access only to certain hostnames TVH Linux - Networking 3 11-23-2004 12:50 AM
ipchains & dhcp for internal network jmelgin Linux - Security 1 10-15-2001 08:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration