[Linuxtrent] Re: iptables

  • From: Flavio Visentin <THe_ZiPMaN@xxxxxxxxx>
  • To: linuxtrent@xxxxxxxxxxxxx
  • Date: Thu, 26 Aug 2004 10:47:21 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Il 08/26/04 10:40, Giuseppe Briotti, sedendosi sulla tastiera, ha
scritto ...
|> > Ho capito male, evidentemente? :-)
|>
|> Esatto!
|> Se non li ha in cache li chiede al resolver esterno.
|> Diaolin
|
| Ed è proprio quello che serve a me. Quindi mi basta aggiungere
| nameserver 127.0.0.1 in resolv.conf e fare la prova, se non ho
| capito male, dopo essermi salvato i due file di cui al tuo post
| come backup? Fantastico, se cosi' fosse sarebbe semplicissimo...

Modificare il resolv.conf DOPO aver installato pdnsd o bind9 in
configurazione caching only.
In ogni caso ti consiglio il primo che è più semplice da configurare,
più semplice da gestire, più versatile (p.es. ti importa le entry nel
file hosts) e fa SOLO quello che ti serve. Bind9 è + potente ma allo
stesso tempo è + facile fare errori ed omissioni; se non serve non si usa.

Es. Conf. pdnsd

- ---------------------------------------------------------------------

// $Id: pdnsd.conf.in,v 1.4 2000/11/11 20:32:58 thomas Exp $

global {
        perm_cache=512;
        cache_dir="/var/cache/pdnsd";
        max_ttl=900;
        run_as="pdnsd";
        paranoid=on;
        status_ctl=on;
#       server_port=53;
#       server_ip="127.0.0.1";
}

server {
        label="akom";
        ip="213.21.141.2","213.21.164.2";
        timeout=30;
        interval=600;
        uptest=ping;
        ping_timeout=50;
        purge_cache=off;
        policy=included;
}

server {
        label="telecom";
        ip="62.211.69.150","212.48.4.15";
        timeout=30;
        interval=600;
        uptest=ping;
        ping_timeout=50;
        purge_cache=off;
        policy=included;
}

server {
        label="interbubiness";
        ip="151.99.125.2","151.99.125.3","151.99.125.4","151.99.250.2";
        timeout=30;
        interval=600;
        uptest=ping;
        ping_timeout=50;
        purge_cache=off;
        policy=included;
}

server {
        label="libero";
        ip="195.210.91.100","193.70.192.100";
        timeout=30;
        interval=600;
        uptest=ping;
        ping_timeout=50;
        purge_cache=off;
        policy=included;
}

server {
        label="albacom";
        
ip="212.17.192.209","212.17.192.49","212.17.192.56","213.217.149.50","212.17.192.216";
        timeout=30;
        interval=600;
        uptest=ping;
        ping_timeout=50;
        purge_cache=off;
        policy=included;
}

source {
        ttl=86400;
        owner="localhost.";
        serve_aliases=on;
        file="/etc/hosts";
}

rr {
        ttl=86400;
        owner="localhost.";
        name="localhost.";
        a="127.0.0.1";
        soa="localhost.","root.localhost.",42,86400,900,86400,86400;
}

rr {
        ttl=86400;
        owner="localhost.";
        name="1.0.0.127.in-addr.arpa.";
        ptr="localhost.";
        soa="localhost.","root.localhost.",42,86400,900,86400,86400;
}

- --------------------------------------------------------------------

Nello script di start della rete poi con il comando pdnsd-ctl attivi i
server DNS del provider con cui ti sei collegato.

SEMPLICE.

- --
Flavio Visentin

|                     \|||/
|                    @/0.0\@
|                     \ - /
+------------------oOOo---oOOo------------------

There are only 10 types of people in this world:
those who understand binary, and those who don't.

GPG Key: http://www.zipman.it/gpgkey.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBLaOZusUmHkh1cnoRAjKAAJ93gCE8pg6DtzZbud7qVgxvh/C2kwCeJ9Km
Uqw2cqqiiXWPF6b2eX5Rp2k=
=tTiE
-----END PGP SIGNATURE-----
--
Per iscriversi  (o disiscriversi), basta spedire un  messaggio con OGGETTO
"subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx


Other related posts: