PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : opensuse 11 als dns-server



gnoovy
25.08.08, 20:15
hi leutz,

habe in opensuse mittels webmin einen dns-server eingerichtet. unter yast habe ich unter hostnames als domäne die dns-domäne und dns server angegeben. genauso beim client. wenn ich am server oder client ein ping auf den eigenen namen mache, wird dieser auch aufgelöst. nslookup auf beiden seiten ebenfalls ebenfalls erfolgreich. pinge ich jedoch den jeweils anderen rechner mit namen an, kommt immer die meldung unknown client. keine firewall eingerichtet. was könnte hier das problem sein?

named.conf
# Copyright (c) 2001-2004 SuSE Linux AG, Nuernberg, Germany.
# All rights reserved.
#
# Author: Frank Bodammer, Lars Mueller <lmuelle@suse.de>
#
# /etc/named.conf
#
# This is a sample configuration file for the name server BIND 9. It works as
# a caching only name server without modification.
#
# A sample configuration for setting up your own domain can be found in
# /usr/share/doc/packages/bind/sample-config.
#
# A description of all available options can be found in
# /usr/share/doc/packages/bind/misc/options.

options {

# The directory statement defines the name server's working directory

directory "/var/lib/named";

# Write dump and statistics file to the log subdirectory. The
# pathenames are relative to the chroot jail.

dump-file "/var/log/named_dump.db";
statistics-file "/var/log/named.stats";

# The forwarders record contains a list of servers to which queries
# should be forwarded. Enable this line and modify the IP address to
# your provider's name server. Up to three servers may be listed.

#forwarders { 192.0.2.1; 192.0.2.2; };

# Enable the next entry to prefer usage of the name server declared in
# the forwarders section.

#forward first;

# The listen-on record contains a list of local network interfaces to
# listen on. Optionally the port can be specified. Default is to
# listen on all interfaces found on your system. The default port is
# 53.

#listen-on port 53 { 127.0.0.1; };

# The listen-on-v6 record enables or disables listening on IPv6
# interfaces. Allowed values are 'any' and 'none' or a list of
# addresses.

listen-on-v6 { any; };

# The next three statements may be needed if a firewall stands between
# the local server and the internet.

#query-source address * port 53;
#transfer-source * port 53;
#notify-source * port 53;

# The allow-query record contains a list of networks or IP addresses
# to accept and deny queries from. The default is to allow queries
# from all hosts.

#allow-query { 127.0.0.1; };

# If notify is set to yes (default), notify messages are sent to other
# name servers when the the zone data is changed. Instead of setting
# a global 'notify' statement in the 'options' section, a separate
# 'notify' can be added to each zone definition.

notify no;
include "/etc/named.d/forwarders.conf";
};

# To configure named's logging remove the leading '#' characters of the
# following examples.
#logging {
# # Log queries to a file limited to a size of 100 MB.
# channel query_logging {
# file "/var/log/named_querylog"
# versions 3 size 100M;
# print-time yes; // timestamp log entries
# };
# category queries {
# query_logging;
# };
#
# # Or log this kind alternatively to syslog.
# channel syslog_queries {
# syslog user;
# severity info;
# };
# category queries { syslog_queries; };
#
# # Log general name server errors to syslog.
# channel syslog_errors {
# syslog user;
# severity error;
# };
# category default { syslog_errors; };
#
# # Don't log lame server messages.
# category lame-servers { null; };
#};

# The following zone definitions don't need any modification. The first one
# is the definition of the root name servers. The second one defines
# localhost while the third defines the reverse lookup for localhost.

zone "." in {
type hint;
file "root.hint";
};

zone "localhost" in {
type master;
file "localhost.zone";
};

zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};

# Include the meta include file generated by createNamedConfInclude. This
# includes all files as configured in NAMED_CONF_INCLUDE_FILES from
# /etc/sysconfig/named

include "/etc/named.conf.include";

# You can insert further zone records for your own domains below or create
# single files in /etc/named.d/ and add the file names to
# NAMED_CONF_INCLUDE_FILES.
# See /usr/share/doc/packages/bind/README.SUSE for more details.
zone "linuxnet.local" in {
type master;
file "/var/lib/named/master/linuxnet.local.hosts";
allow-update { 192.168.178/24; };
};
zone "178.168.192.in-addr.arpa" in {
type master;
file "/var/lib/named/master/192.168.178.rev";
allow-update { 192.168.178/24; };
};
logging {
category default { log_syslog; };
channel log_syslog { syslog; };
};

Roger Wilco
25.08.08, 20:56
Poste den Inhalt von /var/lib/named/master/linuxnet.local.hosts, /etc/resolv.conf sowie die Ausgabe von "ifconfig -a" oder "ip addr show" beider Rechner. Und diesmal bitte in CODE-Tags.

gnoovy
25.08.08, 21:21
Hi Roger Wilco,

was bedeutet CODE-Tags? Also anbei mal alle Infos

/var/lib/named/master/linuxnet.local.hosts

$ttl 38400
linuxnet.local. IN SOA linux-server01.linuxnet.local. root.linuxnet.local. (
2008082502
10800
3600
604800
38400 )
linuxnet.local. IN NS linux-server01.linuxnet.local.
linux-server01.linuxnet.local. IN A 192.168.178.251
linux-client.linuxnet.local. IN A 192.168.178.250

----------------------------

/var/lib/named/master/192.168.178.rev:
$ttl 38400
178.168.192.in-addr.arpa. IN SOA linux-server01.linuxnet.local. root.linuxnet.local. (
2008082502
10800
3600
604800
38400 )
178.168.192.in-addr.arpa. IN NS linux-server01.linuxnet.local.
251.178.168.192.in-addr.arpa. IN PTR linux-server01.linuxnet.local.
250.178.168.192.in-addr.arpa. IN PTR linux-client.linuxnet.local.
-----------------

/etc/resolv.conf:
### BEGIN INFO
#
#
### END INFO
#
nameserver 192.168.178.251
search linuxnet.local
---------------

ifconfig -a von linux-server01:

eth0 Link encap:Ethernet HWaddr 00:0C:29:51:9A:A4
inet addr:192.168.178.251 Bcast:192.168.178.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25087 errors:0 dropped:0 overruns:0 frame:0
TX packets:5388 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20045919 (19.1 Mb) TX bytes:979198 (956.2 Kb)
Interrupt:18 Base address:0x1424

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:290 errors:0 dropped:0 overruns:0 frame:0
TX packets:290 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:35498 (34.6 Kb) TX bytes:35498 (34.6 Kb)
----------------

ifconfig -a von linux-client:

eth0 Link encap:Ethernet HWaddr 00:0C:29:45:B2:07
inet addr:192.168.178.250 Bcast:192.168.178.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:500 errors:0 dropped:0 overruns:0 frame:0
TX packets:113 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:75533 (73.7 Kb) TX bytes:14291 (13.9 Kb)
Interrupt:18 Base address:0x1424

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:30 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2076 (2.0 Kb) TX bytes:2076 (2.0 Kb)

rolandul00
26.08.08, 07:49
Ist zwar nicht das gleiche Problem aber vielleicht weiss wer ne antwort.

Auf meinem PC funktioniert die Namensauflösung über DNS einwandfrei (kein DHCP). Auch unter Outlook kann ich die Kontoeigenschaften ganz normal die Namen für ausgehenden und eingehenden Server eingeben. Aber auf den anderen PC im Netzwerk muss ich anstatt den Namen die IP-Adressen eingeben - da die Namensauflösung anscheinend doch nicht funktioniert. Und das auch nur teilweise - bei 4 PC funktioniert die Namensauflösung teilweise (Intranet o.k) bei Outlook IP-Adressen und bei den anderen gehts nur mit IP-ADressen.

