I recently built a dedicated server with Ubuntu 16.04 and the only thing left to do is set the DNS/Nameservers on it to start hosting other domains on it.
I'm getting really confused about what to do here.
------------ What I've Done So far
I created an account with EasyDNS to use as my host DNS. I added an A record in this account to point to my server.
I added dns-nameservers 111.222.333.444
to the /etc/network/interfaces
file. I noticed my interface has this line: iface p6p1 inet static
and not the eth0
I see on other articles.
I added to the /etc/resolv.conf/head
the 3 nameservers that were assigned to me through EasyDNS, after rebooting the server, these name servers showed in /etc/resolv.conf
.
Added server
to /etc/hostname
Altered the line in etc/hosts
to 111.222.333.444 server.easydnsdomain.com server
I even installed and ran ddclient, even though I don't think thats needed since I have a static IP.
-------------Testing my domains
I tried adding some domains to see if it would work
I changed one domain's nameservers to my EasyDNS nameservers, when this didn't work I added in the EasyDNS records an A record from my domain to my servers IP
On a seperate domain I left nameservers as default, went to advanced DNS and added an A record pointint to my easyDNS nameservers IP. I also tried just adding an A record pointing to my server.
When I ping these domains I get unknown host example.com
. When I enter command host example.com
I get example.com not found: 5(REFUSED)
Any thoughts on what I missing or done wrong? Thanks for the help!
dnsutils
and then type in your terminalnslookup your.domain.com dns1.easydns.com
for example or more specific the one that you actually made the configurations onnslookup example.com
:;; Got recursion not available from 1.2.3.4, trying next server ;; Got recursion not available from 2.3.4.5, trying next server Server: 3.4.5.6 Address: 3.4.5.6#53
I also triednslookup google.com
and received the same results