Round-Robin geht nicht richtig

Hallo,

nun dachte ich „DNS is fertig“. Denkste!
Wenn ich nslookup mit großen Pausen ( 1 min.)auf PC150 absetze funktioniert Round-Robin.
Wenn ich das gleiche sehr schnell durch führe, bekomme ich machmal mehrmals die gleiche Reihenfolge.

Vielleicht gibt es unter euch einen DNS-Experten der mal ein Blick auf nachfolgende Zeilen (reinkopiert) werfen kann.

Vielen Dank
Ralf

PS: Zur besser Ansicht in einen einfachen Texteditor (notepad) kopieren.

/etc/host.conf

order hosts,bind
multi on

/etc/resolv.conf

search network.local
nameserver 192.168.1.4

/etc/named.conf

controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

include „/etc/rndc.key“;

options {
directory „/var/named/“;
forwarders { 145.253.2.11; 145.253.2.75; 145.253.2.203; };
};

zone „.“ {
type hint;
file „named.ca“;
};

zone „0.0.127.in-addr.arpa“ {
type master;
file „0.0.127.in-addr.arpa.zone“;
};

zone „1.168.192.in-addr.arpa“ {
type master;
file „1.168.192.in-addr.arpa.zone“;
};

zone „3.168.192.in-addr.arpa“ {
type master;
file „3.168.192.in-addr.arpa.zone“;
};

zone „2.168.192.in-addr.arpa“ {
type master;
file „2.168.192.in-addr.arpa.zone“;
};

zone „network.local“ {
type master;
file „network.local.zone“;
};

zone „localhost“ {
type master;
file „localhost.zone“;
};

*******************************************
Nachfolgende Files liegen unter /var/named

File: 0.0.127.in-addr.arpa.zone

$TTL 86400
@ IN SOA localhost. root.localhost (
2 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)
@ IN NS localhost.

1 IN PTR localhost.

File: 1.168.192.in-addr.arpa.zone

$TTL 86400
@ IN SOA pc401.network.local. root.localhost (
8 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)

@ IN NS ns.network.local.

1 IN PTR novell.network.local.
2 IN PTR pc300.network.local.
3 IN PTR pc402.network.local.
4 IN PTR pc401.network.local.

File: 2.168.192.in-addr.arpa.zone

$TTL 86400
@ IN SOA ns.network.local. root.localhost (
2 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)

@ IN NS ns.network.local.

2 IN PTR pc150.network.local.

File: 3.168.192.in-addr.arpa.zone

$TTL 86400
@ IN SOA @ root.localhost (
2 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)

@ IN NS ns.network.local.

2 IN PTR bingo.network.local.

File: localhost.zone

$TTL 86400
@ IN SOA @ root.localhost (
2 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)

@ IN NS 127.0.0.1

@ IN MX 100 localhost

File: named.ca

. 3600000 IN NS A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET. 3600000 A 192.168.3.2

File: named.local

$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.

1 IN PTR localhost.

File: network.local.zone

$TTL 86400
@ IN SOA ns.network.local. root.network.local (
10 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)

@ IN NS 192.168.1.4

@ IN MX 1 pc401
pc401 IN MX 2 pc401

pc401 IN A 192.168.1.4
pc300 IN A 192.168.1.2
bingo IN A 192.168.3.2
zeit IN A 192.53.103.104
pc402 IN A 192.168.1.3
pc166 IN A 192.168.1.1
pc150 IN A 192.168.2.2
pc150 IN A 192.168.2.10

novell IN CNAME pc166
isdn IN CNAME bingo
router IN CNAME bingo
gerti IN CNAME pc150
samba IN CNAME pc401
ns IN CNAME pc401
linux IN CNAME pc401

Nachtrag: Round-Robin geht nicht richtig
Hallo,

PS: Zur besser Ansicht in einen einfachen Texteditor (notepad)
kopieren.

Sorry, die Formatierung wird zerstört.
Helfenden kann ich die Zeilen auch direkt in einer gezippten Datei (Dos- oder Unix- Formatierung) senden.

Ralf

Hallo Ralf,

läuft bei dir noch der nscd (Name Service Caching Daemon)? Dieser unterbindet evtl. die Anfrage an den Nameserver und nimmt die Adresse aus dem Cache.

Grüße
Martin

Hallo Ralf,

läuft bei dir noch der nscd (Name Service Caching Daemon)?

Nein, aber nach dem Aufruf von: ps -ef |more sehe ich:
named 828 1 0 12:52 ? 00:00:00 named -u named
named 830 828 0 12:52 ? 00:00:00 named -u named
named 831 830 0 12:52 ? 00:00:00 named -u named
named 832 830 0 12:52 ? 00:00:00 named -u named
named 833 830 0 12:52 ? 00:00:00 named -u named

Hm? Eigene Scripte zum starten des named habe ich aber nicht gebastelt.

Grüße
Ralf

Hallo Ralf,

ich habe das grade mal bei mir ausprobiert. Klappt einwandfrei, allerdings hab ich im reverselookup File (bei dir das File 2.168.192.in-addr.arpa.zone) beide IP Adressen für den Host eingetragen, also:

File: 2.168.192.in-addr.arpa.zone
--------------------------------------------------
$TTL 86400
@ IN SOA ns.network.local. root.localhost (
2 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)
@ IN NS ns.network.local.
2 IN PTR pc150.network.local.
10 IN PTR pc150.network.local.

Das sollte aber eigentlich nicht das Problem sein.

Die Einträge für die Zonefiles in der named.conf sehen bei mir auch etwas anders aus.

zone "pyramide.priv" in {
 type master; ^^^^
 file "pyramide.zone";
};

Ansonsten kann ich keine Unterschiede erkennen. Bis auf die Tatsache, dass Du in den SOA-Records immer den Punkt hinter der e-Mail des Admin vergessen hast.

@ IN SOA localhost. root.localhost.

Grüße
Martin

Hallo Martin,

vielen Dank für deine Mühe.
Neutstart nach Änderung.
CPU bei 1%.
Leider gleicher Effekt wie vorher. Also, „schnelle“ Abfrage innerhalb 2sek … keine exakte umschalten der IPs.
Auf dem gleichen System funzt das mit www.ibm.com wunderbar.

Könntest du evtl. mir deine DNS-Files in komp. Form zu senden, um den Aufbau und die Struktur mit meiner zu vergleichen.
Vielleicht habe ich irgendwo einen Kleinigkeit übersehen.

Grüße
Ralf