Link to home
Start Free TrialLog in
Avatar of grodgers3200
grodgers3200

asked on

Secondary DNS on DHCP config

Hi,

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.

Thanks.
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

Hi,

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 sunfreeware.com.

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 "mydomain.com";
 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.

ASKER CERTIFIED SOLUTION
Avatar of Arty K
Arty K
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

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.

Avatar of yuzh
yuzh

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