Solved

Connecting Solaris DHCP client to a Windows DHCP server

Posted on 2003-10-31
4
2,947 Views
Last Modified: 2013-12-27
I have a Solaris 8 system and I want to run DHCP client on it. I need to connect to a Microsoft DHCP server.
I get an IP Address from the DHCP/WINS server however it does not register the hostname in DNS. NSLOOKUP returns nothing for this hostname.
Is there something special I need to do on the Solaris system to make this registration ?
Thanks in advance .
0
Comment
Question by:sluch
  • 2
4 Comments
 
LVL 18

Expert Comment

by:liddler
Comment Utility
AFAIK DHCP wouldn't register a DNS entry, they are entirely different protocols.  If you have a program that does both for windows machines, it is a hybrid program that does DHCP (IP address, default gateway and netmask) and DNS registration.
0
 

Author Comment

by:sluch
Comment Utility
No, I don't have a hybrid program.
I guess all I am asking for is how to get an entry into DNS for lookups with out having to hard code in the IP and hostname into the DHCP server.
0
 
LVL 24

Accepted Solution

by:
shivsa earned 125 total points
Comment Utility
I think u have to request host name registration to dhcp.

1. edit the /etc/default/dhcpagent file as root and modify this line,
REQUEST_HOSTNAME=yes
if a # sign is there remove it.

2. Edit the /etc/hostname.interface file on the client system and add the following line:

inet hostname

where hostname is the name you want the client to use.
3.
# pkill dhcpagent
# rm /etc/dhcp/interface.dhc
# reboot

see if the name of client is registered to server or not.
0
 

Author Comment

by:sluch
Comment Utility
I don't have this line in the file you indicate however I have added it.

Also I have added the entry in the hostname.interface as you indicated and I get an error message on bootup:

Something about "inet: bad address", however it now registers the hostname and IP address with the DHCP server.

Thanks for you help
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now