Weiss vielleicht jemand weiter, vielleicht gibts irgendwo eine Log-Datei wo man sich das anschauen kann.

gnoovy
26.08.08, 13:29
keiner mehr eine Idee :-(?

Roger Wilco
27.08.08, 08:58
was bedeutet CODE-Tags?
Damit werden deine Beiträge etwas lesbarer. Einfach [ CODE ] ... [ /CODE ] (ohne die Leerzeichen) um die Konfigurationsschnippsel oder die Ausgabe von Programmen setzen bzw. im Beitragseditor auf http://www.linuxforen.de/forums/images/editor/code.gif klicken.


Also anbei mal alle Infos
Das sieht sowei mal in Ordnung aus. Welche Ausgabe erhältst du genau, wenn du `ping linux-server01.linuxnet.local` auf dem Client ausführst (bitte unverändert kopieren) und welche Ausgabe erhältst du bei `dig linux-server01.linuxnet.local` und `dig @192.168.178.251 linux-server01.linuxnet.local`? Kannst du die Rechner vom jeweils anderen Rechner aus mit der IP-Adresse anpingen?

Bitte an die CODE-Tags denken!


Ist zwar nicht das gleiche Problem
Richtig, es ist ein anderes Problem. Erstelle dafür bitte einen separaten Thread im entsprechenden Forenbereich.

gnoovy
27.08.08, 21:14
So habe mal die ganzen Befehle direkt als Sceenshot beigefügt. IP-Adresse pingen von jeweils anderem Rechner klappt immer. Die Screenshots sind alle direkt vom Linux-Client. Hat das mit den Code-Tags geklappt?

Roger Wilco
27.08.08, 21:47
So habe mal die ganzen Befehle direkt als Sceenshot beigefügt. IP-Adresse pingen von jeweils anderem Rechner klappt immer.
Das ist recht seltsam. Über die IP-Adresse anpingen ist möglich, d. h. das Netzwerk hat schonmal keinen Knick. Desweiteren klappt die Namensauflösung mit dig ja korrekt, d. h. der Namerserver funktioniert ebenfalls. Weshalb ping mit dem Hostname (der von dig ja offensichtlich aufgelöst wird), kann ich dir leider auch nicht sagen.


Hat das mit den Code-Tags geklappt?
Ja, du solltest die aber nur um die Ausgaben von Programmen und Konfigurationsdateien setzen. :rolleyes:

Rain_maker
27.08.08, 22:02
Hat möglicherweise mit dem ".local" im Domainnamen zu tun, siehe z.B.

http://forums.opensuse.org/network-internet/387358-opensuse-11-0-cant-resolving-hosts-local-domain.html

http://www.linux-club.de/viewtopic.php?f=51&t=85547

http://www.linuxquestions.org/questions/linux-networking-3/suse11-fails-to-join-local-domain-654758/

http://www.linux-community.de/Neues/story?storyid=25048

//Edit:

http://www.novell.com/coolsolutions/tip/15248.html

http://ponderer.org/tomato_firmware


*Please* don’t use .local for these names. .local represents the mDNS (“Zeroconf”, “Bonjour”, “Rendezvous”, etc) top-level domain. Apple machines, or GNU/Linux machines running a Zeroconf stack like Avahi, can automatically assign these names amongst themselves; for instance, a machine named “music” will automatically claim the name “music.local” if nothing else does. If you use .local for centralized DNS, you break that. I suggest something like .lan instead.

Greetz,

RM

gnoovy
27.08.08, 22:26
einer von rain_makers links brachte den erfolg. Trägt man in die /etc/host.conf mdns off ein, klappt es auch mit dem Pingen des Namens direkt. Auch mit .local Domänen ;-) Hatte ja auch früher schon immer funktioniert. Was hat es jedoch mit dem mdns genau auf sich?

Rain_maker
27.08.08, 22:30
http://www.google.de/search?q=mdns&ie=UTF-8&oe=UTF-8

http://de.wikipedia.org/wiki/Zeroconf