Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-20-2009, 08:10 PM   #1
LQ Newbie
Registered: Jul 2007
Posts: 2
Blog Entries: 1

Rep: Reputation: 0
Is it possible to ask DHCP assign a randomize hostname to client?

Hello, thanks for viewing my question.
Is it possible to ask DHCP / DHCP + DNS to assign the hostname randomly to client?
If nope,
is it possible to ask it to assign the hostname to client based on a pattern? For example,
the network is
If the IP address of get the hostname call Computer1 get the hostname call Computer2
so in general 192.168.1.% get the hostname Computer%

or based on the last 3-4 HEX value as part of the Hostname is also ok

Just in case that MAC address is unknown or base on some prefix (for example 00:0c:29) and the rest is random. (All the host are not static host)

Thanks for it

Last edited by Reaperhk; 11-20-2009 at 08:44 PM.
Old 11-20-2009, 08:53 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
DHCP doesn't set the hostname on the client machine, it can only add DNS records for clients. Is that what you are looking to do?

The actual hostname would be the same, but other machines on the network would resolve it as whatever you set the DNS name to.


dhcp, dns, hostname, pattern

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Assign Static Hostname in Ubuntu Server deibertine Linux - Newbie 3 08-05-2009 04:01 PM
DHCP client redhat 8.0 does not register hostname in network harmen Linux - Networking 6 03-23-2009 06:01 PM
DHCP hostname not set with a linux client tnine9 Linux - Networking 0 08-09-2005 08:48 AM
Can't seem to dynamically assign my ethernet card using DHCP client daemon tre Linux - Networking 1 01-03-2004 10:21 AM
How can I assign an IP instead of DHCP? pilot1 Linux - Networking 2 12-06-2002 03:37 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:48 PM.

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