Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Installer un domaine sur MacOs 10.3

2 réponses
Avatar
Jerome
Bonjour,

Après avoir installé une première zone et redémarré named, le domaine
installé ne répond pas au ping.
Macos 10.3 tourne avec BIND 9.2.2

Y'a-t-il un problème avec mes fichiers de config ?


$ cat /etc/named.conf
// Declares control channels to be used by the rndc utility.
// It is recommended that 127.0.0.1 be the only address used.
// This also allows non-privileged users on the local host to manage
// your name server.
//
controls {
inet 127.0.0.1 port 54 allow {any; };
};

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 caching only nameserver config
//
zone "." IN {
type hint;
file "named.ca";
};

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 "test.local" {
type master;
file "test.local.zone";
};



$ cat /var/named/test.local.zone
$TTL 86400
$ORIGIN test.local.
@ 1D IN SOA localhost. root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

1D IN NS localhost.
1D IN A 127.0.0.1
* 1D IN A 127.0.0.1



$ grep DNS /etc/hostconfig
DNSSERVER=-YES-


$ cat /var/run/named.pid
295

$ ping test.local
ping: unknown host test.local


Merci pour votre aide

2 réponses

Avatar
nospam
Jerome wrote:

Y'a-t-il un problème avec mes fichiers de config ?


Il n'y a pas une seule machine dans ton fichiers
/var/named/test.local.zone.

AMHA, cele vient de vient de là.

Met au moins quelque chose comme :

monhost IN A <adresse_ip>


Sans oublier le reverse.

De plus un domaine ne répond pas au ping, c'est une machine qui le fait
(ou équipement réseau). A moins d'une config plus ardue.

--
Jacques

Avatar
laurent.pertois
Jerome wrote:

zone "test.local" {


Déjà, en plus de ce qu'à souligné Jacques, c'est une mauvaise idée créer
un top level en .local, ça va entrer en conflit avec Rendezvous (enfin,
avec le multicastDNS de ce dernier), cf :

<http://www.multicastdns.org/DLLC/>

--
Politically Correct Unix - UTILITIES
The "touch" command has been removed from the standard distribution due
to its inappropriate use by high-level managers.