Skip to main content

Posts

Showing posts from April, 2016

DNS client configuration steps in Oracle Solaris 11

This guide covers Quick how to configure DNS client on Solaris 11.   DNS client configuration in Solaris 11 is based on SMF service rather than file based. When you configure a system as DNS client, you will be performing the following two configurations. I. DNS client setup II. Configure Name service switch to use DNS I.  DNS client setup 1. Configure using SMF service network/dns/client # svccfg -s network/dns/client svc:/network/dns/client> setprop config/search = astring: ("test.com" "service.test.com") svc:/network/dns/client> setprop config/nameserver = net_address: (192.168.10.10 192.168.10.11) svc:/network/dns/client> exit 2.   Enable the DNS client service (when you configure it for the first time) #svccfg enable -r dns/client 3.  Restart/Refresh DNS client service   (It is done when there is any update to the configuration) #svcadm refresh dns/client #svcadm restart dns/client 4.  Verify /etc/resolv.conf if...

Couldn't resolve host 'pkg.oracle.com' Solaris 11

If you met the same problem when you try to get responce from pkg install on Solaris 11 and getting error Unable to contact valid package repository Encountered the following error(s): Unable to contact any configured publishers. This is likely a network configuration problem. Framework error: code: 6 reason: Couldn't resolve host 'pkg.oracle.com' URL: 'https://pkg.oracle.com/solaris/support' (happened 4 times) Here is a procedure that helped me  1 Checking DNS  root# svcs |grep dns online         Apr_06   svc:/network/dns/client:default root# s vccfg -s network/dns/client svc:/network/dns/client> setprop config/search = astring: ("test.com" "service.test.com") svc:/network/dns/client> setprop config/nameserver = net_address: (8.8.8.8 8.8.4.4) svc:/network/dns/client> exit root# svcadm refresh dns/client root# svcadm restart dns/client looking for result root# more /etc/resolv.conf  # # _AUTOGENERATED_FROM...