Se me presento el problema que despues de instalar solaris 10 en mi VMWARE no podia navegar por internet. No estar rolviendo nombres porque por IPs si podia acceder a las paginas.
¿Cómo solucionarlo?
Veamos el contenido del siguiente articulo:
1) You need to create or edit the file /etc/resolv.conf
# cat resolv.conf
domainname corp.petrobras.biz
nameserver 10.26.42.1
nameserver 10.2.56.33
nameserver 10.2.56.34
search corp.petrobras.biz,engenharia.petrobras.com.br,petrobras.com.br
#
Where :
a) domainname => name of domain
b) nameserver => you can put until 3 DNS servers (IP)
c) search (optional) => used to complete a host name, when you use just the first name to resolve hosts.
Ex: When you put test, the system will search test.corp.petrobras.biz, test.engenharia.petrobras.com.br and so on.
2) You must edit the file /etc/nsswitch.conf and include the word "dns" after "files" in the line shown below . So the system will resolve host using the file /etc/hosts and /etc/resolv.conf in this order.
...
hosts: files dns
...
Good luck
# cat resolv.conf
domainname corp.petrobras.biz
nameserver 10.26.42.1
nameserver 10.2.56.33
nameserver 10.2.56.34
search corp.petrobras.biz,engenharia.petrobras.com.br,petrobras.com.br
#
Where :
a) domainname => name of domain
b) nameserver => you can put until 3 DNS servers (IP)
c) search (optional) => used to complete a host name, when you use just the first name to resolve hosts.
Ex: When you put test, the system will search test.corp.petrobras.biz, test.engenharia.petrobras.com.br and so on.
2) You must edit the file /etc/nsswitch.conf and include the word "dns" after "files" in the line shown below . So the system will resolve host using the file /etc/hosts and /etc/resolv.conf in this order.
...
hosts: files dns
...
Good luck
No hay comentarios:
Publicar un comentario