Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

DNS Resolver Preferences

Discussion in 'Bind/DNS/Nameserver' started by JayFromEpic, Nov 21, 2018.

  1. JayFromEpic

    JayFromEpic Well-Known Member

    Joined:
    Apr 2, 2011
    Messages:
    217
    Likes Received:
    7
    Trophy Points:
    68
    Location:
    Michigan
    cPanel Access Level:
    Root Administrator
    Hey everyone,

    I was looking for some additional feedback from the community regarding preferred DNS Resolver settings.

    Recently, some colleagues and I were discussing Cloudflare public dns vs Google public dns and which is better. Further into the convo, we started talking about options to move from Google DNS to Cloudflare DNS as our resolver preference network wide.

    Currently, I am testing a mix of Cloudflare(1.1.1.1) as the primary, Google(8.8.8.8) as the secondary and our datacenter provided DNS IP as our tertiary.

    In the past, we have ran strictly Google(8.8.8.8) and Google(8.8.4.4) with the DC DNS IP for our tertiary and have had no issues, reliable speeds, etc.

    I'm curious as to what other providers/users have used in the past and if anyone has had any experience with the Cloudflare public dns whether positive or negative.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,164
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @JayFromEpic

    From a personal standpoint, I've always used google's until recently.

    I've started using CloudFlare's 1.1.1.1 and 1.0.0.1 more and more lately as it seems to be a bit faster, I've also not heard anything negative in regard to CloudFlare's resolvers though this is not even a year old project so it's still fairly new.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. JayFromEpic

    JayFromEpic Well-Known Member

    Joined:
    Apr 2, 2011
    Messages:
    217
    Likes Received:
    7
    Trophy Points:
    68
    Location:
    Michigan
    cPanel Access Level:
    Root Administrator
    Thank you for the insight Lauren, I always have trusted your input. I tried out running on Cloudflare with the Tertiary set to google dns and can confirm a big difference in speed, especially on websites using cloudflare dns.

    I hope this thread helps someone out in the future!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelLauren likes this.
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,164
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    @JayFromEpic

    Thanks that means a lot to me! I appreciate it. I'm glad you could see the speed difference, awesome! I'm sure this will help someone make a decision in the future:)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. WorkinOnIt

    WorkinOnIt Well-Known Member

    Joined:
    Aug 3, 2016
    Messages:
    165
    Likes Received:
    14
    Trophy Points:
    18
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    I'm interested in how you could really test the difference in speed between Cloudflare and Google public DNS. Could you elaborate on how you reached the conclusion that Cloudflare is faster?
     
  6. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,164
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @WorkinOnIt

    There are a ton of tools out there that will test this for you but ultimately you just simply need to check the time it takes to resolve a site, you can use ping or dig even.

    My resolvers to start with are using Google's DNS:

    Code:
    cat /etc/resolv.conf
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    Code:
    dig cpanel.net
    
    ; <<>> DiG 9.9.4-RedHat-9.9.4-61.el7_5.1 <<>> cpanel.net
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27947
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 512
    ;; QUESTION SECTION:
    ;cpanel.net.            IN    A
    
    ;; ANSWER SECTION:
    cpanel.net.        99    IN    A    208.74.123.68
    cpanel.net.        99    IN    A    208.74.121.51
    
    ;; Query time: 16 msec
    ;; SERVER: 8.8.8.8#53(8.8.8.8)
    ;; WHEN: Wed Dec 05 07:11:53 CST 2018
    ;; MSG SIZE  rcvd: 71
    


    We can see my query using the DNS resolvers provided by Google takes 16 msec.

    Now I've changed my resolvers to CloudFlare's:

    Code:
    cat /etc/resolv.conf
    nameserver 1.1.1.1
    nameserver 1.0.0.1

    The difference in query time is very obvious - 2msec
    Code:
    dig cpanel.net
    
    ; <<>> DiG 9.9.4-RedHat-9.9.4-61.el7_5.1 <<>> cpanel.net
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64576
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 1452
    ;; QUESTION SECTION:
    ;cpanel.net.            IN    A
    
    ;; ANSWER SECTION:
    cpanel.net.        100    IN    A    208.74.123.68
    cpanel.net.        100    IN    A    208.74.121.51
    
    ;; Query time: 2 msec
    ;; SERVER: 1.0.0.1#53(1.0.0.1)
    ;; WHEN: Wed Dec 05 07:29:34 CST 2018
    ;; MSG SIZE  rcvd: 71
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice