Estou tendo um problema de resolução de nomes no Solaris 11. De acordo com o guia on-line do Solaris, Capítulo 12 Configurando Clientes DNS :
Client Set Up
Setting up DNS on a client machine involves two tasks:
Creating the /etc/resolv.conf file, as
described in"Creating the resolv.conf File".
Modifying the /etc/nsswitch.conf file, as
described in "Enabling a Machine to Use DNS".
...
No entanto, quando abro o arquivo para fazer a alteração:
#
# _AUTOGENERATED_FROM_SMF_V1_
#
# WARNING: THIS FILE GENERATED FROM SMF DATA.
# DO NOT EDIT THIS FILE. EDITS WILL BE LOST.
# See resolv.conf(4) for details.
domain home.pvt
Então, o manual me diz para criar e modificar resolv.conf
, mas resolv.conf
me diz para não modificá-lo. Quando tento modificá-lo com svccfg
, as configurações não são usadas.
Como adicionar um servidor de nomes ao Solaris 11?
$ sudo cat /etc/nsswitch.conf
#
# _AUTOGENERATED_FROM_SMF_V1_
#
# WARNING: THIS FILE GENERATED FROM SMF DATA.
# DO NOT EDIT THIS FILE. EDITS WILL BE LOST.
# See nsswitch.conf(4) for details.
hosts: files dns mdns
ipnodes: files dns mdns
networks: files
protocols: files
rpc: files
ethers: files
...
E tentando a % ferramenta desvcconfig
:
$ sudo su -
Oracle Corporation SunOS 5.11 11.3 September 2015
# svccfg -s network/dns/client
svc:/network/dns/client> setprop config/nameserver = net_address: (172.16.1.1)
svc:/network/dns/client> exit
# ping www.google.com
ping: getaddrinfo: temporary name resolution failure
ping: unknown host www.google.com
Outra tentativa com o OpenDNS e o Google:
svc:/network/dns/client> setprop config/nameserver = net_address: (208.67.222.222 208.67.220.220 8.8.8.8)
exit
# ping www.google.com
ping: getaddrinfo: temporary name resolution failure
ping: unknown host www.google.com
# cat /etc/resolv.conf
...
domain home.pvt