crypt066
17.06.07, 15:42
Guten Tag,
ich wollte meinen dedicated einen reverse Verpassen, hab auch schon etliche HowTows durch und auch etliche zonen konfigurationen.
Mir will das einfach nicht in den Kopf was verkehrt ist, nun hoffe ich bei euch hilfe zu finden.
named.conf
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 { 127.0.0.1; };
// 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";
};
// Briefly, a zone which has been declared delegation-only will be effectively
// limited to containing NS RRs for subdomains, but no actual data beyond its
// own apex (for example, its SOA RR and apex NS RRset). This can be used to
// filter out "wildcard" or "synthesized" data from NAT boxes or from
// authoritative name servers whose undelegated (in-zone) data is of no
// interest.
// See http://www.isc.org/products/BIND/delegation-only.html for more info
//zone "COM" { type delegation-only; };
//zone "NET" { type delegation-only; };
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;
};
zone "my.dedicated.in-addr.arpa" IN {
type master;
file "pri/mydedicated.zone";
};
Meine mydedicated.zone
mein.gewünschter.reversedns. IN SOA ns1.dedicated.org. my.dedicated.in-addr.arpa. (
2007061702 10800 1800 3600000 259200 )
gewünschter.reversedns. IN NS ns1.dedicated.org.
gewünschter.reversedns. IN NS ns2.dedicated.org.
ns1.dedicated.org. IN A ip.von.nameserver1
ns2.dedicated.org. IN A ip.von.nameserver2
mein.gewünschter.reversedns. IN A ip.von.my.dedicated
Das hat mir in dem Fall "host -a" ausgegeben:
Trying "my.dedicated.in-addr.arpa"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1001
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;my.dedicated.in-addr.arpa. IN PTR
;; ANSWER SECTION:
my.dedicated.in-addr.arpa. 15063 IN PTR beispiel.server.de.
;; AUTHORITY SECTION:
dedicated.in-addr.arpa. 171983 IN NS ns1.dedicated.org.
dedicated.in-addr.arpa. 171983 IN NS ns2.dedicated.org.
;; ADDITIONAL SECTION:
ns1.dedicated.org. 86400 IN A ip.von.nameserver1
ns2.dedicated.org. 86400 IN A ip.von.nameserver2
Hab meine config anhand des "host -a" output erstellt. Das einzige was ich weiss um ein Reverse zusetzen benötigt man einen "IN A" eintrag und das der "IN NS" und der "IN SOA" immer in der zone gesetzt sein muss.
Naja da haette ich noch ne frage und zwar zu der Serialnummer der zone.
Man erstellt die Serial anhand des Datums und der nummer der neu erstellten zone...
Also wenn ich heute neu versuchen würde die zone abzuändern wäre das: 2007061702, so was ich nur nicht ganz verstehe, sind die letzten beiden Ziffern, beginnt man da mit 01, oder 02 ?
Bin mir nämlich nicht sicher, ob die einstellungen vom Provider mit dazu gezählt werden.
Würde mich freuen, auf eure Hilfe :)
Aber irgendwie krieg ich das nicht gebacken. Zumal das ja auch immer max. 24Std dauert bis die propagation durchgeführt wurde und ich nicht immer große lust hab von vorne zu beginnen :)
ich wollte meinen dedicated einen reverse Verpassen, hab auch schon etliche HowTows durch und auch etliche zonen konfigurationen.
Mir will das einfach nicht in den Kopf was verkehrt ist, nun hoffe ich bei euch hilfe zu finden.
named.conf
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 { 127.0.0.1; };
// 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";
};
// Briefly, a zone which has been declared delegation-only will be effectively
// limited to containing NS RRs for subdomains, but no actual data beyond its
// own apex (for example, its SOA RR and apex NS RRset). This can be used to
// filter out "wildcard" or "synthesized" data from NAT boxes or from
// authoritative name servers whose undelegated (in-zone) data is of no
// interest.
// See http://www.isc.org/products/BIND/delegation-only.html for more info
//zone "COM" { type delegation-only; };
//zone "NET" { type delegation-only; };
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;
};
zone "my.dedicated.in-addr.arpa" IN {
type master;
file "pri/mydedicated.zone";
};
Meine mydedicated.zone
mein.gewünschter.reversedns. IN SOA ns1.dedicated.org. my.dedicated.in-addr.arpa. (
2007061702 10800 1800 3600000 259200 )
gewünschter.reversedns. IN NS ns1.dedicated.org.
gewünschter.reversedns. IN NS ns2.dedicated.org.
ns1.dedicated.org. IN A ip.von.nameserver1
ns2.dedicated.org. IN A ip.von.nameserver2
mein.gewünschter.reversedns. IN A ip.von.my.dedicated
Das hat mir in dem Fall "host -a" ausgegeben:
Trying "my.dedicated.in-addr.arpa"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1001
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;my.dedicated.in-addr.arpa. IN PTR
;; ANSWER SECTION:
my.dedicated.in-addr.arpa. 15063 IN PTR beispiel.server.de.
;; AUTHORITY SECTION:
dedicated.in-addr.arpa. 171983 IN NS ns1.dedicated.org.
dedicated.in-addr.arpa. 171983 IN NS ns2.dedicated.org.
;; ADDITIONAL SECTION:
ns1.dedicated.org. 86400 IN A ip.von.nameserver1
ns2.dedicated.org. 86400 IN A ip.von.nameserver2
Hab meine config anhand des "host -a" output erstellt. Das einzige was ich weiss um ein Reverse zusetzen benötigt man einen "IN A" eintrag und das der "IN NS" und der "IN SOA" immer in der zone gesetzt sein muss.
Naja da haette ich noch ne frage und zwar zu der Serialnummer der zone.
Man erstellt die Serial anhand des Datums und der nummer der neu erstellten zone...
Also wenn ich heute neu versuchen würde die zone abzuändern wäre das: 2007061702, so was ich nur nicht ganz verstehe, sind die letzten beiden Ziffern, beginnt man da mit 01, oder 02 ?
Bin mir nämlich nicht sicher, ob die einstellungen vom Provider mit dazu gezählt werden.
Würde mich freuen, auf eure Hilfe :)
Aber irgendwie krieg ich das nicht gebacken. Zumal das ja auch immer max. 24Std dauert bis die propagation durchgeführt wurde und ich nicht immer große lust hab von vorne zu beginnen :)