bind dlz postgres

Fórumok

bind dlz postgres

Hozzászólások

Sziasztok!

Használ valaki dlz patchet bind9-hez meg postgres-t?

Az a problémám, hogy mondjuk az adatbázisból egy normál rekurziót végre tud hajtani, de egy ns v. soa lekérdezést már nem.
Pl.:

[code:1:ca103ddb30]debian:/# dig -t any www.test.tld @127.0.0.1

; <<>> DiG 9.2.2 <<>> -t any www.test.tld @127.0.0.1
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41314
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.test.tld. IN ANY

;; ANSWER SECTION:
www.test.tld. 0 IN TXT "webserver"
www.test.tld. 3600 IN A 10.30.30.30

;; Query time: 11 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Oct 27 11:02:27 2004
;; MSG SIZE rcvd: 67

debian:/#

debian:/# dig -t soa test.tld @127.0.0.1

; <<>> DiG 9.2.2 <<>> -t soa test.tld @127.0.0.1
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 41054
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;test.tld. IN SOA

;; Query time: 12 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Oct 27 11:04:55 2004
;; MSG SIZE rcvd: 25

debian:/# host -t soa test.tld 127.0.0.1
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases:

Host test.tld not found: 2(SERVFAIL)
debian:/#[/code:1:ca103ddb30]

A logba ez kerül:

[code:1:ca103ddb30]Oct 27 09:40:11 debian named[3184]: 736 Got DBI - checking query
Oct 27 09:40:11 debian named[3184]: 736 checked query
Oct 27 09:40:11 debian named[3184]: 736 did zone
Oct 27 09:40:11 debian named[3184]: 736 did record
Oct 27 09:40:11 debian named[3184]: 736 did client
Oct 27 09:40:11 debian named[3184]: 736 built query
Oct 27 09:40:11 debian named[3184]: 736 query is 'select ttl, type, mx_priority, data, resp_person, serial, refresh, retry, expire, minimum from dns_records where zone = 'test.tld' and (type = 'SOA' or type= 'NS')'
Oct 27 09:40:11 debian named[3184]: 736 executing query for 0 time
Oct 27 09:40:11 debian named[3184]: 736 rs ok
Oct 27 09:40:11 debian named[3184]: 736 cleaning up
Oct 27 09:40:11 debian named[3184]: 736 returning
Oct 27 09:40:11 debian named[3184]: dns_rdata_fromtext: buffer-0xbfffe2d0:1: near eof: unexpected end of input
Oct 27 09:40:11 debian named[3184]: dns_sdlz_putrr returned error. Error code was: unexpected end of input[/code:1:ca103ddb30]
Az adatbázis melyik oszlopába mikor és milyen információkat kell/érdemes írni. Sem a web oldalán sem a google-en nem találtam semmilyen célravezető infót. :(

Köszi!
Gus

[quote:fd7e04ce21="pinterg"]Sziasztok!

Használ valaki dlz patchet bind9-hez meg postgres-t?

Az a problémám, hogy mondjuk az adatbázisból egy normál rekurziót végre tud hajtani, de egy ns v. soa lekérdezést már nem.
Pl.:

[code:1:fd7e04ce21]debian:/# dig -t any www.test.tld @127.0.0.1

; <<>> DiG 9.2.2 <<>> -t any www.test.tld @127.0.0.1
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41314
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.test.tld. IN ANY

;; ANSWER SECTION:
www.test.tld. 0 IN TXT "webserver"
www.test.tld. 3600 IN A 10.30.30.30

;; Query time: 11 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Oct 27 11:02:27 2004
;; MSG SIZE rcvd: 67

debian:/#

debian:/# dig -t soa test.tld @127.0.0.1

; <<>> DiG 9.2.2 <<>> -t soa test.tld @127.0.0.1
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 41054
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;test.tld. IN SOA

;; Query time: 12 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Oct 27 11:04:55 2004
;; MSG SIZE rcvd: 25

debian:/# host -t soa test.tld 127.0.0.1
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases:

Host test.tld not found: 2(SERVFAIL)
debian:/#[/code:1:fd7e04ce21]

A logba ez kerül:

[code:1:fd7e04ce21]Oct 27 09:40:11 debian named[3184]: 736 Got DBI - checking query
Oct 27 09:40:11 debian named[3184]: 736 checked query
Oct 27 09:40:11 debian named[3184]: 736 did zone
Oct 27 09:40:11 debian named[3184]: 736 did record
Oct 27 09:40:11 debian named[3184]: 736 did client
Oct 27 09:40:11 debian named[3184]: 736 built query
Oct 27 09:40:11 debian named[3184]: 736 query is 'select ttl, type, mx_priority, data, resp_person, serial, refresh, retry, expire, minimum from dns_records where zone = 'test.tld' and (type = 'SOA' or type= 'NS')'
Oct 27 09:40:11 debian named[3184]: 736 executing query for 0 time
Oct 27 09:40:11 debian named[3184]: 736 rs ok
Oct 27 09:40:11 debian named[3184]: 736 cleaning up
Oct 27 09:40:11 debian named[3184]: 736 returning
Oct 27 09:40:11 debian named[3184]: dns_rdata_fromtext: buffer-0xbfffe2d0:1: near eof: unexpected end of input
Oct 27 09:40:11 debian named[3184]: dns_sdlz_putrr returned error. Error code was: unexpected end of input[/code:1:fd7e04ce21]
Az adatbázis melyik oszlopába mikor és milyen információkat kell/érdemes írni. Sem a web oldalán sem a google-en nem találtam semmilyen célravezető infót. :(

Köszi!
Gus

Rájöttem a hibára.
Az adatbázis SOA sorában a data mező üres volt, ezért dobta ezt vissza.

Most viszont a zóna transfer beállításánál akadtam el. :(

Gus