[Solved] Troubles setting up DNS
[Solved] Troubles setting up DNS
Thank you first of all for these wonderful tools, I've been recently seduced by your work and your community. I come to you to ask you for a little help about DNS. Please read the following context in order to understand.
I've got a fresh server with a fresh installation of Centos 7 + VirtualMin Lastet. Everything went well during installation and configuration, I've been able to configure Nginx and my Virtual Server and BIND9.
What my domain name offers me :
- Two DNS set from my host ( dns112.ovh.net + ns112.ovh.net )
What my dedicated server offers me :
- One IP address
- One http/hostname address (ns-xxxx.ip-xxx-xxx-xxx.eu) <= Should I use this address as the primary DNS ? Below, I decided to create a custom dns : ns1.domain.com
What I did on my domain :
- Deleted first DNS dns112.ovh.ne" and replaced it by ns1.mydomain.com and not ns-xxxx.ip-xxx-xxx-xxx.eu
- Kept second DNS ns112.ovh.net
What I did on BIND9 :
ns1.domain.com. Default xxx.xxx.xxx.xx
domain.com. Default xxx.xxx.xxx.xx
www.domain.com. 60 xxx.xxx.xxx.xx
pong.domain.com. 60 xxx.xxx.xxx.xx
ftp.domain.com. Default xxx.xxx.xxx.xx
m.domain.com. Default xxx.xxx.xxx.xx
localhost.domain.com. Default 127.0.0.1
Name Servers :
domain.com. Default ns112.ovh.net.
domain.com. Default ns1.domain.com.
What it looks like in Virtualmin > Server Configuration > DNS Records :
Record name Type Value
domain.com SOA - Start Of Domain ns-xxxx.ip-xxx-xxx-xxx.eu. root.ns-xxxx.ip-xxx-xxx-xxx.eu. 1537365235 6 ...
domain.com NS - Name Server ns112.ovh.net.
ns1 A - IPv4 Address xxx.xxx.xxx.xx
domain.com A - IPv4 Address xxx.xxx.xxx.xx
www A - IPv4 Address xxx.xxx.xxx.xx
pong A - IPv4 Address xxx.xxx.xxx.xx
ftp A - IPv4 Address xxx.xxx.xxx.xx
m A - IPv4 Address xxx.xxx.xxx.xx
localhost A - IPv4 Address 127.0.0.1
mail A - IPv4 Address xxx.xxx.xxx.xx
domain.com MX - Mail Server 5 mail.domain.com.
domain.com SPF - Sender Permitted From v=spf1 a mx a:domain.com ip4:xxx.xxx.xxx.xx ip4:xxx.xxx.xxx.xx ip6:2001: ...
domain.com NS - Name Server ns1.domain.com.
Previously, I didn't set up ns1.domain.com, I used instead the ns-xxxx.ip-xxx-xxx-xxx.eu as my domain's first DNS.
It worked and I could send/receive emails, access pong.domain.com, etc.
Now that I operated as bellow, nothing works except domain.com.
I really missed something to understand fully how it works, but even after reading a lot on the net and seeing examples, I still can't understand ... What did I do wrong ? Why people configure BIND9 AND virtual server DNS RECORDS ?
Should I order a second IP address for the server and use two DNS ?
If you could point me in the right direction, that would be great, I would love to learn and not only correct the glitches.
Thank you very much. :)
PS: I hope there is no offend by the fact that I posted a help request and didn't post somewhere else yet. I'll find a way to contribute on my own to this great community. I'm a web developer, so feel free to ask me for help if needed. I would like to learn how to manage a server and this starts by using Virtualmin and explore !
Edit : Ok, I found this : https://www.virtualmin.com/documentation/dns/faq . I haven't seen the full page so I'm gonna try and be back to you ! :)