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