Zalut !
Je tente déséspérément d'attribuer un nom de domaine à mon adresse IP (en local seulement, pour le moment.)
Détails importants :
• Adresse IP de la machine : 192.168.0.9
• Nom de domaine : johnny.intra
•
http://192.168.0.9 executé sur une autre machine fonctionne très bien.
• wget johnny.intra effectué depuis la machine sous fedora fonctionne, mais pas depuis une autre machine du réseau
• J'ai une freebox en mode routeur (le port 80 est bel et bien ouvert)
• Le pare-feu sous fedora accepte les connections WWW (http)
• Je suis un débutant de chez débutant.
• J'ai désactivé selinux.
• mon /etc/resolv.conf
search johnny.intra
nameserver 192.168.0.9
nameserver 212.27.32.5
nameserver 212.27.32.176
nameserver 212.27.32.177
• /etc/named.conf
//
// named.conf for Red Hat caching-nameserver
//
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* 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 caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};
include "/etc/rndc.key";
zone "0.168.192.in-addr.arpa" {
type master;
file "dn.192.168.0.dns";
};
zone "johnny.intra" {
type master;
file "dn.johnny.intra.dns";
};
• et donc /var/named/dn.192.168.0.dns
0.168.192.in-addr.arpa. IN SOA srv.johnny.intra. admin@johnny.intra. (
2000070306 ; serial
3600 ; refresh
900 ; retry
1209600 ; expire
43200 ; default_ttl
)
0.168.192.in-addr.arpa. IN NS srv.johnny.intra.
9.0.168.192.in-addr.arpa. IN PTR srv.johnny.intra.
0.0.168.192.in-addr.arpa. IN PTR srv.johnny.intra.
• et enfin ... /var/named/dn.johnny.intra.dns
johnny.intra. IN SOA srv.johnny.intra.
admin@johnny.intra. (
2000070306 ; serial
3600 ; refresh
900 ; retry
1209600 ; expire
43200 ; default_ttl
)
johnny.intra. IN NS srv.johnny.intra.
srv.johnny.intra. IN A 192.168.0.9
routeur.johnny.intra. IN A 192.168.0.0
www IN CNAME srv
ftp IN CNAME srv
mysql IN CNAME srv
* IN CNAME srv
Je n'ai rien fait de plus que tout ce que j'ai énoncé plus haut.
... Quelque chose cloche ? semble clocher ? une ligne est fausse ? ai-je oublié de paramétrer quelque chose ? quel âge à le capitaine ?
Merzi.