View previous topic :: View next topic |
Author |
Message |
LeonGaultier Tux's lil' helper
Joined: 25 May 2003 Posts: 99
|
Posted: Wed Dec 27, 2006 10:11 am Post subject: ddns dhcp |
|
|
Hi
Ich habe da ein ganz kleines Problem. Ich versuche ees erstmal ohne Configfiles. Eventuell kennt das ja schon einer.
Ich habe bind und DHCP als ddns. Das geht auch soweit super. Die meisten Clients kann ich anpingen. Dann gibt es einen bei dem es erst nach 2 Stunden oder so ging. Und jetzt habe ich noch meinen Drucker. Da geht es gar nicht.
Habe mal im log nachgeschaut. Dort wird der Drucker korrekt erkannt und mit der selben Zeile wie die Clients die gehen eingetragen. Aber ein ping auf den namen des Clients sagt unknown host.
Vielleicht weiß da schon einer bescheid. Wenn nicht poste ich auch die config files.
Gruß Leon _________________ Wenn Microsoft die Lösung meines Problems ist, dann möchte ich gerne mein Problem wieder! |
|
Back to top |
|
|
LunX Guru
Joined: 18 May 2004 Posts: 391 Location: Rastede
|
Posted: Wed Dec 27, 2006 11:40 am Post subject: |
|
|
evtl. in deiner /etc/hosts den Drucker eingetragen?
Gruß
Lunx |
|
Back to top |
|
|
think4urs11 Bodhisattva
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Wed Dec 27, 2006 11:44 am Post subject: |
|
|
Wer trägt denn im DNS ein? Macht das dein DHCP-Server oder die Clients selbst?
In letzterem Fall - tragen die sich jeweils mit/ohne domain ein?
Ist die Domain auf allen Geräten gleich oder wenigstens überall als search eingetragen?
Was sagt denn ein dig 'hostname', dig 'hostname'.'deine domain', dig -x 'ip des Hosts' _________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
|
LeonGaultier Tux's lil' helper
Joined: 25 May 2003 Posts: 99
|
Posted: Wed Dec 27, 2006 4:07 pm Post subject: |
|
|
Also wenn ich das richtig verstanden habe, macht das mein DHCP. Wie gesagt mit allen anderen Clients geht es ja ohne Probleme. Habe zwar bis jetzt nur Linuxclients getestet. Aber da kein Thema.
In der LEON.LOCAL.zone werden nur die Clientnamen mit IP eingetragen. In der 192.168.1 Zone Datei werden die Clientnamen mit Domaine sowie dem letzten Block meiner IP Adressen eingetragen.
Hier mal die Files.
dhcpd.conf
Code: |
default-lease-time 600;
max-lease-time 7200;
allow unknown-clients;
allow client-updates;
ddns-ttl 600;
ddns-update-style interim;
ddns-domainname "leon.local";
update-static-leases true;
ddns-rev-domainname "in-addr.arpa";
# ddns-update-style none;
authoritative;
key "rndc-key" {
algorithm hmac-md5;
secret "qXpG/eNfx2vVIZ2WZShIbA==";
};
zone 1.168.192.in-addr.arpa {
primary 192.168.1.3;
key "rndc-key";
}
zone LEON.LOCAL {
primary 192.168.1.3;
key "rndc-key";
}
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.250;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.1.3;
option domain-name "leon.local";
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
option smtp-server 192.168.1.3;
}
|
named.conf
Code: |
acl "home" { 192.168.1.0/24; };
key "rndc-key" {
algorithm hmac-md5;
secret "qXpG/eNfx2vVIZ2WZShIbA==";
};
options {
directory "/var/bind";
// uncomment the following lines to turn on DNS forwarding,
// and change the forwarding ip address(es) :
//forward first;
//forwarders {
// 123.123.123.123;
// 123.123.123.123;
//};
listen-on-v6 { none; };
listen-on { any; };
cleaning-interval 120;
// to allow only specific hosts to use the DNS server:
//allow-query {
// 127.0.0.1;
//};
// if you have problems and are behind a firewall:
//query-source address * port 53;
pid-file "/var/run/named/named.pid";
allow-transfer { "home"; };
allow-query { "home"; };
listen-on port 53 { 192.168.1.3; };
auth-nxdomain yes; # conform to RFC1035
forwarders { 209.244.0.3; 209.244.0.4; };
};
zone "LEON.LOCAL" {
type master;
file "pri/LEON.LOCAL.zone";
notify no;
allow-update { key "rndc-key"; };
};
zone "1.168.192.in-addr.arpa" {
type master;
file "pri/192.168.1.zone";
notify no;
allow-update { key "rndc-key"; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "pri/localhost.zone";
allow-update { none; };
notify no;
};
zone "127.in-addr.arpa" IN {
type master;
file "pri/127.zone";
allow-update { none; };
notify no;
};
|
192.168.1.zone
Code: |
$ORIGIN .
$TTL 604800 ; 1 week
1.168.192.in-addr.arpa IN SOA SERVER.LEON.LOCAL. root.LEON.LOCAL. (
2002081641 ; serial
10800 ; refresh (3 hours)
900 ; retry (15 minutes)
604800 ; expire (1 week)
86400 ; minimum (1 day)
)
NS SERVER.LEON.LOCAL.
$ORIGIN 1.168.192.in-addr.arpa.
1 PTR INET-ROUTER.leon.local.
18 PTR AccesPointBuero.leon.local.
19 PTR AccesPointAndy.leon.local.
$TTL 600 ; 10 minutes
200 PTR EMMA.leon.local.
$TTL 604800 ; 1 week
3 PTR SERVER.leon.local.
|
LEON.LOCAL.zone
Code: |
$ORIGIN .
$TTL 604800 ; 1 week
LEON.LOCAL IN SOA SERVER.LEON.LOCAL. root.LEON.LOCAL. (
2002081652 ; serial
28800 ; refresh (8 hours)
14400 ; retry (4 hours)
604800 ; expire (1 week)
86400 ; minimum (1 day)
)
NS SERVER.
$ORIGIN LEON.LOCAL.
AccesPointAndy A 192.168.1.19
AccesPointBuero A 192.168.1.18
$TTL 600 ; 10 minutes
EMMA A 192.168.1.200
TXT "3143a027b8e69b366931d0e892171564fe"
$TTL 604800 ; 1 week
INET-ROUTER A 192.168.1.160
SERVER A 192.168.1.3
|
So hoffe das hielft etwas. Das Programm dig habe ich leider nicht gefunden.
Gruß Leon _________________ Wenn Microsoft die Lösung meines Problems ist, dann möchte ich gerne mein Problem wieder! |
|
Back to top |
|
|
mr_elch Apprentice
Joined: 18 Jun 2004 Posts: 170
|
Posted: Wed Dec 27, 2006 8:10 pm Post subject: |
|
|
Quote: | Das Programm dig habe ich leider nicht gefunden. |
Dig ist Bestandteil des Paketes bind-tools.
Code: | * net-dns/bind-tools
Latest version available: 9.3.2
Latest version installed: 9.3.2
Size of files: 5,177 kB
Homepage: http://www.isc.org/products/BIND/bind9.html
Description: bind tools: dig, nslookup, and host
License: as-is
|
|
|
Back to top |
|
|
LeonGaultier Tux's lil' helper
Joined: 25 May 2003 Posts: 99
|
Posted: Thu Dec 28, 2006 5:27 am Post subject: |
|
|
Ok Danke. Dann muß ich es also auf den Server installieren?!
@Think4UrS11
Die Einträge in der resolv.conf auf den Clients sind immer komplett. die Domaine steht als search drin und da drunter der korrekte nameserver. Es ist einzig und allein der Drucker den ich nicht erreiche.
Nachtrag.
Habe jetzt mal dig ausgeführt. Wenn ich das mit einen meiner funktionierenden Clients mache, kommt das dabei raus.
dig host
Code: |
SERVER ~ # dig emma
; <<>> DiG 9.3.3 <<>> emma
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 42708
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;emma. IN A
;; AUTHORITY SECTION:
. 10800 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2006122701 1800 900 604800 86400
;; Query time: 2161 msec
;; SERVER: 192.168.1.3#53(192.168.1.3)
;; WHEN: Thu Dec 28 06:34:08 2006
;; MSG SIZE rcvd: 97
|
Und bei meinem Drucker das hier.
Code: |
dig c510-buero
; <<>> DiG 9.3.3 <<>> c510-buero
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 7576
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;c510-buero. IN A
;; AUTHORITY SECTION:
. 10800 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2006122701 1800 900 604800 86400
;; Query time: 154 msec
;; SERVER: 192.168.1.3#53(192.168.1.3)
;; WHEN: Thu Dec 28 06:35:27 2006
;; MSG SIZE rcvd: 103
|
dig -x ip-des-host
Rechner
Code: |
dig -x 192.168.1.200
; <<>> DiG 9.3.3 <<>> -x 192.168.1.200
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46273
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:
;200.1.168.192.in-addr.arpa. IN PTR
;; ANSWER SECTION:
200.1.168.192.in-addr.arpa. 600 IN PTR EMMA.leon.local.
;; AUTHORITY SECTION:
1.168.192.in-addr.arpa. 604800 IN NS SERVER.leon.local.
;; ADDITIONAL SECTION:
SERVER.leon.local. 604800 IN A 192.168.1.3
;; Query time: 1 msec
;; SERVER: 192.168.1.3#53(192.168.1.3)
;; WHEN: Thu Dec 28 06:40:01 2006
;; MSG SIZE rcvd: 110
|
Drucker
Code: |
dig -x 192.168.1.160
; <<>> DiG 9.3.3 <<>> -x 192.168.1.160
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32416
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:
;160.1.168.192.in-addr.arpa. IN PTR
;; ANSWER SECTION:
160.1.168.192.in-addr.arpa. 600 IN PTR C510-Buero.leon.local.
;; AUTHORITY SECTION:
1.168.192.in-addr.arpa. 604800 IN NS SERVER.leon.local.
;; ADDITIONAL SECTION:
SERVER.leon.local. 604800 IN A 192.168.1.3
;; Query time: 1 msec
;; SERVER: 192.168.1.3#53(192.168.1.3)
;; WHEN: Thu Dec 28 06:40:05 2006
;; MSG SIZE rcvd: 116
|
_________________ Wenn Microsoft die Lösung meines Problems ist, dann möchte ich gerne mein Problem wieder! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|