Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have just installed Open Solaris on a sunfire x4170. dig and nslookup seem to work and i can open web pages through firefox if I use the ip address, but I can't seem to open pages in firefox i.e. or ping ( I'm just using as an example i have tried several different sites)

Here is output from dig command:

~# dig

; <<>> DiG 9.3.6-P1 <<>>
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1526
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 4, ADDITIONAL: 4

;                    IN      A

;; ANSWER SECTION:             209     IN      A             209     IN      A             209     IN      A

;; AUTHORITY SECTION:             131266  IN      NS             131266  IN      NS             131266  IN      NS             131266  IN      NS

;; ADDITIONAL SECTION:         343110  IN      A         343110  IN      A         338914  IN      A         333491  IN      A

;; Query time: 12 msec
;; WHEN: Fri Sep  4 09:26:12 2009
;; MSG SIZE  rcvd: 212
share|improve this question
up vote 1 down vote accepted

What does /etc/nsswitch.conf look like? Specifically, does the hosts entry include dns, e.g.

hosts:      files dns

If it doesn't and you're just using DNS for host name resolution it should be sufficient to copy /etc/nsswitch.dns over /etc/nsswitch.conf. Other files have example configurations for other name resolution and authentication methods, e.g. nsswitch.ldap.

share|improve this answer
thanks heaps, that seems to work. – P4ul Sep 4 '09 at 1:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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