ISPConfig mail server problem

Discussion in 'Installation/Configuration' started by mcardo, Oct 20, 2008.

  1. mcardo

    mcardo New Member

    Ok. leaving the previous Idea behind. I'm settling for mixed servers (my server as primary and godady's as secondary)

    Under godaddy's DNS control I only have:
    A record of mydomain.com to my public IP.
    A record of myserver to my public IP
    Also Godaddy has my server and one of its own dns servers set as primary and secondary respectively.

    Under my server's DNS settings I have:
    A records www, mail, myserver... all these records pointing to my public IP
    MX record myserver.mydomain.com
    CNAME pop3 and smtp pointing to myserver.mydomain.com
    I have my server and godaddy's as primary and secondary DNS server.

    It seems like, when I try to browse to "www.mydomain.com", I don't get the page unless I add A record www to the godaddy DNS zone. Also "intodns.com" tells me it didn't find any MX records or www records when I have them binded in my server.... And intodns.com tells me godaddy's dns server is primary and mine secondary.
     
    Last edited: Oct 28, 2008
  2. falko

    falko Super Moderator ISPConfig Developer

    How long did you wait after your changes? It can take up to 72 hours until DNS changes propagate.
     
  3. mcardo

    mcardo New Member

    Must have been a time issue, it usually works within the 20 minutes or so... Well it works now.

    Would my server still resolve names if I remove the A record of "myserver" to my public IP from the Godaddy DNS Control? (this would only leave the godaddy dns control with A record of mydomain.com to my public IP and no other records)

    note: considering I have it under Godaddy's list of DNS servers, shouldn't it still resolve DNS name requests?
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Are you using myserver as the hostname for your DNS server, or rather something like ns1?
     
  5. mcardo

    mcardo New Member

    I'm actually using server1 as my dns server name, same as the host name of my server under ISPConfig.

    Under godaddy

    Hosts: server1.cardorepub.com to my public IP

    Dns servers:
    server1.cardorepub.com <---my dns server
    ns52.domaincontrol.com <---godaddy's dns server

    A records:
    cardorepub.com to my public IP
    server1 to my public IP

    Under my server's ISPConfig

    Management>server>settings:
    Servername: Sever 1 (default from installation)
    Host: server1
    IP: public IP

    Dns servers:
    server1.cardorepub.com
    ns52.domaincontrol.com

    (Under both management>server>settings>dns and DNS management>options)

    $TTL 86400
    @ IN SOA SERVER1.CARDOREPUB.COM. mcardo99.hotmail.com. (
    2008102904 ; serial, todays date + todays serial #
    28800 ; refresh, seconds
    7200 ; retry, seconds
    604800 ; expire, seconds
    86400 ) ; minimum, seconds
    ;
    NS SERVER1.CARDOREPUB.COM. ; Inet Address of name server 1
    NS NS52.DOMAINCONTROL.COM. ; Inet Address of name server 2
    ;

    MX 10 server1.cardorepub.com.

    cardorepub.com. A 69.115.170.14
    www A 69.115.170.14
    server1 A 69.115.170.14

    smtp CNAME server1.cardorepub.com.
    pop3 CNAME server1.cardorepub.com.

    cardorepub.com. TXT "v=spf1 a mx ptr ~all"



    That is my current configurations and I'm holding it for the moment as I am able to access my webpage. Please see my www.intodns.com/cardorepub.com report and tell me what you think.

    I get various results at different time without changing anything anywhere. At times I get mismatched NS records and the servers are reported as non-responsive. Also at times I get no "MX" record and no "WWW" "A record" is found, when I actually have those configured under my ISPConfig DNS settings. I've pasted my zone file.

    Thank you all for the time you guys take to help others.
     
    Last edited: Oct 30, 2008
  6. falko

    falko Super Moderator ISPConfig Developer

    Is your nameserver running? What's the output of
    Code:
    netstat -tap
    ? Are there any BIND-related errors in your logs?
     
  7. mcardo

    mcardo New Member

    netstat -tap

    (Not all processes could be identified, non-owned process info
    will not be shown, you would have to be root to see it all.)
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:mysql *:* LISTEN -
    tcp 0 0 *:5900 *:* LISTEN -
    tcp 0 0 *:www *:* LISTEN -
    tcp 0 0 *:81 *:* LISTEN -
    tcp 0 0 server1.cardorep:domain *:* LISTEN -
    tcp 0 0 localhost.locald:domain *:* LISTEN -
    tcp 0 0 localhost.localdoma:ipp *:* LISTEN -
    tcp 0 0 localhost.localdoma:953 *:* LISTEN -
    tcp 0 0 *:smtp *:* LISTEN -
    tcp 0 0 *:https *:* LISTEN -
    tcp6 0 0 [::]:imaps [::]:* LISTEN -
    tcp6 0 0 [::]:pop3s [::]:* LISTEN -
    tcp6 0 0 [::]:pop3 [::]:* LISTEN -
    tcp6 0 0 [::]:imap2 [::]:* LISTEN -
    tcp6 0 0 [::]:ftp [::]:* LISTEN -
    tcp6 0 0 [::]:ssh [::]:* LISTEN -
    tcp6 0 0 ip6-localhost:953 [::]:* LISTEN -
    tcp6 0 0 [::]:smtp [::]:* LISTEN



    syslog

    Nov 1 10:15:15 server1 named[5570]: starting BIND 9.4.2-P2 -u bind -t /var/lib/named
    Nov 1 10:15:15 server1 named[5570]: found 1 CPU, using 1 worker thread
    Nov 1 10:15:15 server1 named[5570]: loading configuration from '/etc/bind/named.conf'
    Nov 1 10:15:15 server1 named[5570]: listening on IPv4 interface lo, 127.0.0.1#53
    Nov 1 10:15:15 server1 named[5570]: listening on IPv4 interface eth0, 192.168.2.2#53
    Nov 1 10:15:15 server1 named[5570]: automatic empty zone: 127.IN-ADDR.ARPA
    Nov 1 10:15:15 server1 named[5570]: automatic empty zone: 254.169.IN-ADDR.ARPA
    Nov 1 10:15:15 server1 named[5570]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
    Nov 1 10:15:15 server1 named[5570]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
    Nov 1 10:15:15 server1 named[5570]: 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
    Nov 1 10:15:15 server1 named[5570]: 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
    Nov 1 10:15:15 server1 named[5570]: automatic empty zone: D.F.IP6.ARPA
    Nov 1 10:15:15 server1 named[5570]: automatic empty zone: 8.E.F.IP6.ARPA
    Nov 1 10:15:15 server1 named[5570]: automatic empty zone: 9.E.F.IP6.ARPA
    Nov 1 10:15:15 server1 named[5570]: automatic empty zone: A.E.F.IP6.ARPA
    Nov 1 10:15:15 server1 named[5570]: automatic empty zone: B.E.F.IP6.ARPA
    Nov 1 10:15:15 server1 named[5570]: command channel listening on 127.0.0.1#953
    Nov 1 10:15:15 server1 named[5570]: command channel listening on ::1#953
    Nov 1 10:15:16 server1 named[5570]: zone 0.0.127.in-addr.arpa/IN: loaded serial 2
    Nov 1 10:15:16 server1 named[5570]: zone cardorepub.com/IN: loaded serial 2008110102
    Nov 1 10:15:16 server1 named[5570]: running
    Nov 1 10:15:16 server1 named[5570]: zone cardorepub.com/IN: sending notifies (serial 2008110102)


    Note: Although netstat -tap doesn't show port 53 or bind listed, I think it is running. Syslog doesn't show any warnings.
     
  8. falko

    falko Super Moderator ISPConfig Developer

    It's running (take a look at /etc/ services - port 53 is named "domain" there).

    This is what I'm getting:

    Code:
    mh1:~# dig ns cardorepub.com
    
    ; <<>> DiG 9.3.4 <<>> ns cardorepub.com
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9856
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;cardorepub.com.                        IN      NS
    
    ;; ANSWER SECTION:
    cardorepub.com.         3600    IN      NS      ns51.domaincontrol.com.
    
    ;; ADDITIONAL SECTION:
    ns51.domaincontrol.com. 115969  IN      A       216.69.185.26
    
    ;; Query time: 399 msec
    ;; SERVER: 213.191.92.84#53(213.191.92.84)
    ;; WHEN: Sun Nov  2 14:40:07 2008
    ;; MSG SIZE  rcvd: 81
    
    mh1:~#
    ns51.domaincontrol.com seems to be the only authoritative nameserver...
     
  9. mcardo

    mcardo New Member

    I guess my problem is solved falko!!! I had to change my router.
    Thanks for the help. The only warning I get from intoDNS is that I only have one server.

    This is how I have it working now:

    I have only one server and one public IP.
    I added two hosts to godaddy, server1 and server2 with both the same public IP.
    I added both to the DNS server list under godaddy.


    In my server, ISPConfig is setup like this:

    DNS servers
    server1.mydomain.com
    server2.mydomain.com.

    A record:
    server1 to public IP
    server2 to public IP

    Cname
    www to server1.mydomain.com
    pop to server1.mydomain.com
    smtp to server1.mydomain.com

    MX
    server1.mydomain.com

    ALL WORKS FLAWLESSLY. I decommissioned my crappy Belkin F5D-8233-4, it's only pretty in the outside. Get something that works people. To know whether you're router is doing a good job at forwarding ports test your server plugged directly into the modem and make sure your Internet Service Provider is not blocking any ports (usually they block 80 (web server port) and 25 (mail server outgoing port). Use www.canyouseeme.org to check for port forwarding and www.intodns.com to test your DNS configuration.

    Again I have only one Machine and one public IP and made my website and domain work fine with godaddy.
    It is recommended to use two or more DNS servers with each their own public IP, but for people like me, who only want to experiment, doesn't really matter using only one machine.
     
    Last edited: Nov 6, 2008

Share This Page