I configured Ubuntu Server 18.04 as a master DNS server. zone ==> google.com

; BIND data file for local loopback interface
$TTL    12h 
@   IN  SOA ns1.google.com. root.google.com. (
                  2     ; Serial
             604800     ; Refresh
              86400     ; Retry
            2419200     ; Expire
             604800 )   ; Negative Cache TTL
@     IN    NS  ns1.google.com.
ns1   IN    A
www   IN    A   <fake IP>
mail    IN  A   <fake IP>  

I configured client to use this server as a DNS server but when I enter mail.google.com in client's browser I get an SSL ERR. How does browser understand this issue? client's browser is up to date.


The browser comes with a predefined list of trusted certificate authoroties (CA). You need to get a certificate for mail.google.com signed by a trusted CA in order to eliminate SSL error. Of course, you can not get such a certificate unless you prove you own the domain.

  • Or create your own CA certificate, set your browsers, etc. to trust that, and sign your own spoofed certificate. Basically how the "deep packet inspection" stuff works when dealing with HTTPS sites. – ivanivan Dec 30 '18 at 15:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.