Secondary DNS on DHCP config

Posted on 2007-10-19
Last Modified: 2013-12-27

I want to add secondary DNS ipaddress on the DHCP configuration. When i try to use dhcpadm, i don't have a option to add secondary ipaddress. Is there any way to add secondary DNS ipaddress on DHCP configuration on solaris 2.8.

Question by:grodgers3200
    LVL 40

    Expert Comment


    Since you did not mention which DHCP server you have, I will describe to you what can be done with the ISC DHCP server that is available on

    The DHCP server configuration file is dhcpd.conf and you can specify at the beginning of it options for clients. e.g. you can add the two options below to it:

     option domain-name "";
     option domain-name-servers ip-address [, ip-address... ];

    The first option is to tell your domain name for the client,  and the 2nd option is to tell the ip addresses of DNS servers to be used by the client.

    If your DNS server has similar dhcpd.conf file, you may add to it these lines.

    LVL 27

    Accepted Solution

    omarfarid: it's a Solaris DHCP daemon, it's quite different from ISC's version:

    grodgers3200, you may add multiple options with DNS IP.
    First will be primary, second - secondary etc.

    in dhcptab it looks like:
    for macros or
    for symbols

    dhcptab can be viewed with dhtadm -P or DHCP manager's  tabs  for Macros and Options:

    dhcptab can be edited with  dhcpmgr or dhtadm utility.
    LVL 40

    Expert Comment


    Very useful link. Thank you.

    I noticed the startup of in.dhcpd in  the system startup scripts, but I though he is using some other S/W.

    The man pages on the system are also useful and recommend not to edit the files by hand and use the proper tools you mentioned.

    LVL 38

    Expert Comment

    You can use dhtadm command to modify the DNS server settings, eg:

    dhtadm -M -m `uname -n` -e 'DNSserv=<dns server1 IP> <dns server2 IP>'

    man dhtadm
    to learn more details

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap ( Version 1.2 2.      Jpcap( Version 0.6 Prerequisite: 1.      GCC …
    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…
    Video by: Phil
    This video goes over how to configure and start a jail in FreeBSD.  This video is meant to supplement the article included with this course.

    761 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

    7 Experts available now in Live!

    Get 1:1 Help Now