how to "clear" the dns entries and everything that maight be cached in a linux box (using ifconfig?)

I have suse 10.

I have some probs with a website from the localnetwork which i cannot open it with any browser, not even with lynx.

in windows boxes i used ipconfig /release  or ipconfig /flushdns to clean everything that might have been cached.
In linux i dont know how to do that with ifcongif or any other command.

Can any one help ?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Use Below Command

rnds flush

Then Restart the Service

/etc/rc.d/named restart
MaRiOsGRAuthor Commented:
hell:/ # rnds flush
bash: rnds: command not found

and about named, i dont run any dns server like bind etc.
then do rcnetwork restart
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

The Suse Linux equivalent of the Windows command ipconfig is:

"rcnscd restart"

Look at /etc/nscd.conf for more information.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
>>The Suse Linux equivalent of the Windows command ipconfig is:
>>"rcnscd restart"

i would say no it is /sbin/ifconfig
To mimic the functionality of the ipconfig /flushdns (To flush the DNS cache on a SUSE 10 system) use the command "rcnscd restart" from the shell of your choice.

If you want to configure a network interface use "ifconfig" configure a network interface.

In Microsoft Windows, you can use the command ipconfig /flushdns to flush the DNS resolver cache. You can also use the command ipconfig /displaydns to view the DNS resolver cache.

C:\>ipconfig /flushdns

Windows IP Configuration

Successfully flushed the DNS Resolver Cache.

How to Flush DNS in Mac OSX
In Mac OSX, you can use the command lookupd -flushcache to flush the DNS resolver cache.

bash-2.05a$ lookupd -flushcache

How to Flush DNS in Linux:

In Linux, the nscd daemon manages the DNS cache.

To flush the DNS cache, restart the nscd daemon.

There is functionality built into ipconfig on Windows that does not translate one-for-one to ifconfig in Unix/Linux.

At the end of the day: "nscd restart" is the correct answer to the question.

Artysystem administratorCommented:
Usually Linux doesn't cache DNS records if you dont' ask to do so with nscd daemon.
To release IPs (if you have DHCP enabled) run from root:
# dhclient -r
To get IP again:
# dhclient eth0

MaRiOsGRAuthor Commented:
Thank you all.

rcnscd restart works :
hell:/ # rcnscd restart
Shutting down Name Service Cache Daemon                               done
Starting Name Service Cache Daemon                                    done

but dhclient -r (which sounds very interesting) doesnt work. :(

hell:/ # dhclient -r
bash: dhclient: command not found

rcnetwork restart

is still my favorite. have you tried?
Artysystem administratorCommented:
MaRiOsGR you are probably have static IPs, so forget about DHCP releases.
MaRiOsGRAuthor Commented:
you're right i had disabled the dhcp :D

thank you all guys ! i fixed my problem.
MaRiOsGRAuthor Commented:
rcnetwork restart also works ;)
listen to me .-)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Operating Systems

From novice to tech pro — start learning today.