Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DNS cache
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
pingoo
Guru
Guru


Joined: 11 Jul 2006
Posts: 324

PostPosted: Sat Oct 13, 2007 8:55 am    Post subject: DNS cache Reply with quote

Allora, ho cercato in rete e sul forum ma non ho risolto il mio dubbio. Vorrei avere una specie di cache sulla mia macchina per risolvere i nomi, in modo da evitare di dover interrogare ogni volta gli opendns e visto che quello utilizzato dal router non funziona a dovere. In pratica se un nome è presente nella cache allora usa quello ma se fallisce la connessione allora effettua la richiesta al server.
Ora ho appena inserito un sito su /etc/hosts ma non so se sia completamente corretto e poi non sarebbe praticabile in caso di indirizzi dinamici. Qualche idea semplice?
Bye
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Sat Oct 13, 2007 9:46 am    Post subject: Reply with quote

google con "dns server linux" da come primo risultato:

http://www.pluto.it/files/ildp/guide/lame/domain-name-server.html
altrimenti sostituendo linux con gentoo ottengo tra i primi:
http://gentoo-wiki.com/HOWTO_Setup_a_DNS_Server_with_BIND
http://gentoo-wiki.com/HOWTO_setup_a_home-server

tutti e tre utilizzano lo stesso programma, bind.
Back to top
View user's profile Send private message
pingoo
Guru
Guru


Joined: 11 Jul 2006
Posts: 324

PostPosted: Sat Oct 13, 2007 10:03 am    Post subject: Reply with quote

Ic3M4n wrote:
google con "dns server linux" da come primo risultato:
tutti e tre utilizzano lo stesso programma, bind.

Perdonami, non sono stato chiaro. Il mio quesito non voleva essere come configurare un server dns, ed infatti avevo visto e "scartato" il materiale sul wiki di gentoo (né avevo effettuato ricerche con server dentro ;) ). Vorrei sapere piuttosto se c'è un modo semplice per fare quanto specificato sopra, possibilmente evitando l'uso di un dns server ;). Ne approfitto per specificare che serve solo alla mia macchina.
Bye
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Sat Oct 13, 2007 10:49 am    Post subject: Reply with quote

installati un dns-server e controlla che non abbia accessi all'esterno... non capisco come tu pensi di poter riolvere i nomi in locale senza avere un demone dns attivo....
Back to top
View user's profile Send private message
pingoo
Guru
Guru


Joined: 11 Jul 2006
Posts: 324

PostPosted: Sat Oct 13, 2007 11:12 am    Post subject: Reply with quote

MeMyselfAndI wrote:
installati un dns-server e controlla che non abbia accessi all'esterno... non capisco come tu pensi di poter riolvere i nomi in locale senza avere un demone dns attivo....

Ok, probabilmente stamattina sto un po' fuso...
L'idea nasce dall'osservazione che c'è il file /etc/hosts che memorizza gli indirizzi-nomi e da quanto mi pare viene utilizzato in prima istanza nella risoluzione dei nomi. Inoltre ho pensato che potesse esserci qualche altro file da configurare per abilitare una ipotetica cache simile all'/etc/hosts che memorizza l'associazione tra nome e indirizzo ad ogni nuova richiesta.
Del resto non avevo un'idea chiara ma domandavo se qualcuno ne avesse ;)
Da quanto mi dite invece è assolutamente necessario il server dns.
Grazie
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Sat Oct 13, 2007 2:16 pm    Post subject: Reply with quote

un proxy dns dovrebbe fare al caso tuo, nel portage trovi:
net-dns/maradns
net-dns/pdnsd
net-proxy/dnsproxy
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
mrfree
Veteran
Veteran


Joined: 15 Mar 2003
Posts: 1303
Location: Europe.Italy.Sulmona

PostPosted: Sat Oct 13, 2007 4:37 pm    Post subject: Reply with quote

Io uso da diversi anni net-dns/dnsmasq sul mio serverino casalingo e non mi ha mai dato problemi.
_________________
Please EU, pimp my country!

ICE: /etc/init.d/iptables panic
Back to top
View user's profile Send private message
morellik
l33t
l33t


Joined: 03 Feb 2003
Posts: 629
Location: Firenze

PostPosted: Mon Oct 15, 2007 7:47 am    Post subject: Reply with quote

Io uso net-dns/djbdns senza problemi .
Back to top
View user's profile Send private message
lordalbert
l33t
l33t


Joined: 26 Nov 2006
Posts: 840
Location: Italy

PostPosted: Mon Oct 15, 2007 5:47 pm    Post subject: Reply with quote

ma djbdns e dnsmasq come funzionano?
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Mon Oct 15, 2007 6:14 pm    Post subject: Reply with quote

lordalbert wrote:
ma djbdns e dnsmasq come funzionano?

bene grazie :lol:
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
grentis
Guru
Guru


Joined: 20 Jul 2004
Posts: 321

PostPosted: Mon Oct 15, 2007 9:48 pm    Post subject: Reply with quote

Kernel78 ultimamente mi è in vena spiritosa... :lol:
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Tue Oct 16, 2007 5:35 am    Post subject: Reply with quote

grentis wrote:
Kernel78 ultimamente mi è in vena spiritosa... :lol:

Cosa ci vuoi fare ... scadendo nei luoghi comuni: "la paternità ti cambia" :D
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
mrfree
Veteran
Veteran


Joined: 15 Mar 2003
Posts: 1303
Location: Europe.Italy.Sulmona

PostPosted: Wed Oct 17, 2007 6:54 am    Post subject: Reply with quote

Per quanto riguarda dnsmasq puoi trovare una sintetica lista di features sul sito ufficiale: http://www.thekelleys.org.uk/dnsmasq/doc.html
_________________
Please EU, pimp my country!

ICE: /etc/init.d/iptables panic
Back to top
View user's profile Send private message
morellik
l33t
l33t


Joined: 03 Feb 2003
Posts: 629
Location: Firenze

PostPosted: Wed Oct 17, 2007 10:13 am    Post subject: Reply with quote

Qui http://cr.yp.to/djbdns.html trovi tutta la doc. Ma in pratica, una volta partito il servizio, crea una cache di coppie indirizzo/nome rendendo più rapido il processo di risoluzione dei nomi. In resolv.conf hai come nameserver 127.0.0.1.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum