I want override certain queries, but it not work

; <<>> DiG 9.7.3 <<>> @localhost mail.google.com A

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

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

lh1.googleusercontent.com IN CNAME googlehosted.l.googleusercontent.com


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

Your settings and your dig query don't reflect that at all.

The same principle applies: If you want to override
googlehosted.l.googleusercontent.com, you should use
googlehosted.l.googleusercontent.com in the settings and in the dig
query to show if there is a problem and what the problem is.

regards, jo

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,

Hi,

It would perhaps be useful to explain exactly what the problem that you want to solve is and why overriding a particular record in the recursive server would achieve the purpose of solving that problem.

I.e. "I want to override X" is not a problem statement, rather it is jumping into solution space without a problem statement.

Johan

There seems to be some obfuscation at work, and no wonder, since I
believe the problem statement seems to sum up to "I want to redirect
google mail access to a chinese server (but it doesn't work)".

Not that the obfuscation was anything more adept than the problem
description or the solution attempt.

j.