Mailinglist Archive: opensuse-de (6883 mails)
| < Previous | Next > |
DNS-Problem mit bind und Webbrowser
- From: Martin Liebeneiner <listen@xxxxxxxxxxxxxx>
- Date: Wed, 24 Jul 2002 18:38:12 +0200
- Message-id: <20020724183812.5f4d701d.listen@xxxxxxxxxxxxxx>
Hallo Liste,
ich habe ein kleines Problem mit meinem DNS (Bind8, Suse 7.3).
Ich habe mir eine lokale Zone angelegt, und liebeneiner.local genannt.
Hier die drei IMHO wichtigen Dateien:
named.conf
acl internal { 127.0.0.1; 192.168.1/24; };
options {
directory "/var/named";
# the default is to fail, if the master file is not correct
check-names master warn;
pid-file "/var/run/named.pid";
datasize default;
stacksize default;
coresize default;
files unlimited;
recursion yes;
multiple-cnames no; // if yes, then a name my have more
// than one CNAME RR. This use
// is non-standard and is not
// recommended, but it is available
// because previous releases supported
// it and it was used by large sites
// for load balancing.
# list of DNS servers to ask
forwarders { 212.63.128.212 ; };
# forwarders { 212.185.249.180 ; };
# 194.25.2.129 ;
# };
# the default is to listen on port 53 on all available interfaces
# you can also give a detailed list:
#listen-on { 192.168.1.252; };
#listen-on port 1234 { !1.2.3.4; 1.2/16; };
} ;
#
# do not be verbose about these problems...
#
#logging {
# category lame-servers { null; };
# category cname { null; };
#};
#
# predefined access control lists (acl):
# "any" allows all hosts
# "none" denies all hosts
# "localhost" allows the IP adresses of all interfaces of the system
# "localnets" allows any host on a network of the local interfaces
#
# defining an additional ACL:
#acl can_download { 192.168.0.17; 192.168.0.18; };
#
# The server statement defines the characteristics to be associated with
# a remote name server.
#
# Marking a server as bogus will prevent queries to that server.
#server 192.168.0.128 { bogus yes; }
# If the other name server has also BIND 8.1 or newer installed, you
# can allow compacter zone transfers with this statement.
# server 192.168.1.250 { transfer-format many-answers; };
zone "." IN {
type hint;
file "root.hint";
};
zone "localhost" IN {
type master;
file "localhost.zone";
check-names fail;
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "127.0.0.zone";
check-names fail;
allow-update { none; };
};
zone "liebeneiner.local" IN {
type master;
file "liebeneiner.zone";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "192.168.1.zone";
allow-update { none; };
};
liebeneiner.zone und 192.168.1.zone
$TTL 52D
1.168.192.in-addr.arpa. IN SOA router.liebeneiner.local. martin.liebeneiner.de.
(
5
1D
2M
52W
2D )
IN NS dns.liebeneiner.local.
250 IN PTR server.liebeneiner.local.
251 IN PTR printserver.liebeneiner.local.
252 IN PTR faxserver.liebeneiner.local.
240 IN PTR laptop.liebeneiner.local.
241 IN PTR client1.liebeneiner.local.
242 IN PTR client2.liebeneiner.local.
231 IN PTR buero1.liebeneiner.local
232 IN PTR buero2.liebeneiner.local
233 IN PTR hartmut.liebeneiner.local
$TTL 3W
liebeneiner.local. IN SOA router martin.liebeneiner.de. (
8
1D
2M
52W
2D )
IN NS dns
in MX 10 smtp
server IN A 192.168.1.250
proxy IN A 192.168.1.250
pop3 IN A 192.168.1.250
smtp IN A 192.168.1.250
time IN A 192.168.1.250
fileserver IN A 192.168.1.250
adabas IN A 192.168.1.250
news IN A 192.168.1.250
dns IN A 192.168.1.250
printserver IN A 192.168.1.251
faxserver IN A 192.168.1.252
server2 IN A 192.168.1.252
router IN A 192.168.1.253
client1 IN A 192.168.1.241
laptop IN A 192.168.1.240
client2 IN A 192.168.1.242
buero1 IN A 192.168.1.231
linux IN A 192.168.1.231
buero2 IN A 192.168.1.232
windows IN A 192.168.1.232
hartmut IN A 192.168.1.233
Das DNS funktioniert auch prächtig, ich kann zum beispiel mit ssh "server2"
problemlos eine ssh-verbindung zum jeweils genannten PC aufbauen, auch andere
Dienste funktionieren einwandfrei
Aber wenn ich in einem beliebigem Browser mit aktiviertem Proxy "Proxy:8080"
eingebe: server:2000 (um webmin zu starten), dann kann der Rechner nicht
gefunden werden. :-(
Erst wenn ich eingebe server.liebeneiner.local:2000 , dann erscheint Webmin.
Woran kann das liegen? Die resolv conf eines jeden Rechners lautet (über DHCP
verteilt):
search liebeneiner.local
nameserver 192.168.1.250
Für Hinweise wäre ich dankbar!
cu,
Martin
ich habe ein kleines Problem mit meinem DNS (Bind8, Suse 7.3).
Ich habe mir eine lokale Zone angelegt, und liebeneiner.local genannt.
Hier die drei IMHO wichtigen Dateien:
named.conf
acl internal { 127.0.0.1; 192.168.1/24; };
options {
directory "/var/named";
# the default is to fail, if the master file is not correct
check-names master warn;
pid-file "/var/run/named.pid";
datasize default;
stacksize default;
coresize default;
files unlimited;
recursion yes;
multiple-cnames no; // if yes, then a name my have more
// than one CNAME RR. This use
// is non-standard and is not
// recommended, but it is available
// because previous releases supported
// it and it was used by large sites
// for load balancing.
# list of DNS servers to ask
forwarders { 212.63.128.212 ; };
# forwarders { 212.185.249.180 ; };
# 194.25.2.129 ;
# };
# the default is to listen on port 53 on all available interfaces
# you can also give a detailed list:
#listen-on { 192.168.1.252; };
#listen-on port 1234 { !1.2.3.4; 1.2/16; };
} ;
#
# do not be verbose about these problems...
#
#logging {
# category lame-servers { null; };
# category cname { null; };
#};
#
# predefined access control lists (acl):
# "any" allows all hosts
# "none" denies all hosts
# "localhost" allows the IP adresses of all interfaces of the system
# "localnets" allows any host on a network of the local interfaces
#
# defining an additional ACL:
#acl can_download { 192.168.0.17; 192.168.0.18; };
#
# The server statement defines the characteristics to be associated with
# a remote name server.
#
# Marking a server as bogus will prevent queries to that server.
#server 192.168.0.128 { bogus yes; }
# If the other name server has also BIND 8.1 or newer installed, you
# can allow compacter zone transfers with this statement.
# server 192.168.1.250 { transfer-format many-answers; };
zone "." IN {
type hint;
file "root.hint";
};
zone "localhost" IN {
type master;
file "localhost.zone";
check-names fail;
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "127.0.0.zone";
check-names fail;
allow-update { none; };
};
zone "liebeneiner.local" IN {
type master;
file "liebeneiner.zone";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "192.168.1.zone";
allow-update { none; };
};
liebeneiner.zone und 192.168.1.zone
$TTL 52D
1.168.192.in-addr.arpa. IN SOA router.liebeneiner.local. martin.liebeneiner.de.
(
5
1D
2M
52W
2D )
IN NS dns.liebeneiner.local.
250 IN PTR server.liebeneiner.local.
251 IN PTR printserver.liebeneiner.local.
252 IN PTR faxserver.liebeneiner.local.
240 IN PTR laptop.liebeneiner.local.
241 IN PTR client1.liebeneiner.local.
242 IN PTR client2.liebeneiner.local.
231 IN PTR buero1.liebeneiner.local
232 IN PTR buero2.liebeneiner.local
233 IN PTR hartmut.liebeneiner.local
$TTL 3W
liebeneiner.local. IN SOA router martin.liebeneiner.de. (
8
1D
2M
52W
2D )
IN NS dns
in MX 10 smtp
server IN A 192.168.1.250
proxy IN A 192.168.1.250
pop3 IN A 192.168.1.250
smtp IN A 192.168.1.250
time IN A 192.168.1.250
fileserver IN A 192.168.1.250
adabas IN A 192.168.1.250
news IN A 192.168.1.250
dns IN A 192.168.1.250
printserver IN A 192.168.1.251
faxserver IN A 192.168.1.252
server2 IN A 192.168.1.252
router IN A 192.168.1.253
client1 IN A 192.168.1.241
laptop IN A 192.168.1.240
client2 IN A 192.168.1.242
buero1 IN A 192.168.1.231
linux IN A 192.168.1.231
buero2 IN A 192.168.1.232
windows IN A 192.168.1.232
hartmut IN A 192.168.1.233
Das DNS funktioniert auch prächtig, ich kann zum beispiel mit ssh "server2"
problemlos eine ssh-verbindung zum jeweils genannten PC aufbauen, auch andere
Dienste funktionieren einwandfrei
Aber wenn ich in einem beliebigem Browser mit aktiviertem Proxy "Proxy:8080"
eingebe: server:2000 (um webmin zu starten), dann kann der Rechner nicht
gefunden werden. :-(
Erst wenn ich eingebe server.liebeneiner.local:2000 , dann erscheint Webmin.
Woran kann das liegen? Die resolv conf eines jeden Rechners lautet (über DHCP
verteilt):
search liebeneiner.local
nameserver 192.168.1.250
Für Hinweise wäre ich dankbar!
cu,
Martin
| < Previous | Next > |