I have a project ,in this project i need a Global-scale Mapping System,so the first step i just nedd to build small-private DNS-based enviroment,and achieve my goal.<br>in order to accomplish these i need to adding a new RR(eg. mapping_RR) and creat a new domain(which maintain the mapping info,and the type of mapping info is mapping_RR). <br>
Now here is design,client-program send a mapping request,resolver can tell the request type ,and send to proper domain-nameserver and send reply back.<br> <br>yestoday, i have check lib\dns\rdata\in_1\aaaa_28.c,but i don't know the whole project will work if i just imitate aaaa_28.c to write a mapping_RR.c . if it doesn't work ,please direct me with some papers or Independent Code. thanks!<br>
<br>
<div class="gmail_quote">2009/10/16 <span dir="ltr"><<a href="mailto:bind-users-request@lists.isc.org">bind-users-request@lists.isc.org</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Send bind-users mailing list submissions to<br> <a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a><br>
<br>To subscribe or unsubscribe via the World Wide Web, visit<br> <a href="https://lists.isc.org/mailman/listinfo/bind-users" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br>or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:bind-users-request@lists.isc.org">bind-users-request@lists.isc.org</a><br><br>You can reach the person managing the list at<br> <a href="mailto:bind-users-owner@lists.isc.org">bind-users-owner@lists.isc.org</a><br>
<br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of bind-users digest..."<br><br><br>Today's Topics:<br><br> 1. Re: Nslookup not showng TTL (Kevin Darcy)<br> 2. Re: Nslookup not showng TTL (Sam Wilson)<br>
3. RE: Nslookup not showng TTL (Frank Bulk - iName.com)<br> 4. Re: Nslookup not showng TTL (John Horne)<br> 5. Re: Nslookup not showng TTL (Matthew Pounsett)<br> 6. Re: adding new RR? (Mark Andrews)<br> 7. Re: Nslookup not showng TTL (Mark Andrews)<br>
8. Re: Nslookup not showng TTL (Doug Barton)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Thu, 15 Oct 2009 13:15:27 -0400<br>From: Kevin Darcy <<a href="mailto:kcd@chrysler.com">kcd@chrysler.com</a>><br>
Subject: Re: Nslookup not showng TTL<br>To: Bind users <<a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a>><br>Message-ID: <<a href="mailto:4AD758AF.6020109@chrysler.com">4AD758AF.6020109@chrysler.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>John Horne wrote:<br>> On Thu, 2009-10-15 at 10:47 +0200, Adam Tkac wrote:<br>><br>>> On Thu, Oct 15, 2009 at 09:06:56AM +0100, John Horne wrote:<br>
>><br>>>> How can I see the TTL value using nslookup?<br>>>><br>>> I'm not sure how force nslookup to show TTL but the `dig` utility is<br>>> far more better tool for getting such information:<br>
>><br>>><br>> I agree, it's not for me though :-)<br>><br>> I have to teach some Windows people about the DNS, and wanted to show<br>> them that they could use 'nslookup' on either the Linux box provided, or<br>
> their own Windows PC's. In this instance the TTL is important. So I was<br>> hoping that the MS and BIND nslookup commands would display something<br>> pretty much similar to each other so as not to confuse the people too<br>
> much.<br>><br>> As far as I can tell no BIND 9 nslookup command shows the TTL. I am<br>> currently looking at an 8.2.3 version to see if I can patch the 9.5.1<br>> one to display TTL's again. It may, however, be better to introduce them<br>
> to dig rather than having to maintain the nslookup command.<br>><br>Removing features from nslookup gets us that much closer to KILLING and<br>BURYING it. Forever.<br><br>If I had a nickel for every time someone mis-read the output of nslookup<br>
and mistook the nameserver's name, for the name of the server they're<br>actually looking up, well, let's just say I probably wouldn't be posting<br>to bind-users from my work account...<br><br>(Fortunately nslookup's whole "won't do a lookup because I can't<br>
reverse-resolve my resolver" bogosity isn't really an issue at Chrysler,<br>since we maintain proper reverse mappings, but that's another popular<br>"nslookup sucks, don't use it"-category posting to this mailing list)<br>
<br><br> - Kevin<br><br><br><br><br>------------------------------<br><br>Message: 2<br>Date: Thu, 15 Oct 2009 18:28:14 +0100<br>From: Sam Wilson <<a href="mailto:Sam.Wilson@ed.ac.uk">Sam.Wilson@ed.ac.uk</a>><br>
Subject: Re: Nslookup not showng TTL<br>To: <a href="mailto:comp-protocols-dns-bind@isc.org">comp-protocols-dns-bind@isc.org</a><br>Message-ID: <<a href="mailto:Sam.Wilson-C03ECD.18281415102009@scotsman.ed.ac.uk">Sam.Wilson-C03ECD.18281415102009@scotsman.ed.ac.uk</a>><br>
<br>In article <<a href="mailto:mailman.715.1255626934.14796.bind-users@lists.isc.org">mailman.715.1255626934.14796.bind-users@lists.isc.org</a>>,<br> Kevin Darcy <<a href="mailto:kcd@chrysler.com">kcd@chrysler.com</a>> wrote:<br>
<br>> (Fortunately nslookup's whole "won't do a lookup because I can't<br>> reverse-resolve my resolver" bogosity isn't really an issue at Chrysler,<br>> since we maintain proper reverse mappings, but that's another popular<br>
> "nslookup sucks, don't use it"-category posting to this mailing list)<br><br>Fortunately (or not - it would be another nail) that bogosity is gone<br>from recent nslookups.<br><br>Sam<br><br><br>------------------------------<br>
<br>Message: 3<br>Date: Thu, 15 Oct 2009 13:37:50 -0500<br>From: "Frank Bulk - iName.com" <<a href="mailto:frnkblk@iname.com">frnkblk@iname.com</a>><br>Subject: RE: Nslookup not showng TTL<br>To: "'John Horne'" <<a href="mailto:john.horne@plymouth.ac.uk">john.horne@plymouth.ac.uk</a>>, "Bind users"<br>
<<a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a>><br>Message-ID:<br> <!&!AAAAAAAAAAAuAAAAAAAAAKTyXRN5/+lGvU59a+P7CFMBAN6gY+ZG84BMpVQcAbDh1IQAAAATbSgAABAAAAByxxjEVKg2S57lnbEsu38YAQAAAAA=@<a href="http://iname.com/" target="_blank">iname.com</a>><br>
<br>Content-Type: text/plain; charset="us-ascii"<br><br>You can do an "ipconfig /displaydns" to see some TTL info.<br><br>Frank<br><br>-----Original Message-----<br>From: <a href="mailto:bind-users-bounces@lists.isc.org">bind-users-bounces@lists.isc.org</a><br>
[mailto:<a href="mailto:bind-users-bounces@lists.isc.org">bind-users-bounces@lists.isc.org</a>] On Behalf Of John Horne<br>Sent: Thursday, October 15, 2009 3:07 AM<br>To: Bind users<br>Subject: Nslookup not showng TTL<br>
<br>Hello,<br><br>Using BIND 9.5.1 it seems that the nslookup command is not showing the<br>TTL value of found records. It makes no difference if I set 'debug' or<br>'d2'. Example:<br><br>==============================================================<br>
nslookup<br>> set debug<br>> <a href="http://www.plymouth.ac.uk/" target="_blank">www.plymouth.ac.uk</a><br>Server: 127.0.0.1<br>Address: 127.0.0.1#53<br><br>------------<br> QUESTIONS:<br> <a href="http://www.plymouth.ac.uk/" target="_blank">www.plymouth.ac.uk</a>, type = A, class = IN<br>
ANSWERS:<br> -> <a href="http://www.plymouth.ac.uk/" target="_blank">www.plymouth.ac.uk</a><br> canonical name = <a href="http://extranet.plymouth.ac.uk/" target="_blank">extranet.plymouth.ac.uk</a>.<br> -> <a href="http://extranet.plymouth.ac.uk/" target="_blank">extranet.plymouth.ac.uk</a><br>
internet address = 141.163.163.185<br> AUTHORITY RECORDS:<br> -> <a href="http://plymouth.ac.uk/" target="_blank">plymouth.ac.uk</a><br> nameserver = <a href="http://dns0.plymouth.ac.uk/" target="_blank">dns0.plymouth.ac.uk</a>.<br>
-> <a href="http://plymouth.ac.uk/" target="_blank">plymouth.ac.uk</a><br> nameserver = <a href="http://dns1.plymouth.ac.uk/" target="_blank">dns1.plymouth.ac.uk</a>.<br> ADDITIONAL RECORDS:<br> -> <a href="http://dns0.plymouth.ac.uk/" target="_blank">dns0.plymouth.ac.uk</a><br>
internet address = 141.163.1.250<br> -> <a href="http://dns1.plymouth.ac.uk/" target="_blank">dns1.plymouth.ac.uk</a><br> internet address = 141.163.177.1<br>------------<br><a href="http://www.plymouth.ac.uk/" target="_blank">www.plymouth.ac.uk</a> canonical name = <a href="http://extranet.plymouth.ac.uk/" target="_blank">extranet.plymouth.ac.uk</a>.<br>
Name: <a href="http://extranet.plymouth.ac.uk/" target="_blank">extranet.plymouth.ac.uk</a><br>Address: 141.163.163.185<br>><br>==============================================================<br><br><br>How can I see the TTL value using nslookup?<br>
<br><br><br>Thanks,<br><br>John.<br><br>--<br>John Horne, University of Plymouth, UK<br>Tel: +44 (0)1752 587287 Fax: +44 (0)1752 587001<br><br>_______________________________________________<br>bind-users mailing list<br>
<a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a><br><a href="https://lists.isc.org/mailman/listinfo/bind-users" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br><br><br><br>------------------------------<br>
<br>Message: 4<br>Date: Thu, 15 Oct 2009 21:03:45 +0100<br>From: John Horne <<a href="mailto:john.horne@plymouth.ac.uk">john.horne@plymouth.ac.uk</a>><br>Subject: Re: Nslookup not showng TTL<br>To: Bind users <<a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a>><br>
Message-ID: <<a href="mailto:1255637025.3077.6.camel@jhorne.homelinux.net">1255637025.3077.6.camel@jhorne.homelinux.net</a>><br>Content-Type: text/plain<br><br>On Thu, 2009-10-15 at 13:15 -0400, Kevin Darcy wrote:<br>
> ><br>> Removing features from nslookup gets us that much closer to KILLING and<br>> BURYING it. Forever.<br>><br>So why does the ISC still distribute it?<br>(Although I guess the answer may simply be "because people still use<br>
it".)<br><br>Don't get me wrong here - I've been using dig for years, and only use<br>nslookup if I have to on my Windows laptop at work, on the Linux/UNIX<br>systems dig is only used. If nslookup was no longer present in the BIND<br>
distribution then that doesn't bother me at all.<br><br><br><br><br>John.<br><br>--<br>John Horne, University of Plymouth, UK<br>Tel: +44 (0)1752 587287 Fax: +44 (0)1752 587001<br><br><br><br>------------------------------<br>
<br>Message: 5<br>Date: Thu, 15 Oct 2009 16:58:42 -0400<br>From: Matthew Pounsett <<a href="mailto:matt@conundrum.com">matt@conundrum.com</a>><br>Subject: Re: Nslookup not showng TTL<br>To: John Horne <<a href="mailto:john.horne@plymouth.ac.uk">john.horne@plymouth.ac.uk</a>><br>
Cc: Bind users <<a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a>><br>Message-ID: <<a href="mailto:76D7097B-28A4-4BBB-A2C8-05BF5B822901@conundrum.com">76D7097B-28A4-4BBB-A2C8-05BF5B822901@conundrum.com</a>><br>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes<br><br><br>On 15-Oct-2009, at 16:03, John Horne wrote:<br><br>> On Thu, 2009-10-15 at 13:15 -0400, Kevin Darcy wrote:<br>>>><br>>> Removing features from nslookup gets us that much closer to KILLING<br>
>> and<br>>> BURYING it. Forever.<br>>><br>> So why does the ISC still distribute it?<br>> (Although I guess the answer may simply be "because people still use<br>> it".)<br><br>There was a while there that nslookup printed a big warning banner<br>
telling you not to use it because it'd been deprecated and would go<br>away any day now. That doesn't seem to be there anymore, sadly. I<br>kinda wish it would just vanish.<br><br><br><br><br><br>------------------------------<br>
<br>Message: 6<br>Date: Fri, 16 Oct 2009 08:48:56 +1100<br>From: Mark Andrews <<a href="mailto:marka@isc.org">marka@isc.org</a>><br>Subject: Re: adding new RR?<br>To: <a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a><br>
Message-ID: <<a href="mailto:200910152148.n9FLmuYF030913@drugs.dv.isc.org">200910152148.n9FLmuYF030913@drugs.dv.isc.org</a>><br><br><br>In message <<a href="mailto:20091015135428.GA19488@fantomas.sk">20091015135428.GA19488@fantomas.sk</a>>, Matus UHLAR - fantomas writes:<br>
> On 15.10.09 21:29, aihua zhang wrote:<br>> > recently,i want to modify source code of BIND9.6.1 to adding new RR.<br>><br>> Don't do that. You bind will be incompatible with any other DNS server and<br>
> it could lead to<br><br>As long as the type is registered it doesn't matter.<br><br>> > Now,i just begin to check AAAA RR to see how it work,but i find this method<br>> > exhausting me.i don't think this way is effective,so i'm very appreciate<br>
> > some one could give me a guid, or some example:souce code is perfect<br><br>You have lots of examples. see lib/dns/rdata/*/*.[ch] This is where the<br>rdata are defined. Just run "make clean" then "make" once you have<br>
created the new files so that the build process can find them.<br><br>> Better try to explain what do you want to achieve<br>> --<br>> Matus UHLAR - fantomas, <a href="mailto:uhlar@fantomas.sk">uhlar@fantomas.sk</a> ; <a href="http://www.fantomas.sk/" target="_blank">http://www.fantomas.sk/</a><br>
> Warning: I wish NOT to receive e-mail advertising to this address.<br>> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.<br>> 42.7 percent of all statistics are made up on the spot.<br>> _______________________________________________<br>
> bind-users mailing list<br>> <a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a><br>> <a href="https://lists.isc.org/mailman/listinfo/bind-users" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br>
--<br>Mark Andrews, ISC<br>1 Seymour St., Dundas Valley, NSW 2117, Australia<br>PHONE: +61 2 9871 4742 INTERNET: <a href="mailto:marka@isc.org">marka@isc.org</a><br><br><br>------------------------------<br>
<br>Message: 7<br>Date: Fri, 16 Oct 2009 08:54:39 +1100<br>From: Mark Andrews <<a href="mailto:marka@isc.org">marka@isc.org</a>><br>Subject: Re: Nslookup not showng TTL<br>To: Matthew Pounsett <<a href="mailto:matt@conundrum.com">matt@conundrum.com</a>><br>
Cc: Bind users <<a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a>><br>Message-ID: <<a href="mailto:200910152154.n9FLsdSv030980@drugs.dv.isc.org">200910152154.n9FLsdSv030980@drugs.dv.isc.org</a>><br>
<br><br>In message <<a href="mailto:76D7097B-28A4-4BBB-A2C8-05BF5B822901@conundrum.com">76D7097B-28A4-4BBB-A2C8-05BF5B822901@conundrum.com</a>>, Matthew Pounse<br>tt writes:<br>><br>> On 15-Oct-2009, at 16:03, John Horne wrote:<br>
><br>> > On Thu, 2009-10-15 at 13:15 -0400, Kevin Darcy wrote:<br>> >>><br>> >> Removing features from nslookup gets us that much closer to KILLING<br>> >> and<br>> >> BURYING it. Forever.<br>
> >><br>> > So why does the ISC still distribute it?<br>> > (Although I guess the answer may simply be "because people still use<br>> > it".)<br>><br>> There was a while there that nslookup printed a big warning banner<br>
> telling you not to use it because it'd been deprecated and would go<br>> away any day now. That doesn't seem to be there anymore, sadly. I<br>> kinda wish it would just vanish.<br><br>We lost the battle to get rid of nslookup.<br>
<br>Index: bin/dig/nslookup.c<br>===================================================================<br>RCS file: /proj/cvs/prod/bind9/bin/dig/nslookup.c,v<br>retrieving revision 1.122<br>diff -u -r1.122 nslookup.c<br>--- bin/dig/nslookup.c 6 May 2009 23:47:50 -0000 1.122<br>
+++ bin/dig/nslookup.c 15 Oct 2009 12:45:26 -0000<br>@@ -373,6 +373,7 @@<br> printrdata(&rdata);<br> }<br> dns_rdata_reset(&rdata);<br>
+ printf("\tttl = %u\n", rdataset->ttl);<br> loopresult = dns_rdataset_next(rdataset);<br> }<br> }<br>--<br>Mark Andrews, ISC<br>
1 Seymour St., Dundas Valley, NSW 2117, Australia<br>PHONE: +61 2 9871 4742 INTERNET: <a href="mailto:marka@isc.org">marka@isc.org</a><br><br><br>------------------------------<br><br>Message: 8<br>Date: Thu, 15 Oct 2009 18:10:25 -0700<br>
From: Doug Barton <<a href="mailto:dougb@dougbarton.us">dougb@dougbarton.us</a>><br>Subject: Re: Nslookup not showng TTL<br>To: Kevin Darcy <<a href="mailto:kcd@chrysler.com">kcd@chrysler.com</a>><br>Cc: Bind users <<a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a>><br>
Message-ID: <<a href="mailto:4AD7C801.5070804@dougbarton.us">4AD7C801.5070804@dougbarton.us</a>><br>Content-Type: text/plain; charset=ISO-8859-1<br><br>Kevin Darcy wrote:<br>> John Horne wrote:<br>>> On Thu, 2009-10-15 at 10:47 +0200, Adam Tkac wrote:<br>
>><br>>>> On Thu, Oct 15, 2009 at 09:06:56AM +0100, John Horne wrote:<br>>>><br>>>>> How can I see the TTL value using nslookup?<br>>>>><br>>>> I'm not sure how force nslookup to show TTL but the `dig` utility is<br>
>>> far more better tool for getting such information:<br>>>><br>>>><br>>> I agree, it's not for me though :-)<br>>><br>>> I have to teach some Windows people about the DNS, and wanted to show<br>
>> them that they could use 'nslookup' on either the Linux box provided, or<br>>> their own Windows PC's. In this instance the TTL is important. So I was<br>>> hoping that the MS and BIND nslookup commands would display something<br>
>> pretty much similar to each other so as not to confuse the people too<br>>> much.<br>>><br>>> As far as I can tell no BIND 9 nslookup command shows the TTL. I am<br>>> currently looking at an 8.2.3 version to see if I can patch the 9.5.1<br>
>> one to display TTL's again. It may, however, be better to introduce them<br>>> to dig rather than having to maintain the nslookup command.<br>>><br>> Removing features from nslookup gets us that much closer to KILLING and<br>
> BURYING it. Forever.<br>><br>> If I had a nickel for every time someone mis-read the output of nslookup<br>> and mistook the nameserver's name, for the name of the server they're<br>> actually looking up, well, let's just say I probably wouldn't be posting<br>
> to bind-users from my work account...<br>><br>> (Fortunately nslookup's whole "won't do a lookup because I can't<br>> reverse-resolve my resolver" bogosity isn't really an issue at Chrysler,<br>
> since we maintain proper reverse mappings, but that's another popular<br>> "nslookup sucks, don't use it"-category posting to this mailing list)<br><br><a href="http://dougbarton.us/DNS/bind-users-FAQ.html#nslookup-evil" target="_blank">http://dougbarton.us/DNS/bind-users-FAQ.html#nslookup-evil</a><br>
<br>--<br><br> Improve the effectiveness of your Internet presence with<br> a domain name makeover! <a href="http://supersetsolutions.com/" target="_blank">http://SupersetSolutions.com/</a><br><br><br><br>------------------------------<br>
<br>_______________________________________________<br>bind-users mailing list<br><a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a><br><a href="https://lists.isc.org/mailman/listinfo/bind-users" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br>
<br>End of bind-users Digest, Vol 316, Issue 1<br>******************************************<br></blockquote></div><br><br clear="all">
<div></div><br>-- <br>Best regards!<br><br>Sincerely,<br>xiaotou