BIND9 dynamique et ordinateur multiboot - BIND9 dynamique et ordinateur multiboot

Bonjour,

  J'ai configuré un DNS sur un serveur Mandrake 10.1 et j'ai un problème avec la mise à jour du DNS avec mes 2 ordinateurs multiboot (windows et linux sur un petit réseau à la maison). En effet, que ce soit sous linux ou sous windows j'aimerai conservé le même nom d'ordinateur et bien que le serveur dynamique DNS fonctionne très bien la mise à jour des enregitrements A du DNS ne se fait pas quand on passs de linux à windows car il y a refus de BIND de mettre à jour cet enregistrement A car les pré-requis ne sont pas respectés. Y-a-t'il un moyen de forcer la mise à jour des enregistrements ? Sous linux il y a nsupdate qui fait le travail mais je n'ai rien trouvé de similaire pour windows. Voici mes fichiers de configuration :

named.conf :

dynamic DNS control file

Date: February 18, 2006

options {
directory “/var/named”;
pid-file “/var/run/named/named.pid”;
listen-on {
192.168.1.2;
127.0.0.1;
};
forwarders {
x.x.x.x; // ce n’est pas la valeur réelle
y.y.y.y; // ce n’est pas la valeur réelle
};

forward first;
notify yes;
};

logging {
channel update_debug {
file "/var/named/update-debug.log";
severity debug 3;
print-category yes;
print-severity yes;
print-time yes;
};
channel security_info {
file "/var/named/named-auth.log";
severity info;
print-category yes;
print-severity yes;
print-time yes;
};

    category update { update_debug; };
    category security { security_info; };

};

#include "/etc/rndc.key";

acl "mesordis" {
any;
};

key rndckey {
algorithm hmac-md5;
secret "ma_clé";
};

controls {
inet 127.0.0.1 port 953 allow { 127.0.0.1;} keys { rndckey; };
};

zone "." in {
type hint;
file "/var/named/root.hint";
};

zone "localhost" in {
type master;
file "/var/named/localhost.zone";
};

zone "0.0.127.in-addr.arpa" in {
type master;
file "/var/named/127.0.0.zone";
notify yes;
};

zone "nowhere.com" {
type master;
allow-query { any; };
file "/var/named/nowhere.com.zone";
allow-update { key rndckey; };
#update-policy { grant rndckey subdomain nowhere.com any;};
};

zone "1.168.192.in-addr.arpa" {
type master;
allow-query { any; };
file "/var/named/192.168.1.zone";
allow-update { key rndckey; };
#update-policy { grant rndckey subdomain nowhere.com any;};
};

dhcpd.conf :

authoritarive;
ddns-update-style interim;
option routers 192.168.1.2;
option domain-name-servers 192.168.1.2;
option domain-name "nowhere.com";

key rndckey {
algorithm hmac-md5;
secret "ma_clé";
};

nowhere.com site

#subnet 192.168.1.0 netmask 255.255.255.0 {
#allow client-updates;
#ddns-updates on;
#authoritative;
#range 192.168.1.10 192.168.1.20;
#option subnet-mask 255.255.255.0;
#allow unknown-clients;
#}

nowhere zone

zone nowhere.com. {
primary 127.0.0.1;
key rndckey;
}

reverse DNS for nowhere.com zone

zone 1.168.192.in-addr.arpa. {
primary 127.0.0.1;
key rndckey;
}

host LinksysStore.nowhere.com {
hardware ethernet 00:0f:66:7b:f8:c8;
fixed-address 192.168.1.30;
update-static-leases on;
}

Mon subnet

subnet 192.168.1.0 netmask 255.255.255.0 {
do-forward-updates true;
allow client-updates;
allow duplicates;
option domain-name "nowhere.com";
ddns-updates on;
ddns-domainname "nowhere.com";
range 192.168.1.10 192.168.1.20;
allow unknown-clients;
authoritative;
}

Voici le message d’erreur que j’obtiens quand windows “boote” :

update unsuccessful: ordi02.nowhere.com: ‘name not in use’ prerequisite not satisfied (YXDOMAIN)
update unsuccessful: ordi02.nowhere.com/TXT: ‘RRset exists (value dependent)’ prerequisite not satisfied (NXRRSET)

Merci pour votre aide.

O.D.

P.S. : Mes ordinateurs sous windows sont windows xp pro ou windows xp home.

sympaaa :slight_smile:

merci pour la soluce :wink: