Problem to add a second domain in DNS

Discussion in 'Installation/Configuration' started by estreetz, Jan 6, 2015.

  1. estreetz

    estreetz New Member

    Hello,
    I used ispconfig 3.0.5.4 on linux ubuntu server 14.04 like single server since one week and everyting works good
    but, now i try to use it on multiserver and i got problem to add a second domain name in my DNS
    I try add my second domain in hosts file server
    but i don't know which IP address i need to use local or public
    see dig and nslookup command line
    also i got NX DOMAIN response in another PC when i use nslookup

    see screenshot attach files for DNS seting for ISPConfig

    root@:~# dig @localhost agence-conseil-webmarketing.com
    ; <<>> DiG 9.9.5-3ubuntu0.1-Ubuntu <<>> @localhost agence-conseil-webmarketing.com
    ; (2 servers found)
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 26572
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 4096
    ;; QUESTION SECTION:
    ;agence-conseil-webmarketing.com. IN A

    ;; Query time: 119 msec
    ;; SERVER: ::1#53:):1)
    ;; WHEN: Tue Jan 06 23:15:21 CET 2015
    ;; MSG SIZE rcvd: 60

    root@:~# nslookup agence-conseil-webmarketing.com
    ;; Got SERVFAIL reply from 127.0.0.1, trying next server
    Server: ::1
    Address: ::1#53

    ** server can't find agence-conseil-webmarketing.com: SERVFAIL

    Thank you for your help !!
     

    Attached Files:

  2. estreetz

    estreetz New Member

    root@ns1:~# cat htf_report.txt | more

    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    IP-address(es) (as per ifconfig): ***.***.***.***
    [WARN] ip addresses from hostname differ from ifconfig output. Please check your ip settings.
    [INFO] ISPConfig is installed.

    ##### ISPCONFIG #####
    ISPConfig version is 3.0.5.4p5


    ##### VERSION CHECK #####

    [INFO] php (cli) version is 5.5.9-1ubuntu4.5

    ##### PORT CHECK #####

    [WARN] Port 443 (Webserver SSL) seems NOT to be listening

    ##### MAIL SERVER CHECK #####


    ##### RUNNING SERVER PROCESSES #####

    [INFO] I found the following web server(s):
    Nginx (PID 1813)
    [INFO] I found the following mail server(s):
    Postfix (PID 1921)
    [INFO] I found the following pop3 server(s):
    Dovecot (PID 822)
    [INFO] I found the following imap server(s):
    Dovecot (PID 822)
    [INFO] I found the following ftp server(s):
    PureFTP (PID 1945)

    ##### LISTENING PORTS #####
    (seulement ()
    Adresse (distante)
    [anywhere]:993 (822/dovecot)
    [anywhere]:995 (822/dovecot)
    [localhost]:10024 (1119/amavisd-new)
    [localhost]:10025 (1921/master)
    [localhost]:3306 (884/mysqld)
    [anywhere]:587 (1921/master)
    [anywhere]:110 (822/dovecot)
    [anywhere]:143 (822/dovecot)
    [anywhere]:80 (1813/nginx)
    [anywhere]:8080 (1813/nginx)
    [anywhere]:465 (1921/master)
    [anywhere]:8081 (1813/nginx)
    [anywhere]:21 (1945/pure-ftpd)
    ***.***.***.***:53 (898/named)
    [localhost]:53 (898/named)
    [anywhere]:22 (817/sshd)
    [anywhere]:25 (1921/master)
    [localhost]:953 (898/named)
    *:*:*:*::*:993 (822/dovecot)
    *:*:*:*::*:995 (822/dovecot)
    *:*:*:*::*:587 (1921/master)
    [localhost]10 (822/dovecot)
    [localhost]43 (822/dovecot)
    *:*:*:*::*:80 (1813/nginx)
    *:*:*:*::*:465 (1921/master)
    *:*:*:*::*:21 (1945/pure-ftpd)
    *:*:*:*::*:53 (898/named)
    *:*:*:*::*:22 (817/sshd)
    *:*:*:*::*:25 (1921/master)
    *:*:*:*::*:953 (898/named)




    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    fail2ban-postfix-sasl tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25
    fail2ban-dovecot-pop3imap tcp -- [anywhere]/0 [anywhere]/0 multiport dports 110,995,143,993
    fail2ban-pureftpd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 21
    fail2ban-ssh tcp -- [anywhere]/0 [anywhere]/0 multiport dports 22

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Chain fail2ban-dovecot-pop3imap (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain fail2ban-postfix-sasl (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain fail2ban-pureftpd (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain fail2ban-ssh (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    The pop3 cname record is missing the dot at the end. But thats a different problem. Check the syslog file for named / bind errors.
     
  4. estreetz

    estreetz New Member

    Hello,
    Thanks your help for cname pop3
    I find this error on my syslog but it's my old dns for this domain name
    Can you help me ?

    Jan 7 06:53:51 ns1 named[859]: error (network unreachable) resolving 'ns2.discount-pro.biz/A/IN': 2001:503:7bbb:ffff:ffff:ffff:ffff:ff7e#53

    Jan 7 06:53:51 ns1 named[859]: error (network unreachable) resolving 'ns1.discount-pro.biz/A/IN': 2001:503:7bbb:ffff:ffff:ffff:ffff:ff7e#53

    Jan 7 06:53:51 ns1 named[859]: error (network unreachable) resolving 'ns1.discount-pro.biz/AAAA/IN': 2001:503:7bbb:ffff:ffff:ffff:ffff:ff7e#53

    Jan 7 06:53:51 ns1 named[859]: error (network unreachable) resolving 'ns2.discount-pro.biz/AAAA/IN': 2001:503:7bbb:ffff:ffff:ffff:ffff:ff7e#53
     
  5. estreetz

    estreetz New Member

    i got this also

    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 86.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 87.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 88.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 89.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 90.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 91.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 92.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 93.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 94.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 95.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 96.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 97.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 98.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 99.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 100.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 101.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 102.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 103.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 104.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 105.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 106.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 107.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 108.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 109.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 110.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 111.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 112.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 113.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 114.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 115.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 116.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 117.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 118.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 119.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 120.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 121.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 122.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 123.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 124.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 125.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 126.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 127.100.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 254.169.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 100.51.198.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 113.0.203.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: D.F.IP6.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 8.E.F.IP6.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 9.E.F.IP6.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: A.E.F.IP6.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: B.E.F.IP6.ARPA
    Jan 7 13:43:02 ns1 named[859]: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
    Jan 7 13:43:02 ns1 named[859]: reloading configuration succeeded
    Jan 7 13:43:02 ns1 named[859]: reloading zones succeeded
    Jan 7 13:43:02 ns1 named[859]: zone agence-conseil-marketing.com/IN: loaded serial 2015010701
    Jan 7 13:43:02 ns1 named[859]: zone agence-conseil-marketing.com/IN: sending notifies (serial 2015010701)
    Jan 7 13:43:02 ns1 named[859]: client 93.121.227.120#31053: received notify for zone 'agence-conseil-marketing.com'
    Jan 7 13:43:02 ns1 named[859]: all zones loaded
    Jan 7 13:43:02 ns1 named[859]: running
     
  6. estreetz

    estreetz New Member

  7. estreetz

    estreetz New Member

    Hello,
    my local dig
    ; <<>> DiG 9.9.5-3ubuntu0.1-Ubuntu <<>> localhost agence-conseil-webmarketing.com
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46135
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 4096
    ;; QUESTION SECTION:
    ;localhost. IN A
    ;; ANSWER SECTION:
    localhost. 604800 IN A 127.0.0.1
    ;; AUTHORITY SECTION:
    localhost. 604800 IN NS localhost.
    ;; ADDITIONAL SECTION:
    localhost. 604800 IN AAAA ::1
    ;; Query time: 1 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Thu Jan 08 14:16:39 CET 2015
    ;; MSG SIZE rcvd: 96
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51294
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 4096
    ;; QUESTION SECTION:
    ;agence-conseil-webmarketing.com. IN A
    ;; ANSWER SECTION:
    agence-conseil-webmarketing.com. 3600 IN A 93.121.227.120
    ;; AUTHORITY SECTION:
    agence-conseil-webmarketing.com. 3600 IN NS ns1.cafe-guadeloupe.fr.
    agence-conseil-webmarketing.com. 3600 IN NS ns2.cafe-guadeloupe.fr.
    ;; ADDITIONAL SECTION:
    ns1.cafe-guadeloupe.fr. 86400 IN A 93.121.227.120
    ns2.cafe-guadeloupe.fr. 86400 IN A 93.121.227.120
    ;; Query time: 1 sec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Thu Jan 08 14:16:39 CET 2015
    ;; MSG SIZE rcvd: 162

    my dig is ok now
    dig agence-conseil-webmarketing.com

    ; <<>> DiG 9.8.3-P1 <<>> agence-conseil-webmarketing.com
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55184
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    ;; QUESTION SECTION:
    ;agence-conseil-webmarketing.com. IN A
    ;; ANSWER SECTION:
    agence-conseil-webmarketing.com. 3599 IN A 93.121.227.120
    ;; Query time: 234 msec
    ;; SERVER: 8.8.8.8#53(8.8.8.8)
    ;; WHEN: Thu Jan 8 09:20:42 2015
    ;; MSG SIZE rcvd: 65
     
  8. estreetz

    estreetz New Member

    Hello,
    Now, i got hello to nginx page instead hello page
    How to have hello page for my secondary website
    Thank You
     

Share This Page