Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

DNS Cache in Linux

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
Roman_Gruber
Advocate
Advocate
Posts: 3854
Joined: Tue Oct 03, 2006 8:43 am
Location: Austro Bavaria

DNS Cache in Linux

  • Quote

Post by Roman_Gruber » Mon Feb 22, 2010 10:34 pm

OKAY, I dig around in my system and then a question arose.

My brother is a windows boy so:

To view the current DNS resolver cache content and the entries preloaded from the Hosts file, go to the command prompt and type. C:\> ipconfig /displaydns ...

Ok, but I am a linux geek. Is there any equivalent on linux for ipconfig /displaydnscache ? How is dns handled. Or does the linux client always sends a dns requerst for each needed purpose and doesnt use a cache?

I am a little bit disappoined. OK. I used pptp and there was /etc/ppp/resolv.conf. Now I use general network connection via ethernet and now /etc/resolv.conf is used. Well why are there such many configuration files for one fxxxxx dns entry? If I am wrong, but the host uses the ip address in the configuration file to send a dns response to a dns server, right?

thx
Top
truc
Advocate
Advocate
User avatar
Posts: 3199
Joined: Mon Jul 25, 2005 9:24 am

  • Quote

Post by truc » Mon Feb 22, 2010 10:46 pm

you can use nscd (init script included with glibc) to cache DNS results, I don't know if you can display the cache though.
The End of the Internet!
Top
m.b.j.
Guru
Guru
Posts: 407
Joined: Fri Sep 12, 2003 12:16 pm
Location: Germany (Essen)

  • Quote

Post by m.b.j. » Mon Mar 01, 2010 12:51 am

or you can use djbdns, it is very simple to setup and works very well for me.

-- edit: spelling
root@mbj # echo "sys-pizza/calzone -tunfish" >> /etc/paludis/use.conf
root@mbj # paludis -i calzone --dl-blocks discard
Top
gentoo-dev
Apprentice
Apprentice
Posts: 172
Joined: Tue Jan 24, 2006 11:29 am

  • Quote

Post by gentoo-dev » Mon Mar 01, 2010 11:39 am

dnsmasq : http://packages.gentoo.org/package/net-dns/dnsmasq
Top
ToeiRei
Veteran
Veteran
User avatar
Posts: 1191
Joined: Mon Jan 03, 2005 10:50 am
Location: Austria
Contact:
Contact ToeiRei
Website

  • Quote

Post by ToeiRei » Fri Mar 12, 2010 8:00 pm

I prefer pdnsd as I'm often 'on the road' with my laptop...
Please stand by - The mailer daemon is busy burning your messages in hell...
Top
Post Reply

5 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic