My personal preference is to set it up so its easy to switch servers, and that the DNS records are updated the fastest, in the pass, that was with go daddy’s DNS, now it thats still true I don’t know, it was the way I set up the servers years ago when I first started using Virtualmin, and even at the time, it was because I found instructions on how to do it that way, not that it was the best way, its not the only way, but here are my issues:
If I use Go Daddy as my DNS server:
I have it set as default, which is use their DNS server:
Note:
If you use our nameservers, we update your domain name’s zone file to include the required subdomain A host records supporting the new domain hosts. If you use custom nameservers, your hosting provider must add these records for you.
Under the NS tab, I see the two records:
host -t NS mydomain.com
mydomain.com name server ns1.domaincontrol.com.
mydomain.com name server ns2.domaincontrol.com.
host mydomain.com
mydomain.com has address XXX.XXX.XXX.XXX
mydomain.com mail is handled by 0 mail.mydomain.com.
All looks fine to me, Name servers are right, IP address are right.
Now a question:
/etc/resolv.conf
Currently it is default, its using some DNS server (1), and an internal IP 127.0.0.1
Should it point to the same DNS servers as above?
if yes, it seems that all the domains should be using the same server, but I don’t know if it matters, but I do not want to have to make custom DNS changes to all the domains, so what is the best way to deal with this?
I see an issue, when I first set this install up, I used a URL as my host, I also have a website setup for it, which is not working, which is my clue that DNS is hosed, so I went into Server Configuration -> DNS Records and see the URL in the SOA and NS record, by URL I mean mydomain.com, not NS.mydomain.com, this seems to be the problem, is there a way to fix it globally, or do I need to fix each of the 50 domains to resolve this issue?
Update:
This is not set to DHCP, its Static
/etc/sysconfig/network-scripts/ifcfg-venet0
DEVICE=venet0
BOOTPROTO=static
ONBOOT=yes
IPADDR=127.0.0.1
NETMASK=255.255.255.255
BROADCAST=0.0.0.0
GATEWAYDEV=“venet0”
IPV6INIT=“yes”
/etc/hosts
127.0.0.1 localhost.localdomain localhost
XXX.XXX.XXX.XX1 mydoman.com # ssl
XXX.XXX.XXX.XX2 vps-xxx.manage.myhosting.com vps-xxx # shared IP
IPV6_DEFAULTDEV=“venet0”
DNS record:
$ttl 38400
@ IN SOA mydomain.com. root.mydomain.com. (
1329685143
10800
3600
604800
38400 )
mydomain.com. IN A XXX.XXX.XXX.XXX
www.mydomain.com. IN A XXX.XXX.XXX.XXX
ftp.mydomain.com. IN A XXX.XXX.XXX.XXX
m.mydomain.com. IN A XXX.XXX.XXX.XXX
localhost.mydomain.com. IN A 127.0.0.1
webmail.mydomain.com. IN A XXX.XXX.XXX.XXX
admin.mydomain.com. IN A XXX.XXX.XXX.XXX
mail.mydomain.com. IN A XXX.XXX.XXX.XXX
mydomain.com. IN MX 5 mail.mydomain.com.
mydomain.com. IN TXT "v=spf1 a mx a:mydomain.com ip4:XXX.XXX.XXX.XXX ?all"
mydomain.com. IN NS ns19.domaincontrol.com. ;NS1
mydomain.com. IN NS ns20.domaincontrol.com. ;NS2
NS1.mydomain.com. IN A XXX.XXX.XXX.XXX ;NS1
NS2.mydomain.com. IN A XXX.XXX.XXX.XXX ;NS2
I get this error running Check Connectivity:
Testing external connectivity …
… the following problems were found :
Problem type Error message Possible solution
Nameserver mismatch None of the nameservers match this system : ns20.domaincontrol.com. ns19.domaincontrol.com. Verify with your DNS registrar that nameservers for the domain are set correctly.
Email client is set to no encryption on port 25; and I know the user name and password is right.
Email error:
Feb 28 14:50:34 vps-XXXXXXX postfix/smtpd[13668]: connect from unknown[XXX.XXX.XXX.XXX]
Feb 28 14:50:36 vps-XXXXXXX postfix/smtpd[13668]: warning: SASL authentication failure: Password verification failed
Feb 28 14:50:36 vps-XXXXXXX postfix/smtpd[13668]: warning: unknown[XXX.XXX.XXX.XXX]: SASL PLAIN authentication failed: authentication failure
Do I need to set Master DNS server hostname?
if so, what do I set it to?
Is there any step by step instructions on how to set this up?
Thanks