Want to know if there is any way to add custom RR type.(like ip ipv6)
Im trying to make a new addressing scheme, and want to use bind to provide name service. The addressing is not compatible with known ones, and thus need to extend to support mine. Is there any way to do this? preferably innately supported by bind9? ___ 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: Want to know if there is any way to add custom RR type.(like ip ipv6)
On Sep 13, 2011, at 9:49 AM, Onha Choe wrote: Im trying to make a new addressing scheme, and want to use bind to provide name service. The addressing is not compatible with known ones, and thus need to extend to support mine. Is there any way to do this? Yes. preferably innately supported by bind9? Yes... But, be *VERY VERY* careful here -- I'm going ot assume that you are only doing this as an internal test / example, with a *very* limited number of participants. You should *really* document what it is that you are trying to do with this addressing scheme in an Internet-Draft and apply for a RR code point so that you won't conflict with anyone (65280-65534 are Reserved for Private Use, so you should be OK, but keep the above in mind...)... Here is how: Simply toss the RR into the zone like you would any other, listing TYPEtype number \# bytes data. So, for example: test.example.comINTYPE65532 \# 3 010203 is a RR of type 65532, it's 3 octets long, and the data is 010203. W ___ 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 ___ 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: Want to know if there is any way to add custom RR type.(like ip ipv6)
Okay, this seems really nice place to start my work. But just for the sake of convenience, is there a way to rename TYPE# to something that I want? And how should I go about to implement conversion of data back and forth between octets and string rep. in the zone file, as A, , and most other RR types do? would that require me to go too deep on the src? On Sep 13, 2011, at 10:47 AM, Warren Kumari wrote: On Sep 13, 2011, at 9:49 AM, Onha Choe wrote: Im trying to make a new addressing scheme, and want to use bind to provide name service. The addressing is not compatible with known ones, and thus need to extend to support mine. Is there any way to do this? Yes. preferably innately supported by bind9? Yes... But, be *VERY VERY* careful here -- I'm going ot assume that you are only doing this as an internal test / example, with a *very* limited number of participants. You should *really* document what it is that you are trying to do with this addressing scheme in an Internet-Draft and apply for a RR code point so that you won't conflict with anyone (65280-65534 are Reserved for Private Use, so you should be OK, but keep the above in mind...)... Here is how: Simply toss the RR into the zone like you would any other, listing TYPEtype number \# bytes data. So, for example: test.example.comINTYPE65532 \# 3 010203 is a RR of type 65532, it's 3 octets long, and the data is 010203. W ___ 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 ___ 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: Want to know if there is any way to add custom RR type.(like ip ipv6)
But just for the sake of convenience, is there a way to rename TYPE# to something that I want? If you dig (pun not necessarily intended) into the source of BIND you can actually change the source so that `named' can read your type from a zone master file and `dig' displays it however you wish. The way this is implemented in the BIND source is via a set of rather clever/complex macros. As Warren said though, you'll have to be very careful here, and it will only be useful to *your* implementation. Say you create a type called XXYY, if I query your server I'd see the TYPE representation and not XXYY. -JP ___ 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: Want to know if there is any way to add custom RR type.(like ip ipv6)
Well, I'm going to run the modified bind on a local testbed disconnected of internet. So, no worries on others, this is just for test, and aid with actual protocol development. Thanks on the hint, now I have to find out where to dig first. Any knowledge? On Sep 13, 2011, at 2:43 PM, Jan-Piet Mens wrote: But just for the sake of convenience, is there a way to rename TYPE# to something that I want? If you dig (pun not necessarily intended) into the source of BIND you can actually change the source so that `named' can read your type from a zone master file and `dig' displays it however you wish. The way this is implemented in the BIND source is via a set of rather clever/complex macros. As Warren said though, you'll have to be very careful here, and it will only be useful to *your* implementation. Say you create a type called XXYY, if I query your server I'd see the TYPE representation and not XXYY. -JP ___ 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 ___ 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: Want to know if there is any way to add custom RR type.(like ip ipv6)
Well, I'm going to run the modified bind on a local testbed disconnected of internet. You won't be causing harm, even if connected. :) Thanks on the hint, now I have to find out where to dig first. Any knowledge? I'm no specialist, but this might get you started: lib/dns/code.h lib/dns/rdata/generic/*.[ch] Good luck. -JP ___ 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: Want to know if there is any way to add custom RR type.(like ip ipv6)
In message 20110913195959.GB64734@jmbp.local, Jan-Piet Mens writes: Well, I'm going to run the modified bind on a local testbed disconnected of internet. You won't be causing harm, even if connected. :) Thanks on the hint, now I have to find out where to dig first. Any knowledge? I'm no specialist, but this might get you started: lib/dns/code.h This will be built by make newrr, make in lib/dns. lib/dns/rdata/generic/*.[ch] Correct just create the methods and structures for the new type. Good luck. -JP ___ 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 -- 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