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?
The Suse Linux equivalent of the Windows command ipconfig is:

"rcnscd restart"

Look at /etc/nscd.conf for more information.
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.
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

then do rcnetwork restart
>>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.

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?
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 .-)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.