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!

One domain not working in DNS Cluster

Discussion in 'Bind/DNS/Nameserver' started by speckados, Aug 3, 2018.

  1. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    320
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I've a domain, not work on DNSCluster, but all domain over . this domain and same server work fine

    Including Address A for namserver of this problem.

    Domain: example.com
    NAMESERVERS:
    Code:
    ns4681.example.com.    7200    IN    A    5.135.xx.xx
    ns4682.example.com.    7200    IN    A    212.83.xxx.xx
    Tests
    Code:
    ➜  ~ dig +short @ns4681.example.com example.com
    5.135.xx.xx
    ➜  ~ dig +short @ns4682.example.com example.com
    ➜  ~ dig +short @ns4682.example.com kvm468.example.com
    ➜  ~ dig +short @ns4682.example.com ns4681.example.com
    5.135.xx.xx
    ➜  ~ dig +short @ns4682.example.com ns4682.example.com
    212.83.xxx.xx
    ➜  ~ dig +short @ns4682.example.com ceinor.net
    5.135.xx.xx
    ➜  ~

    On secondary dns, has a zone file, and on named.conf has zone in internal and external

    Code:
    view "internal" {
    ...
    zone "example.com" {
            type master;
        file "/var/named/example.com.db";
    };
    ...
    }
    ...
    view    "external" {
    
    zone "example.com" {
            type master;
            file "/var/named/example.com.db";
    };
    
    }
    And file zone is correct.


    Code:
    [root@bkmx ~]# dig @localhost example.com
    
    ; <<>> DiG 9.9.4-RedHat-9.9.4-61.el7 <<>> @localhost example.com
    ; (2 servers found)
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64336
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
    
    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 4096
    ;; QUESTION SECTION:
    ;example.com.            IN    A
    
    ;; ANSWER SECTION:
    example.com.        3600    IN    A    5.135.xx.xx
    
    ;; AUTHORITY SECTION:
    example.com.        3600    IN    NS    ns4682.example.com.
    example.com.        3600    IN    NS    ns4681.example.com.
    
    ;; ADDITIONAL SECTION:
    ns4681.example.com.    172800    IN    A    5.135.xx.xx
    ns4682.example.com.    172800    IN    A    212.83.xxx.xx
    
    ;; Query time: 12 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: vie ago 03 12:11:50 CEST 2018
    ;; MSG SIZE  rcvd: 129
    Any ideas?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 speckados, Aug 3, 2018
    Last edited by a moderator: Aug 3, 2018
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,212
    Likes Received:
    159
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    HI @speckados


    The issue seems to be specific to just ns4682@ this nameserver is not responding to DNS queries properly. Can you confirm the following:

    1. example.com has a dns zone file in /var/named/ on ns4682@
    2. The relationship between the webserver and the two nameservers
    3. Please run the following and let me know the output:
    Code:
    /scripts/dnscluster syncall --full

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

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    320
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    On my post I put this information. if you read post, i say:



    1. In /etc/named.conf are entries for internal and external for example.com.
    2. In /var/named/ are a file zone for example.com.db
    3. Relation shipos work for 3 servers in mode slave. Servers remote a primary and has a relation, Write Only over this server.
    4. This server (example.com) has 25 domains that work and resolve perfectly in dns. Only NOT work example.com
    5. Comand /scripts/dnscluster syncall --full are running several times.

    Code:
    root@MATSER.example.com/scripts/dnscluster syncall --full
    Syncing Zones to all machines in cluster....(full)........................Done
    But important points 1, 2 is buig question. Why if zone are declared on /etc/named.conf and zones declared are in /var/named server awswer with EMPTY response?


    More information cahnging my domain with example.com


    Server seondary or slave that response 0

    Of course this server is a declared and registered GLUE record for ns4682.example.com

    Code:
     cat /etc/named.conf |grep example.com
    zone "example.com" {
        file "/var/named/example.com.db";
    zone "ns4681.example.com" {
        file "/var/named/ns4681.example.com.db";
    zone "reseller.example.com" {
        file "/var/named/reseller.example.com.db";
    zone "ns4682.example.com" {
        file "/var/named/ns4682.example.com.db";
    zone "example.com" {
        file "/var/named/example.com.db";
    zone "ns4681.example.com" {
        file "/var/named/ns4681.example.com.db";
    zone "reseller.example.com" {
        file "/var/named/reseller.example.com.db";
    zone "ns4682.example.com" {
        file "/var/named/ns4682.example.com.db";
    Code:
    cat /var/named/example.com.db
    ; cPanel first:11.32.2.25 (update_time):1533309965 Cpanel::ZoneFile::VERSION:1.3 hostname:bkmx.tabratino.com latest:11.72.0.10
    ; Zone file for example.com
    $TTL 14400
    example.com.    7200    IN    SOA    ns4681.example.com.    sysad.tamainut.com.    (
                            2018080312 ;Serial Number
                            86400 ;refresh
                            7200 ;retry
                            3600000 ;expire
                            86400 ;minimum
        )
    example.com.    7200    IN    NS    ns4682.example.com.
    example.com.    7200    IN    NS    ns4681.example.com.
    example.com.    7200    IN    A    9.9.9.9
    localhost    7200    IN    A    127.0.0.1
    example.com.    7200    IN    MX    0    example.com.
    mail    7200    IN    CNAME    example.com.
    www    7200    IN    CNAME    example.com.
    ftp    7200    IN    A    9.9.9.9
    example.com.    7200    IN    TXT    "v=spf1 ip4:9.9.9.10 ip4:9.9.9.9 +a +mx +ip4:9.9.9.11 +ip4:9.9.9.12+include:websitewelcome.com ~all"
    cpanel    7200    IN    A    9.9.9.9
    whm    7200    IN    A    9.9.9.9
    webdisk    7200    IN    A    9.9.9.9
    webmail    7200    IN    A    9.9.9.9
    www.webmail    7200    IN    A    9.9.9.9
    webmail    7200    IN    TXT    ""
    genes    7200    IN    A    9.9.9.9
    www.genes    7200    IN    A    9.9.9.9
    webdisk.genes    7200    IN    A    9.9.9.9
    autoconfig.genes    7200    IN    A    9.9.9.9
    autodiscover.genes    7200    IN    A    9.9.9.9
    _autodiscover._tcp.genes    7200    IN    SRV    0    0    443    cpanelemaildiscovery.cpanel.net.
    autoconfig    7200    IN    A    9.9.9.9
    autodiscover    7200    IN    A    9.9.9.9
    _autodiscover._tcp    7200    IN    SRV    0    0    443    cpanelemaildiscovery.cpanel.net.
    autoconfig.webmail    7200    IN    A    9.9.9.9
    autodiscover.webmail    7200    IN    A    9.9.9.9
    _autodiscover._tcp.webmail    7200    IN    SRV    0    0    443    cpanelemaildiscovery.cpanel.net.
    webdisk.webmail    7200    IN    A    9.9.9.9
    cpcalendars.webmail    7200    IN    A    9.9.9.9
    cpcontacts.webmail    7200    IN    A    9.9.9.9
    cpcalendars.genes    7200    IN    A    9.9.9.9
    cpcontacts.genes    7200    IN    A    9.9.9.9
    cpcalendars    7200    IN    A    9.9.9.9
    cpcontacts    7200    IN    A    9.9.9.9
    nps2    7200    IN    A    46.105.249.99
    euromaster    7200    IN    A    79.137.30.5
    gestion    7200    IN    A    79.137.30.5
    genes    7200    IN    TXT    "v=spf1 ip4:9.9.9.10 ip4:9.9.9.9 +a +mx +ip4:9.9.9.11 +ip4:9.9.9.12+include:websitewelcome.com ~all"
    webmail    7200    IN    TXT    "v=spf1 ip4:9.9.9.10 ip4:9.9.9.9 +a +mx +ip4:9.9.9.11 +ip4:9.9.9.12+include:websitewelcome.com ~all"
    default._domainkey    7200    IN    TXT    "v=DKIM1; k=rsa; p=MIIBIjANBgWWWWWWWWWWIIBCgKCAQEAvBpXcA2SmJNq+f+05TSneSf9zqjLJe7Anj7QqM0bNA3YtVWRgBRtTFknUb0Nmw3jurtKnOnWV6ABAhl78/avlgt6qjEWeFjn7Sl+4BfK2cNFFuilTMr0NBFuMqjzE1ED5iTG8H32zNMjmkqzoD0HEhPQLKqe4KE9oO1wE7HN542RlLsuZwUrAZbe0c6ug6Ij2" SdVZyVHY7vFc0JQBLAI1qFI7rpO9v+TJps6l6UahrXiRmRsggI/nKei8eMUybXkhMwbdb8GUxWWWWWWXzwFJekWbJbcQLrPHcjLtOvR13VZ7sksdRDHHH4AABGTQzQ+M5WYK992gzvwIDAQAB\;
    _acme-challenge.nps2    7200    IN    TXT    X0h8n2wbeYu7YFLyY4Y14zjnlNwoHE6G5wCHx6F0XXA
    whm.webmail    7200    IN    A    9.9.9.9
    cpanel.genes    7200    IN    A    9.9.9.9
    whm.genes    7200    IN    A    9.9.9.9
    webmail.webmail    7200    IN    A    9.9.9.9
    webmail.genes    7200    IN    A    9.9.9.9
    cpanel.webmail    7200    IN    A    9.9.9.9
    ns4682    7200    IN    A    212.83.142.45
    test    3600    IN    A    1.1.3.3
    kvm468 IN A  9.9.9.9
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #3 speckados, Aug 3, 2018
    Last edited: Aug 3, 2018
  4. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,212
    Likes Received:
    159
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello @speckados

    Thank you for that information. I do agree the files are present but in order for this issue to be occurring, there must a configuration issue which is why I'm requesting the information I am.

    Can you tell me what happens when you run the following on ns4682:

    Code:
    /scripts/rebuilddnsconfig
    Can you also provide the nameserver and version of cPanel being run on all servers?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    320
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    CENTOS 6.10 kvm [kvm468]v72.0.10



    After run not work example.com in any dns


    /scripts/rebuilddnsconfig
    Waiting for “bind” to restart ………waiting for “named” to initialize ………finished.

    Service Status
    named (/usr/sbin/named -u named) is running as named with PID 12057 (pidfile+/proc check method).

    Startup Log
    Iniciando named: [ OK ]

    Log Messages
    Aug 4 07:28:39 kvm468 named[12057]: zone example1.es/IN/external: loaded serial 2018080306
    Aug 4 07:28:39 kvm468 named[12057]: zone example2.es/IN/external: loaded serial 2018080306
    Aug 4 07:28:39 kvm468 named[12057]: zone example3.es/IN/external: loaded serial 2018080306
    Aug 4 07:28:39 kvm468 named[12057]: zone example4.es/IN/external: loaded serial 2018080306

    named restarted successfully.

    Code:
    dig example.com
    
    ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.68.rc1.el6 <<>> example.com
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 39346
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;example.com.            IN    A
    
    ;; Query time: 22 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Sat Aug  4 07:29:34 2018
    ;; MSG SIZE  rcvd: 28
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #5 speckados, Aug 4, 2018
    Last edited by a moderator: Aug 4, 2018
  6. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    320
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Resolve deleting zone in server andadd zone and edit zone.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,212
    Likes Received:
    159
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @speckados

    Can you clarify your last response? Are you indicating that the issue has been resolved?

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    320
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Yes.

    I solve with steps:

    1. Backup zone
    2. Delete zone
    3. Add zone simple
    4. Add manually some address of zone
    Works!!!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelLauren likes this.
  9. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,212
    Likes Received:
    159
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @speckados

    Thank you for clarifying and I'm really happy to see it's working properly for you now!
     
    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