DNS doesn't work?

Discussion in 'Installation/Configuration' started by Skprorok, Jul 22, 2011.

  1. Skprorok

    Skprorok New Member

    Hello!

    I have two ISPconfig servers. ISPconfig 3.0.3.2 and 3.0.3.3. first is Ubuntu server 9.04 and second ubuntu server 10.10. I am trying to migrate first server to the second but when I copy a webpage from first to second and set up DNS it doesn't work. DNS records are same as on the first server. DNS service is running

    Any help?

    Thanks for replies!
     
    Last edited: Jul 22, 2011
  2. erosbk

    erosbk New Member

    If you are moving a site from one to server to other, and, if with this the IP of the server is DIFFERENT, then, you MUST point records to new IP, and WAIT this records to expire in every server that preiously consulted yours...

    My TTL for a record is 4 hours... If I change a site from on server to another, I have to wait 4 hours to access it (from internet).

    See if you can play with this :p
     
  3. Skprorok

    Skprorok New Member

    I have changed IP address and waited 48 hours but still not working. "same DNS records" I meant that i have all records (A, MX, ns1, ns2...) that i had on the first server (which I am migrating from)
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Any errors in your logs?

    Did you check your records with www.intodns.com ?
     
  5. Skprorok

    Skprorok New Member


    Yes. I have checked intodns.com. You can check it if you want. http://www.intodns.com/kurz.sk. When a webpage is on old server everything is okay, but when I migrate webpage to the new server I have errors which you can see in the link.

    Thx for reply
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Are you sure BIND is running on the new server? What are the outputs of
    Code:
    netstat -tap
    and
    Code:
    iptables -L
    ?
     
  7. Skprorok

    Skprorok New Member

    netstat -tap

    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 localhost:10025 *:* LISTEN 1455/master
    tcp 0 0 *:mysql *:* LISTEN 946/mysqld
    tcp 0 0 *:http-alt *:* LISTEN 1558/apache2
    tcp 0 0 *:www *:* LISTEN 1558/apache2
    tcp 0 0 *:tproxy *:* LISTEN 1558/apache2
    tcp 0 0 *:ftp *:* LISTEN 32234/pure-ftpd (SE
    tcp 0 0 servervg2.presta:domain *:* LISTEN 963/named
    tcp 0 0 localhost:domain *:* LISTEN 963/named
    tcp 0 0 *:ssh *:* LISTEN 827/sshd
    tcp 0 0 *:888 *:* LISTEN 1578/3dm2
    tcp 0 0 *:smtp *:* LISTEN 1455/master
    tcp 0 0 localhost:953 *:* LISTEN 963/named
    tcp 0 0 *:https *:* LISTEN 1558/apache2
    tcp 0 52 servervg2.prestavka:ssh 18980094094.user.v:8404 SPOJENГќ 28055/sshd: [accept
    tcp 0 0 servervg2.prestavka:ssh bband-dyn145.95-1:54723 SPOJENГќ 27996/sshd: skproro
    tcp 0 0 servervg2.prestav:53733 93.184.70.61.vnet.s:www SPOJENГќ 27935/wget
    tcp6 0 0 [::]:pop3 [::]:* LISTEN 1342/couriertcpd
    tcp6 0 0 [::]:imap2 [::]:* LISTEN 1308/couriertcpd
    tcp6 0 0 [::]:ftp [::]:* LISTEN 32234/pure-ftpd (SE
    tcp6 0 0 [::]:domain [::]:* LISTEN 963/named
    tcp6 0 0 [::]:ssh [::]:* LISTEN 827/sshd
    tcp6 0 0 localhost:953 [::]:* LISTEN 963/named
    tcp6 0 0 [::]:imaps [::]:* LISTEN 1328/couriertcpd
    tcp6 0 0 [::]:pop3s [::]:* LISTEN 1362/couriertcpd


    iptables -L

    Chain INPUT (policy DROP)
    target prot opt source destination
    fail2ban-ssh tcp -- anywhere anywhere multiport dports ssh
    DROP tcp -- anywhere loopback/8
    ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
    ACCEPT all -- anywhere anywhere
    DROP all -- base-address.mcast.net/4 anywhere
    PUB_IN all -- anywhere anywhere
    PUB_IN all -- anywhere anywhere
    PUB_IN all -- anywhere anywhere
    PUB_IN all -- anywhere anywhere
    DROP all -- anywhere anywhere

    Chain FORWARD (policy DROP)
    target prot opt source destination
    ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
    DROP all -- anywhere anywhere

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination
    PUB_OUT all -- anywhere anywhere
    PUB_OUT all -- anywhere anywhere
    PUB_OUT all -- anywhere anywhere
    PUB_OUT all -- anywhere anywhere

    Chain INT_IN (0 references)
    target prot opt source destination
    ACCEPT icmp -- anywhere anywhere
    DROP all -- anywhere anywhere

    Chain INT_OUT (0 references)
    target prot opt source destination
    ACCEPT icmp -- anywhere anywhere
    ACCEPT all -- anywhere anywhere

    Chain PAROLE (11 references)
    target prot opt source destination
    ACCEPT all -- anywhere anywhere

    Chain PUB_IN (4 references)
    target prot opt source destination
    ACCEPT icmp -- anywhere anywhere icmp destination-unreachable
    ACCEPT icmp -- anywhere anywhere icmp echo-reply
    ACCEPT icmp -- anywhere anywhere icmp time-exceeded
    ACCEPT icmp -- anywhere anywhere icmp echo-request
    PAROLE tcp -- anywhere anywhere tcp dpt:ftp
    PAROLE tcp -- anywhere anywhere tcp dpt:ssh
    PAROLE tcp -- anywhere anywhere tcp dpt:smtp
    PAROLE tcp -- anywhere anywhere tcp dpt:domain
    PAROLE tcp -- anywhere anywhere tcp dpt:www
    PAROLE tcp -- anywhere anywhere tcp dpt:pop3
    PAROLE tcp -- anywhere anywhere tcp dpt:imap2
    PAROLE tcp -- anywhere anywhere tcp dpt:https
    PAROLE tcp -- anywhere anywhere tcp dpt:mysql
    PAROLE tcp -- anywhere anywhere tcp dpt:http-alt
    PAROLE tcp -- anywhere anywhere tcp dpt:webmin
    ACCEPT udp -- anywhere anywhere udp dpt:domain
    DROP icmp -- anywhere anywhere
    DROP all -- anywhere anywhere

    Chain PUB_OUT (4 references)
    target prot opt source destination
    ACCEPT all -- anywhere anywhere

    Chain fail2ban-ssh (1 references)
    target prot opt source destination
    DROP all -- 18980094094.user.veloxzone.com.br anywhere
    RETURN all -- anywhere anywhere


    Thanks
     
  8. falko

    falko Super Moderator ISPConfig Developer

    Looks ok, but I can't resolve any records at all:

    Code:
    mh1:~# dig any kurz.sk
    
    ; <<>> DiG 9.3.4 <<>> any kurz.sk
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 18719
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;kurz.sk.                       IN      ANY
    
    ;; Query time: 119 msec
    ;; SERVER: 213.133.98.98#53(213.133.98.98)
    ;; WHEN: Tue Jul 26 17:33:20 2011
    ;; MSG SIZE  rcvd: 25
    
    mh1:~#
    Did you create glue records? http://en.wikipedia.org/wiki/Domain_Name_System#Circular_dependencies_and_glue_records
     
: dns

Share This Page