puggan / NamecoinToBind

NamecoinToBind is a php script that generates bind zones for .bit domains from the namecoin blockchain by using the name_scan rpc command.
0 stars 0 forks source link

DS records not accepted by named, bad hex encoding #1

Open puggan opened 9 years ago

puggan commented 9 years ago

running named-checkzone bit db.namecoin.bit

get this kind of output:

dns_rdata_fromtext: db.namecoin.bit:15: near eol: bad hex encoding dns_rdata_fromtext: db.namecoin.bit:16: near eol: bad hex encoding zone bit/IN: loading from master file db.namecoin.bit failed: bad hex encoding zone bit/IN: not loaded due to errors.

where row 15 and 16 is:

puggan IN DS 6924 7 1 0B9DFCD37D37EB6D41EB7085EF603DEF4F7DD44079135F03085F3D080E39 puggan IN DS 6924 7 2 D80DC4DFB077DB6045D82D38DC3EB9F36DC1EFA0FC0F6100DBBE7803D040102D3DF7A03CEBCEFB085DB9135F04D85D75

puggan commented 9 years ago

the row should have been:

puggan.bit. IN DS 6924 7 1 C5380303621B63CF72A970991EB5E18DCF89CA45 puggan.bit. IN DS 6924 7 2 2A3E37B322BF2C043D65823B76D8D2EA2754A9BAEC0996A86877CF25 E18E2F11

Bind store the DS records in hex, while namecoin should store them in base64, but some people try to store the DS record as hex in the namecoin blockchain, and when the hex passes the base64->hex convertion, it's gets messed up.