Re: nsupdate, semicolon, backslash
In message <5413d5d9.3000...@yahoo.fr>, Giuseppe writes: > Hello Mark, > > If I understood, it's a normal comportement to find backslash in TEXT data. More that it is escaped. double quote and back slash must be escaped. semicolon needs to be escaped if the string isn't quoted. > In my case, i implement DKIM DNS and in master files I have: > > ;; ANSWER SECTION: > google._domainkey.test.com. 1800 IN TXT "v=DKIM1\; k=rsa\; p=MIGfMA > > At this time, it not working. And I was thinking that is the backslash > the problème. > > So, I have to do more troubleshooting about this case. > > Thanks for your help > Zeppi -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: nsupdate, semicolon, backslash
Hello Mark, If I understood, it's a normal comportement to find backslash in TEXT data. In my case, i implement DKIM DNS and in master files I have: ;; ANSWER SECTION: google._domainkey.test.com. 1800 IN TXT "v=DKIM1\; k=rsa\; p=MIGfMA At this time, it not working. And I was thinking that is the backslash the problème. So, I have to do more troubleshooting about this case. Thanks for your help Zeppi ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: nsupdate, semicolon, backslash
In message <54130f2a.9040...@yahoo.fr>, Giuseppe writes: > Hello, > > I work with nsupdate for update our domains zones. And I have problem with > semicolonin TXT record type. > > A small example: > > nsupdate -v > > > update add test1.com 400 TXT "hello*;*" > > update add test2.com 400 TXT "hello*\;*" > > show > > Outgoing update query: > ;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: 0 > ;; flags: ; ZONE: 0, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 > ;; UPDATE SECTION: > test1.com.400INTXT"hello*\;*" > test2.com.400INTXT"hello*\;*" > > In my Zone file it is the same problem. > > I would like: > > test1.com.400INTXT"hello*;*" > > without backslash before semicolon. Is important because service using > "secure._domainKey", "_adsp._domainKey", etc.. no > t work if > backslashis in zone and semicolon is needed. > > Other are the same problem? > > Thanks, > Zeppi Backslash and semicolons are special characters in master files. DiG prints records in master file format. This allows the record to be cut and pasted into master files, nsupdate etc. It also means that the presentation encoding doesn't change between AXFR, IXFR and other types. It also escapes some characters that may not always strictly need escaping in every circumstance. '@' '$' '.' '\' '"' are all special characters in master files. To enter a backslash one has to enter two backslashes. A backslash before a semicolon turns off its special meaning of comment introducer. A backslash says the next character is a literal except when that character is a digit in which case it the start of \DDD which is the decimal value or the character. THe RHS below is without the master file escaping "\h\e\l\l\o\;\*" -> hello;* hello\;* -> hello;* "hello;*" -> hello;* Now to add a backslash you need to enter two escapes, the RHS is again without master file escaping. "hello\\;*" -> hello\;* Mark -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
nsupdate, semicolon, backslash
Hello, I work with nsupdate for update our domains zones. And I have problem with semicolonin TXT record type. A small example: nsupdate -v > update add test1.com 400 TXT "hello*;*" > update add test2.com 400 TXT "hello*\;*" > show Outgoing update query: ;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: 0 ;; flags: ; ZONE: 0, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0 ;; UPDATE SECTION: test1.com.400INTXT"hello*\;*" test2.com.400INTXT"hello*\;*" In my Zone file it is the same problem. I would like: test1.com.400INTXT"hello*;*" without backslash before semicolon. Is important because service using "secure._domainKey", "_adsp._domainKey", etc.. not work if backslashis in zone and semicolon is needed. Other are the same problem? Thanks, Zeppi ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users