Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 26/10/2015, à 21:35

obotineau

Configuration BIND9 échec

Bien le bonsoir à tous,
Je souhaites avoir un nom de domaine FQDN chezmoi.lan affecté à l'adresse IP 192.168.0.50.

J'ai suivi ce lien :
http://doc.ubuntu-fr.org/bind9
mais le test final ne fonctionne pas (ping -c 2 chezmoi.lan ne trouve pas l'hôte)

J'ai du mal à comprendre la doc :-(

Je vous met mes fichiers de conf :

/etc/bind/db.192

;
; BIND reverse data file for local loopback interface
;
$TTL	604800
@	IN	SOA	ns.chezmoi.lan. admin.chezmoi.lan. (
			      2		; Serial
			 604800		; Refresh
			  86400		; Retry
			2419200		; Expire
			 604800 )	; Negative Cache TTL
;
@	IN	NS	ns.chezmoi.lan.
10	IN	PTR	ns.chezmoi.lan.

/etc/bind/db.chezmoi.lan

;
; BIND data file for local loopback interface
;
$TTL	604800
@	IN	SOA	ns.chezmoi.lan. admin.chezmoi.lan. (
			      3		; Serial
			 604800		; Refresh
			  86400		; Retry
			2419200		; Expire
			 604800 )	; Negative Cache TTL
;
@	IN	NS	ns.chezmoi.lan.
@	IN	A	192.168.0.50
@	IN	AAAA	::1
infodium	IN	A	192.168.0.50
ns.chezmoi.lan	IN	A	192.168.0.50

/etc/bind/named.conf.local

//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

zone "chezmoi.lan" IN {
	type master;
        file "/etc/bind/db.chezmoi.lan";
        };

zone "0.168.192.in-addr.arpa" {
        type master;
        notify yes;
        file "/etc/bind/db.192";
};

/etc/bind/named.conf.options

options {
	directory "/var/cache/bind";

	// If there is a firewall between you and nameservers you want
	// to talk to, you may need to fix the firewall to allow multiple
	// ports to talk.  See http://www.kb.cert.org/vuls/id/800113

	// If your ISP provided one or more IP addresses for stable 
	// nameservers, you probably want to use them as forwarders.  
	// Uncomment the following block, and insert the addresses replacing 
	// the all-0's placeholder.

	#// forwarders {
	#// 	0.0.0.0;
	#// };

	//========================================================================
	// If BIND logs error messages about the root key being expired,
	// you will need to update your keys.  See https://www.isc.org/bind-keys
	//========================================================================
	dnssec-validation auto;

	auth-nxdomain no;    # conform to RFC1035
	listen-on-v6 { ::1; };
};

J'avoue que je ne suis pas fort en réseau.
J'espère que vous allez pouvoir m'aider et si vous avez besoin d'autres infos je vous les donerai.

Merci par avance,
Olivier.

Hors ligne

#2 Le 26/10/2015, à 21:44

obotineau

Re : Configuration BIND9 échec

J'oubliais /etc/resolv.conf :

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1

Est-ce que c'est là que je dois mettre ns.chezmoi.lan ?

Hors ligne

#3 Le 27/10/2015, à 17:00

obotineau

Re : Configuration BIND9 échec

Je souhaiterais avoir des web apps sur mon petit intranet :
http://webapp1.chezmoi.lan
http://webapp2.chezmoi.lan
http://webapp3.chezmoi.lan
...

Comment configurer Bind9 pour produire un ping sur ces FQDN à 0% de perte ?

Hors ligne