Solved

Connecting Solaris DHCP client to a Windows DHCP server

Posted on 2003-10-31
4
2,958 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
ID: 9660785
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
ID: 9660825
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
ID: 9661583
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
ID: 9672692
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

807 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