How to setup Domain Name System (DNS) on Solaris 10
-
The new domain server will be on system 192.168.137.25 which is called SCAN.
-
The following /etc/host file has been edit to contain all the DNS entries that are required:
-
Assume domain name is to be indiandba.com
-
Assume network is 192.168.137
-
Create a domain run directory to contain the Named services files called /var/named.
$ cp
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# “hosts:” and “services:” in this file are used only if the
# /etc/netconfig file has a “-” for nametoaddr_libs of “inet” transports.
passwd: files
group: files
hosts: files dns
networks: files
protocols: files
: : : : : :
: : : : : :
domain indiandba.com
nameserver 192.168.137.25
disabled 10:15:21 svc:/network/dns/server:default
disabled 10:15:22 svc:/network/dns/client:default
$svcadm enable /network/dns/server
$svcs -a | grep dns
online 10:15:21 svc:/network/dns/server:default
online 10:15:22 svc:/network/dns/client:default
Note:—- /network/dns/server must be online for DNS to run properly and initiate if the DNS server is rebooted.
Step 12:- Configurating Clients to use DNS To use DNS, clients need to modify the /etc/resolv.conf, and /etc/nsswitch.conf as above. The /etc/defaultdomain file must also be created and establsihed as above.
This comment has been removed by a blog administrator.