I am running Solaris 7 on qemu-sparc with lance ethernet card. In case with Linux starting dhcpcd is enough to get the Internet access. OK, I created /etc/dhcp.le0, network interface is up, but "ping google.com" results in "unknown host". What I forgot to do?

  • What happens if you ping an IP address instead of a hostname?
    – Renan
    Aug 3 '17 at 19:19
  • Something like "icmp from gateway unknown ( to (IP_address): destination unreachable". was the IP address I set while I was installing system onto the hard disk, because there was no "Use DHCP" switch.
    – Maxim
    Aug 3 '17 at 19:46
  • Holy moly. Solaris 7. End of life, end of support back in 2008. Hope you're on a trusted network here, vulnerabilities galore.
    – steve
    Aug 3 '17 at 20:53

From the error of "unknown host" it sounds like you don't have a DNS server set. If you could, check the files /etc/nsswitch.conf and /etc/resolv.conf . nsswitch.conf should have a line like: hosts: files dns and resolv.conf should have a line like: nameserver xxx.xxx.xxx.xxx where the x's are the IP address of your DNS server.

The nsswitch.conf instructs the OS where to look for certain things (in this case, hostname to IP address mapping) and the resolv.conf specifies what server the networking service should look to for DNS lookups. One would hope DHCP is setting a name server, but it is good to make sure.

  • DNS Server should be (Google Public DNS)?
    – Maxim
    Aug 3 '17 at 19:40
  • That would work. Are you able to ping
    – Thegs
    Aug 3 '17 at 19:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.