Clarification on wildcard scenario
Warren Kumari
warren at kumari.net
Tue Feb 1 04:37:37 UTC 2011
I must admit, I'm kinda confused by what you are actually trying to achieve....
?A foo.joshfeb1.com. should be getting returning 1.1.1.1
?A www.joshfeb1.com. should be returning noerror / nodata because:
1: There is a record at www.joshfeb1.com (so it's not NXDOMAIN), but
2: the record is not an A record (so there is NO DATA that matches)
I'm assuming if you query for A foo.www.joshb1.com. you get back 2.2.2.2?
W
On Jan 31, 2011, at 11:19 PM, rams wrote:
> Hi Mark,
>
> Thank You for quick clarify. I have included trailing dot and restart bind.
> Now when i queired for domain "www.joshfeb1.com" with type A, I am getting NOERROR and NOANSWER.
>
> [root@ zones]# dig www.joshfeb1.com. A
>
> ; <<>> DiG 9.6.1-P3 <<>> www.joshfeb1.com. A
> ; (1 server found)
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40667
> ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
> ;; WARNING: recursion requested but not available
>
> ;; QUESTION SECTION:
> ;www.joshfeb1.com. IN A
>
> ;; AUTHORITY SECTION:
> joshfeb1.com. 86400 IN SOA udns1.ultradns.net. rboddeti.infinite.com. 2011013101 10800 3600 2592000 86400
>
> ;; Query time: 2 msec
> ;; SERVER: 10.31.145.194#53(10.31.145.194)
> ;; WHEN: Tue Feb 1 04:13:00 2011
> ;; MSG SIZE rcvd: 106
>
> [root at zones]#
>
> Is it correct. Actually www.joshfeb1.com is not exist and it should look into *.joshfeb1.com right. Could you please clarify why it is not returning answer.
>
> Thanks & Regards,
> Ramesh
>
>
> On Tue, Feb 1, 2011 at 9:41 AM, Mark Andrews <marka at isc.org> wrote:
>
> In message <AANLkTi=MmS6agHgUQyt1PMLLYQfz2zP0Su6YQwQmX4e- at mail.gmail.com>, rams w
> rites:
> > Hi,
> > I have zone as follows in bind.
> >
> > $ORIGIN joshfeb1.com.
> > @ IN SOA rboddeti.yahoo.com. rboddeti.gmail.com. (
> > 2011013101 ; serial
> > 10800 ; refresh
> > 3600 ; retry
> > 2592000 ; expire
> > 86400 ; minimum
> > )
> > joshfeb1.com. NS udns1.ultradns.net.
> > joshfeb1.com. NS udns2.ultradns.net.
> > **.joshfeb1.com A 1.1.1.1
> > *.www.joshfeb1.com A 2.2.2.2*
> >
> > When I queried domain "www.joshfeb1.com. A" against Bind, I am getting
> > NXDOMAIN.When can i get records in response. Could you please clarify me.
> >
> > The following response return.
> >
> > *[root at zones]# dig abc.www.joshfeb1.com. A*
> >
> > ; <<>> DiG 9.6.1-P3 <<>> abc.www.joshfeb1.com. A
> > ; (1 server found)
> > ;; global options: +cmd
> > ;; Got answer:
> > ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 24113
> > ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
> > ;; WARNING: recursion requested but not available
> >
> > ;; QUESTION SECTION:
> > ;abc.www.joshfeb1.com. IN A
> >
> > ;; AUTHORITY SECTION:
> > joshfeb1.com. 86400 IN SOA udns1.ultradns.net.
> > rboddeti.infinite.com. 2011013101 10800 3600 2592000 86400
> >
> > ;; Query time: 2 msec
> > ;; SERVER: 10.31.145.194#53(10.31.145.194)
> > ;; WHEN: Tue Feb 1 03:36:56 2011
> > ;; MSG SIZE rcvd: 110
> >
> > *[root@ zones]# dig abc.joshfeb1.com. A*
> >
> > ; <<>> DiG 9.6.1-P3 <<>> abc.joshfeb1.com. A
> > ; (1 server found)
> > ;; global options: +cmd
> > ;; Got answer:
> > ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 26354
> > ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
> > ;; WARNING: recursion requested but not available
> >
> > ;; QUESTION SECTION:
> > ;abc.joshfeb1.com. IN A
> >
> > ;; AUTHORITY SECTION:
> > joshfeb1.com. 86400 IN SOA udns1.ultradns.net.
> > rboddeti.infinite.com. 2011013101 10800 3600 2592000 86400
> >
> > ;; Query time: 2 msec
> > ;; SERVER: 10.31.145.194#53(10.31.145.194)
> > ;; WHEN: Tue Feb 1 03:37:05 2011
> > ;; MSG SIZE rcvd: 106
> >
> > *[root@ zones]# dig www.joshfeb1.com. A*
> >
> > ; <<>> DiG 9.6.1-P3 <<>> www.joshfeb1.com. A
> > ; (1 server found)
> > ;; global options: +cmd
> > ;; Got answer:
> > ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 19448
> > ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
> > ;; WARNING: recursion requested but not available
> >
> > ;; QUESTION SECTION:
> > ;www.joshfeb1.com. IN A
> >
> > ;; AUTHORITY SECTION:
> > joshfeb1.com. 86400 IN SOA udns1.ultradns.net.
> > rboddeti.infinite.com. 2011013101 10800 3600 2592000 86400
> >
> > ;; Query time: 2 msec
> > ;; SERVER: 10.31.145.194#53(10.31.145.194)
> > ;; WHEN: Tue Feb 1 03:37:15 2011
> > ;; MSG SIZE rcvd: 106
> >
> > [root at stulcqacustbind2 zones]#
> >
> >
> > What bind is returning is correct?
>
> Yes. You have a mixture of relative (no period at end) and absolute names
> (period at end) in the zone file above. What you added to the zone
> was "www.joshfeb1.com.joshfeb1.com." not "www.joshfeb1.com.". You needed
> a period at the end of "com" or to just use "www".
>
> Mark
>
> > Thanks & Regards,
> > Ramesh
> --
> Mark Andrews, ISC
> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> PHONE: +61 2 9871 4742 INTERNET: marka at isc.org
>
> _______________________________________________
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
More information about the bind-users
mailing list