Re: Error: dns_rdata_fromtext: buffer-0x413fe440:1: near 'www': bad dotted quad
Todd Lyons <[email protected]>
| Newsgroups | gmane.network.dns.bind9.dlz |
|---|---|
| Organization | Ivenue.com |
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, Feb 14, 2008 at 10:21:19AM -0800, Rob Butler wrote: >You shouldn't return the host in the lookup query, only in the all >nodes query. Just remove that column from your result set. That worked, thank you. Additionally, there were a few things that were not clear until more googling and more staring at the DLZ docs. I found the answers I needed mostly in the Postfix examples section, oddly enough. Things I have determined: 1. The first lookup is for the record you're attempting to find, for example 'www', and the second lookup is for '@', of which that must return the SOA record at the very minimum. Returning all the SOA information with each and every lookup does absolutely nothing, so my original assumption was false. 2. The SOA field (4th field of the SOA record returned) must be single a concatenated string of all the parts, not the parts returned individually. That's not clear from the documentation, but it is implied by the query configuration in the PostgreSQL and MySQL examples. 3. The mx_priority must be NULL for all records except MX records. Item #3 was kind of heartbreaking for me because up until that point, I had managed to keep my tables unchanged, but in the end I had to create an mx_priority column in my domain_record table. My original table only had name and value, but MX records must have: name '@' value 'mail_server_name' mx_priority (positive integer) I just couldn't cram the information into a name/value pair without a (more) complex (than it needs to be) query. Again, thanks for pointing me in the right direction. Without that first crucial bit of information, none of this would have started making sense. - -- Regards... Todd we're off on the usual strange tangents. next will be whether it is ethical to walk in your neighbor's open house if they're running ipv6:-). --Randy Bush Linux kernel 2.6.22-14-generic 6 users, load average: 0.00, 0.01, 0.00 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHtKIHY2VBGxIDMLwRAuVMAJ4waKHZ6Rlduu8qQCGjn0It/d22JwCfQmS0 1wxsY1Pl89KXL7rDpX8MZBI= =B/+V -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/