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

Over Dexia over at dexia.de
Mon Sep 2 11:21:09 UTC 2013


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



More information about the Unbound-users mailing list