Maintained by: NLnet Labs

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

Key Dai
Mon Sep 2 16:13:57 CEST 2013


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/20130902/5f02b1a1/attachment.html>