unescaped double quotes in TXT record
Hugo Monteiro <[email protected]> Mon, 24 May 2010 10:46:30 +0100
| Newsgroups | gmane.network.djbdns |
|---|---|
| Message-ID | <[email protected]> |
Hello all, I've been presented with a setup for a Bonjour service using dns-sd. Not wanting to deploy yet another nameserver for the job, i decided to use my existing tinydns server for that effect. I set up the PTR and SRV records accordingly to the available howtos and dig confirms that everything is just fine and dandy. Then there is the need to setup a TXT record which holds multiple double quotes. The thing is that tinydns escapes those quotes, as we can see in this dig question/answer pair: ;; QUESTION SECTION: ;hp_4050._ipp._tcp.dev.hmonteiro.net. IN TXT ;; ANSWER SECTION: hp_4050._ipp._tcp.dev.hmonteiro.net. 60 IN TXT "\"qtotl=1\" \"rp=printers/HP\" \"ty=HP LaserJet 4050 Series PS\" \"product=(HP LaserJet 4050 Series)\" \"pdl=application/postscript\"" This will make the dns-sd bonjour lookups to fail. I have made the same test with a bind server and the results are a bit different as we can see from the following excerpt: ;; QUESTION SECTION: ;xerox_phaser_6130n._ipp._tcp.dev.hmonteiro.net. IN TXT ;; ANSWER SECTION: xerox_phaser_6130n._ipp._tcp.dev.hmonteiro.net. 60 IN TXT "qtotl=1" "rp=printers/xerox6130n" "ty=Xerox Phaser 6130N" "product=(Phaser 6130N)" "pdl=application/postscript" So my question basically is: How can i publish unescaped double quotes in TXT records, with tinydns. (using \042 instead of the literal character doesn't work either, having the same effect as using the quotes directly) Thank you all in advance, Hugo Monteiro. -- fct.unl.pt:~# cat .signature Hugo Monteiro Email : [email protected] Telefone : +351 212948300 Ext.15307 Web : http://hmonteiro.net Divisão de Informática Faculdade de Ciências e Tecnologia da Universidade Nova de Lisboa Quinta da Torre 2829-516 Caparica Portugal Telefone: +351 212948596 Fax: +351 212948548 www.fct.unl.pt [email protected] fct.unl.pt:~# _