Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
		Network Troublshooting => Linux Servers Support => Topic started by: gauravbajaj on January 06, 2005, 10:53:24 AM
		
			
			- 
				Hello Frds
 i have a question abt DHCP server,
 I have configured DHCP SERVER , it is able to give ip- addresses dynamically, but my pb is that i want to give name to my clients dynamically by using DHCP SERVER.
 
 if suppose your DHCP server assign ip-address to a client as 192.168.2.183 , but  i want to assign name to a this client dynamically as ws183 means:
 if it assign ip to some client like 192.168.2.34, then i also want to give name dynamically as ws34
 mens i want to append ws to last octet of ip-address, how can i give names  like this dynamically,
 
 CAN ANYONE HELP ME PLZZZ.............
 Regards
 Gaurav
- 
				I think that is the work of BIND !! called DNS server..
			
- 
				hi ricky
 i know this is a work of BIND
 CAN U TELL WHICH CONFIGURATION IS TO ADD IN THAT ?
 regards
 gauravbajaj
- 
				this can't be described here.. better look for a good tutorial for BIND
			
- 
				If u intend to do locally without a dns. Read along:
 
 So if u want to do that, i can suggest u to go to :
 
 http://www.ltsp.org
 
 See how to configure dhcp server. I outline here the things u need to do:
 
 1, Edit ur "dhcpd.conf" file
 2. Edit ur "hosts" file.
 3. Edit ur "resolv.conf" file (Normally u can omit this if
 u have a hostname for u pc set previously other
 than localhost.localdomain)
 
 Read  the ltsp documentation.
- 
				i know how to configure DHCP & DNS but i want to give name to clients automatically  using DHCP . do u know how to do this?
 the site
 www.ltsp.org
 has  no answer of my query
 
 tell me if u know this
 bye
 gaurav
- 
				hello can anyone knows abt this?
 tell me if u know
- 
				Hi all
 Can you help me to sort my pb of DHCP server, i wanna give name to clients Dynamically in DHCP server. i did it only once but know i  don't remember it
 bye
 gaurav
- 
				well..  I think you are saying that how to assign fix info for a specific client on the network using dhcp !!
 
 Say you want to assign ip address 192.168.1.23  to tthe client with mac address of 00:A1:DD:74:C3:F2 .
 
 To do so.. you first have a gobal option specifying the domain for whole network , include following line changing to name you want in begining of your dhcpd.conf .
 option domain-name              "yourdomain.com";
 Now say you want to assign some name like computerA then it will look like computerA.yourdomain.com .
 To do so add following
 host computerA
 {
 option host-name "computerA.yourdomain.com";
 hardware ethernet 00:A1:DD:74:C3:F2;
 fixed-address 192.168.1.23;
 }
 
- 
				No dear
 You can't understand what i am saying,
 Actually suppose my dhcp server give ip-address to some client as 192.168.2.183 but i want to give dynamic name to this clients as 'ws183' means  last octet that is 183 append to ws ,so  it  becomes ' ws183'. This is only for one computer , suppose i have 10 computers in my network  & my DHCP server give ip-address to these computers as 192.168.2.183,  192.168.2.184,........
 & i want to give name to client that has ip as 192.168.2.183 as ws183, to client that has ip as 192.168.2.184 as ws184. THAT MEANS last octet of ip-address is append with ws .
 
 SO do u  know where to give this entry or u know any shell script for this ?
 IF U KNOW PLEASE TELL ME? I NEED IT URGENT
 THXX IN ADVANCE
 BYE
 gaurav
- 
				THXXXXX RICKY
 YOUR CONFIGURATION WORKS,THANKS A LOT
 BUT IF I HAVE LARGE NO OF COMPUTERS IN N/W  AND I WANT TO GIVE NAME TO ALL OF THEM DYNAMICALLY ,THEN I HAVE TO MAKE ENTRY FOR EACH CLIENT IN dhcpd.conf FILE.
 
 GAURAV