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.
grodgers3200Asked:
Who is Participating?
 
NopiusConnect With a Mentor Commented:
omarfarid: it's a Solaris DHCP daemon, it's quite different from ISC's version: http://www.softpanorama.org/Net/Application_layer/DHCP/solaris_dhcp_server_configuration.shtml


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

in dhcptab it looks like:
DNSserv=1.1.1.1:DNSserv=2.2.2.2
for macros or
DNSserv=1.1.1.1,DNSserv=2.2.2.2
for symbols

dhcptab can be viewed with dhtadm -P or DHCP manager's  tabs  for Macros and Options: http://www.scit.wlv.ac.uk/cgi-bin/mansec?4+dhcptab

dhcptab can be edited with  dhcpmgr or dhtadm utility.
0
 
omarfaridCommented:
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.

0
 
omarfaridCommented:
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.

0
 
yuzhCommented:
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
0
All Courses

From novice to tech pro — start learning today.