Two DNS Servers (one at ISP and another in my server)

Discussion in 'Installation/Configuration' started by rutame, Jan 31, 2010.

  1. rutame

    rutame Member

    Hello to everyone.

    I am very confused: I have one domain with ISP and it has DNS, I had configured the DNS pointing my server with Ispconfig 3, well in my server with ispconfig i have dns too. My question is: I shoud configuring this DNS or it is indiferent?

    Thank very much and I am sorry for my bad english.
     
  2. lucani

    lucani Member HowtoForge Supporter

    I dont know if I understood you good, but if you bought domain and it's ISP provide self DNS servers (master and slave), you dont have to add records in ISPConfig's DNS. You only have to add site, and point to your server IP in DNS of ISP.
     
    Last edited: Jan 31, 2010
  3. rutame

    rutame Member

    Thank you Lucani

    Anyway, for the email accounts it is not needed? because i can not send email by the smtp.
    I get this error:Cannot connect to smtp server connect error 10060

    Do you know why happens that?

    Thank you again
     
    Last edited: Feb 1, 2010
  4. falko

    falko Super Moderator Howtoforge Staff

    For emails, you should create an MX record that points to the mail server of the domain.
     
  5. prisfeo

    prisfeo New Member

    @rutame:

    i totally quote "lucani"
    i am in the same your situation:
    isp dns and ispconfig3 server;
    i have configured isp dns in order to point (as Falko is telling)
    to MX record to every domain/subdomain with mailboxes configured inside ispconfig3;
    and A record for any website to match virtualhost name based resolution.
    inside ispconfig3 DNS service/configuration is not used.

    bye.
     
  6. rutame

    rutame Member

    First of all thank you very much for yours answers.
    Now, i have all configured so. In my ISP i have Mx record and A record for my domain. With IspConfig 2 and my private server with ADSL all works fine but in a virtual server with IspConfig 3 not works.

    I dont understund why, but i think is something about the virtual server. I will follow trying.

    Thank you again
     
  7. lucani

    lucani Member HowtoForge Supporter

    You can post here your DNS zone, we can say you what's wrong, because in my server everything's working fine
     
  8. rutame

    rutame Member

    All right, this is my DNS configuration at the ISP (domains registerer).

    bazardais.grafycomp.com A 94.23.87.214

    grafycomp.com MX 10 mail.grafycomp.com
    mail.grafycomp.com A 94.23.87.214

    pedrog.grafycomp.com A 94.23.87.214

    www.grafycomp.com A 94.23.87.214
     
  9. lucani

    lucani Member HowtoForge Supporter

    looks good, but have you got "." after yourdomain.com in records?

    What is the real problem? Did you made mailboxes in ISPConfig:(?
     
  10. rutame

    rutame Member

    The problem is that the smpt server not answer well. It show me a weird error 10060.
    By telnet no works again.

    I thinking come back to Ubuntu 8.04LTS and Ispconfig 2

    Could you try to connect by telnet?

    Thanks
     
    Last edited: Feb 1, 2010
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    The answers above are about dns not mail! so dont mix everything up, instead solve one error after another. Regarding your email problem, look at the mail log and post the exact error message from there.
     
  12. u4david

    u4david New Member

    my dns works

    first create dns record using the wizard for your domain in ispconfig3.Less confusing for the first time)
    Check the final records so see what is that you have.
    Make sure that the mail.your-domain points to your mail server.That is if your mail server uses different name change the "mail" to that name.Pay attention how the dns recors use dot "." on the end of each domain







    You have to register your new NS server with your isp.Generally thay have config for that at the domain management panel.If not you may have to contact them to add ns1.yourdaomai and the public ip of your domain.
    Then go to your isp and replace there dns record for your domain with your ns1.yourdomain.com.
    I can not type any more some stuopid add is in my way and it wont close.

    It will take some time (up to 48 hrs) to take effect.
    Then changes on your dns server will be almost instant.
     
    Last edited: Feb 2, 2010
  13. rutame

    rutame Member

    Well, to see if i understood.

    1º_ I have the DNS with my ISP

    grafycomp.com. IN A 94.23.87.214
    grafycomp.com. MX 94.23.87.214
    mail.grafycomp.com. IN A 94.23.87.214
    ns1.grafycomp.com. NS 94.23.87.214

    2º_ In the Ispconfig the my server put the same entries?

    It is an peux redundant, arent you? but if you say it... Anyway i beleave that i had so at IspConfig 2.2 (I love IspConfig 2 ;)

    Teachme if i mistake, merci.
    Thank you very much chavallier
     
  14. lucani

    lucani Member HowtoForge Supporter

    Here is my zone
     
  15. ivomendonca

    ivomendonca Banned

    Dns Servers and Ispconfig.

    A dns is just a translation from an Ip to a Name.

    Normaly i buy my domains (Godaddy or others) and create a nameserver on godday (ns1.name.com) with my ispconfig IP, everysing else is done on ispconfig panel, with one click in -> DNS TEMPLATE WIZARD.

    One Dns server only, will work, no need to have 2 in the same location.

    Reading how dns and services work from scratch will help you doing other advanced configuration.
    But allways start from the simple form, 1 nameserver(remote) , 1 mydns (local) and one click to dns wizard in ispconfig.

    Hope to help, By. :cool:
     
  16. u4david

    u4david New Member

    ok then

    now go to your isp and register your ns1...... using your public ip.

    Sometimes they call it custom NS or extra NS or special NS.

    Im. guesing your dns1....... is for you local resolution
    and that the domain in the ns servers is the one you own and is pointing to server you run the Ispconfig3 on.
     
  17. u4david

    u4david New Member

    loacl name resolution.

    How do i set that LOCAL NS up on local network?
    Talking about Local network (LAN) DNS server?

    just add dns1.mydomain and all records are a records with names and local ip's in the zone?

    Ond where and what do I change that o local clients?
    Or do i mistake the local name server resolution with somethink and it wont work ?

    Hoping to get away with /etc/hosts by using local DNS.
     
    Last edited: Feb 2, 2010
  18. ivomendonca

    ivomendonca Banned

    dns confusion!

    On godday or Other :
    add nameserver ns1.grafycomp.com. with your ipsconfig public IP (94.23.87.214)

    The rest mail, etc.. is in DNS TEMPLATE ispconfig. just use the wizard is all that you need.

    If the registrar need a second server just add ns2.grafycomp.com with the same IP and that will do the trick.
     
  19. rutame

    rutame Member

    Thaks to everybody for helpme.

    But i need make a little aclaration: I have my personal server working fine over ADSL line. I know what is a DNS too, but my troubles begin when i rent a virtual server, i have in that virtual server some domains that i had registered with an ISP ( i registered only the parking althoug this ISP has DNS service i can add records A, MX, CNAME, etc)
    I have a DNS record A pointed to the public IP of my virtual server and have too and MX record.
    But I have problems with the smtp server because use thunderbird (or any mail client) resolv well but the smtp server send a bad message (error 10060).
    Another thing if you put how smtp server the same name that the http server but with port 25 use to works. Per example: smtp server: www.grafycomp.com - port: 25, the name is not important, only it is important that the name resolv IP and the port.

    About my /var/log/mail.log is not clear, but the information does not says me nothing for help.

    Thank you to everyone
     
  20. u4david

    u4david New Member

    the bottom line

    The bottom line is that you own domains.
    regardless of the status ,rent,or not you have them and you can change where the traffic needs to go to resolve any dns requests.

    So register you ns1.......+ public ip of the server with your ISP.
    than
    Make sure that port are forwarded to use DNS,mail basically all the ports that are open in ISPconfig firewall you open in your gateway/router ond asociate them with local ip of your server .

    Then change the DNS primary server to that NS1..... under each domain you own @ ISP c panel.

    Then all the A,MX record will b managed by your Ispconfig3 DNS configuration.

    The traffic fallows

    I go to internet and reguest to go to your website.

    website.com
    It will go to com and there is record that website. is registered with such ISP>
    ISP There will be record that Website.com have its own dns server and it will look up the IP(this is why you have to register your dsn with your IS first)> IP will get to your public modem and then to router on your network>router will forward this traffic to the server you have open the port To ,that need to be your ISPCONFIG3 server.
    Your ISPconfig3server will look in the domain and finds website.com is there.It will pull website.com mx,a,ns record and forward it to them and the application will listen and reply.

    That is how it works in nut shell.

    Not sure how it work if you use more than one dns per domain.I'm sure they have to exchange dns records information to be able to function independent as redundant.An that is really the only reason to have more than one DNS server.Just in case the first one fails there is second one to take care of the redirection.
     

Share This Page