We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now


dns problems

ianfoster asked
Medium Priority
Last Modified: 2013-12-23

I am trying to get nslookup working on my Sun Sparc IPX running Solaris 2.5.
As far as i know, i have setup the resolv.conf and hosts file aswell but whenever I try to do an nslookup I get the error:
***Cant find server name for address non-existent domain
***Cant find server name for address
non-existent domain
*** Default servers are not available
 Can anybody help?
Watch Question


Edited text of question
can u ping ure DNS server?sounds like u have not entered the domain entry in resolv.confadd ure hostname as a FQDN in /etc/hosts


Thanks for the reply, I think i've already done what you have suggested, what do you think?
I can ping the two dns servers and any other internet host both by name and ip address with no problems at all but i just can't run nslookup!

This is my resolv.conf file

domain netkonect.net
search netkonect.net

/etc/hosts file      localhost      ns.netkonect.net      ns1.netkonect.net      taz.netkonect.net #(my machine)

Any ideas would be greatly appreciated.
this looks ok I do not know about search netkonect.net.I usually alias the FQDN like:   taz    taz.netkonenect.netThe only other thing to check is /etc/nsswitch.conf whcih contains search order like:hosts:          files [NOTFOUND=continue] dns


i've aliased taz in the hosts file and checked the nsswitch.conf file which has the following entry:
hosts:      files dns

Anything else you can think of?

i'd put what i put in the nsswitch.conf file this should work nowthe only other thing is the domainname command but i think this is for NIS only


Hmmm, i've added the [NOTFOUND=continue] statement in and that made no difference.
Not to sure what you mean about the domainname command but we are not running NIS so i guess that's irrelavant anyway.

if u ping an address in you DNS not in ure hosts what happens?


If i ping any other host in the world e.g www.netscape.com or www.experts-exchange.com, it works fine, nor problems at all!
Is there anything i should be reloading/restarting when i make any changes to the hosts file?
if u can see DNS entries whats the prob?u could try a reboot
sorry I have just re-read nslookup doesnt workright try this:/etc/resolv.confdomain ...hosts=bind,localnameserver <ipaddr>/etc/hosts forget the domain names just the hostnames...    tazleave out the dns servers ip address'stake out NOTFOUND rubbish from /etc/nsswitch.confthen kill -HUP <pid if bind>


The problem is that I can't run the nslookup tool on my machine which would be handy.
I've rebooted and that made no difference.


You've confused me a little with your last comment, can you clarify please!
So far i've taken out the notfound entry in nsswitch.conf but im not to sure what you mean about the hosts file.
dont stick the nameserver ip addresses in thereand *don't* stick the FQDN in there just 'taz'if this doesn't work, I do not no a patch ;)ReD


It works! the problem was that our nameservers and failed when nslookup tried to do a reverse lookup on either of those addresses.
All I have done is use some alternative ip addresses for the nameservers and it all works :)
Thanks a lot for your help.
geez, u could have given us your points!

Please delte the question so nobody else falls here anymore


How would i do that? :)

You have to send an e-mail to the admin. of the service.
Check the "Abou us" in the home page.
You have to configure the /etc/nsswitch.conf file.If you use nis copy the nsswitch.nis file and modify it.   # /etc/nsswitch.nis:   hosts:      nis [NOTFOUND=return] filesIf no, copy the nsswitch.file file and modify it:
   # /etc/nsswitch.files:
   # An example file that could be copied over to /etc/nsswitch.conf; it
   # does not use any naming service.
hosts:      dns files

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.