Salve a tutti,
questa è la prima volta che configuro un server dns con linux, allora:
ho una rete di circa 10 pc e un server vorrei configurare il server dns in modo che gli untenti dei pc in rete digitino sul browser www.xxx.org e gli si apra il server apache, oppure ftp.xxx.org e gli si apre il server ftp .....
Premetto: la rete è senza accesso ad internet.
uso la fedora core 2.
il problema è che se digito www.xxx.org mi dice connessione rifuitata.
questo è il file named.conf
codice:// generated by named-bootconf.pl options { directory "/var/named"; /* * If there is a firewall between you and nameservers you want * to talk to, you might need to uncomment the query-source * directive below. Previous versions of BIND always asked * questions using port 53, but BIND 8.1 uses an unprivileged * port by default. */ // query-source address * port 53; }; // // A SIMPLE BIND CONFIGURATION FOR DOMAIN "xxx.ORG" // //controls { // inet 127.0.0.1 allow { localhost; } keys { rndckey; }; //}; zone "." IN { type hint; file "named.ca"; }; zone "xxx.org"{ type master; file "xxx.org"; // allow-update { none; }; }; zone "1.168.192.IN-ADDR.ARPA" { type master; file "192.168.1"; // allow-update { none; }; }; zone "0.0.127.in-addr.arpa" { type master; file "named.local"; // allow-update { none; }; }; include "/etc/rndc.key";
questo è il file xxx.org
codice:$TTL 86400 $ORIGIN localhost. @ 1D IN SOA xxx.org. root.xxx.org. ( 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum IN NS server.xxx.org. IN A 192.168.1.2 server IN A 192.168.1.2 www IN CNAME server.xxx.org. pc1 IN A 192.168.1.11 pc2 IN A 192.168.1.12 pc1 IN A 192.168.1.13 localhost IN A 127.0.0.1
dove è che non va?
vi prego siate pazienti con me.
grazie




Rispondi quotando
