Maintained by: NLnet Labs

[Unbound-users] I want override certain queries, but it not work

Luo Ce
Tue Sep 3 03:30:54 CEST 2013


unbound can only override the name you directly dig for, 
the outgoing query for the cname section will not start from the very beginning, 
it will ignore your local data settings.

regards,



Luo Ce

From: Key Dai
Date: 2013-09-02 22:13
To: unbound-users
Subject: Re: [Unbound-users] I want override certain queries, but it not work
lh1.googleusercontent.com  IN CNAME googlehosted.l.googleusercontent.com

....
lh5.googleusercontent.com IN CNAME googlehosted.l.googleusercontent.com



I just need to override googlehosted.l.googleusercontent.com query, but it not work


On Mon, Sep 2, 2013 at 7:21 PM, Over Dexia <over at dexia.de> wrote:

Am 01.09.2013 14:55, schrieb Key Dai:
>
>      ; <<>> DiG 9.7.3 <<>> @localhost mail.google.com
>     <http://mail.google.com> A

>      ; (1 server found)
>      ;; global options: +cmd
>      ;; Got answer:
>      ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37827
>      ;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0
>
>      ;; QUESTION SECTION:

>      ;mail.google.com <http://mail.google.com>.INA
>
>      ;; ANSWER SECTION:
>      mail.google.com
>     <http://mail.google.com>.507312INCNAMEgooglemail.l.google.com
>     <http://googlemail.l.google.com>.
>      googlemail.l.google.com <http://googlemail.l.google.com>.
>     283INA173.194.70.18
>      googlemail.l.google.com <http://googlemail.l.google.com>.
>     283INA173.194.70.19
>      googlemail.l.google.com <http://googlemail.l.google.com>.
>     283INA173.194.70.83
>      googlemail.l.google.com <http://googlemail.l.google.com>.
>     283INA173.194.70.17

>
>      ;; Query time: 0 msec
>      ;; SERVER: 127.0.0.1#53(127.0.0.1)
>      ;; WHEN: Sun Sep  1 14:47:26 2013
>      ;; MSG SIZE  rcvd: 124
>
>     my unbound config
>
>     local-zone: "googlemail.l.google.com

>     <http://googlemail.l.google.com>." redirect
>     local-data: "googlemail.l.google.com
>     <http://googlemail.l.google.com>. A 203.208.46.149"
>     local-data: "googlemail.l.google.com
>     <http://googlemail.l.google.com>. A 203.208.46.150"
>
>     forward-zone:
>       name: "google.com <http://google.com>."

>       forward-addr: 8.8.8.8
>       forward-addr: 208.67.222.222
>       forward-first: no



If you want to override mail.google.com, you'll have to override
mail.google.com :)

local-data: 'mail.google.com. A 203.208.46.149'

(afaik, if you want to have everything else googlewise resolved as
usual, this is the only line you need. If nothing else is specified,
unbound should create an accompanying transparent zone.)

regards, jo
_______________________________________________
Unbound-users mailing list
Unbound-users at unbound.net
http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://unbound.nlnetlabs.nl/pipermail/unbound-users/attachments/20130903/493e2089/attachment-0001.html>