All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Creating your own DNS Servers
Hey guys,
I'm trying to run my own nameservers off 2 different vps's. I was looking at PowerDNS to do this and i've followed the tutorials I've found online but I always get stuck at the last hurdle.
I can't seem to get the master / slave to achieve comms (i'm assuming there is an IPTABLES step that people are leaving out in their guides?).
I also can't seem to do a dig e.g. dig @localhost mydomain.com - it simply refers to Google's DNS and looks there (no matter how many times I edit resolv.conf and tell it not to check external DNS).
Any idea's / tips etc? I'm struggling a bit with something that in my mind should be a relatively easy install (apart from security and hardening etc).
I'm using Ubuntu LTS releases.
Thanks,
Comments
Make sure that you configure the master to allow transfers from the slave ip.
Port 53 on both TCP and UDP should be open.
With Ubuntu, I believe you have to edit /etc/network/interfaces because it will overwrite resolv.conf whenever the networking services is restarted.
Check for an entry in the file with "nameserver 8.8.8.8".
Solus has a nice tutorial which explains how to get the replication going between a PowerDNS master and slave - http://docs.solusvm.com/powerdns
Bump.
So I can get the servers up.
I've created an NS1 and an NS2 and records sync perfectly with MySQL as a backend.
HOWEVER
If I do dig @localhost mx mydomain.com
THEN
I don't get anything back - even if my record exists in the PowerDNS DB.
EG I have the following in my DB:
root@ns1:~# dig @localhost mx example.com
; <<>> DiG 9.8.1-P1 <<>> @localhost mx example.com
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 46552
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;example.com. IN MX
;; Query time: 17 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Mar 27 09:32:58 2014
;; MSG SIZE rcvd: 29
Sooo, what am I doing wrong?
Any help would be appreciated.
Thanks!
@jeromeza - stop pdns, go to /etc/powerdns/pdns.conf, change query-logging to yes, start pdns using "/etc/init.d/pdns monitor" and debug
@gbshouse - thanks, this is helping.
I now see:
I'm struggling to find where this column is in the DB and where this 'field list' is.
Any help would be appreciated, googling now.
Thanks,
MY PDNS VERSIONS (UBUNTU REPO'S - 12.04)
Check your schema against this article http://doc.powerdns.com/html/generic-mypgsql-backends.html#idp62468608
I suppose that you are missing this part
@gbshouse
Thanks. I moved over to the 3.3.1 .DEB file and installed that way. I then setup their schema as mentioned in the link.
I can now get it to serve data and query via dig @localhost
HOWEVER
How do I get the rest of the world to know that it should look at my PowerDNS install for queries? I registered my domain direct with the registrar so I can't log in to any panel and set URL records as I would at the likes of Namecheap or Godaddy etc.
Thanks,
Hi,
I register my domains direct with the registrar here:
http://co.za
I'm required to fill in this form and return it via email:
http://co.za/coza_reg.txt
I then need to set my nameservers and their ip's at the bottom of the registration.
However I'm confused as to how this works. Surely they won't see ns1.mydomain.co.za as its on my own nameserver and not theirs - how do I get them to see my records and accept my server as a valid NS for the domain?
IN PDNS I'VE GOT SOA AND NS RECORDS SET.
If I try set the records I created in PDNS I get the following:
Primary Server : ns1.mydomain.co.za @ ns1_IP
Secondary 1 : ns2.mydomain.co.za @ ns2_IP
Domain "mydomain.co.za", SOA Ref (), Orig ""
Pre-existing Nameservers for "mydomain.co.za":-
Syntax/Cross-Checking provided info for Nameserver at 6a: ns1.mydomain.co.za @ ns1_IP
IPv4: ns1_IP ==> host.colocrossing.com.
FQDN: ns1.mydomain.co.za ==>
ERROR: Checking field 6a and running a Reverse check. "ns1.mydomain.co.za" not found in "host.colocrossing.com."
! Whilst checking field 6a on the application form and whilst running a Reverse check...
! you specified that "ns1_IP" would map to "ns1.mydomain.co.za",
! but DNS returned "host.colocrossing.com."
you will need to supply the registrar with the server hostnames AND the ipv4 addresses of your servers. for completeness set up reverse dns (your vps host will do this for you) with the same hostname.
@seaeagle - so I simply approach my VPS host and ask for reverse DNS to be setup and then say:
ns1.mydomain.co.za = IP_1
ns2.mydomain.co.za = IP_2
Then on PDNS I have SOA and NS records.
mydomain.co.za NS ns1.mydomain.co.za
Do I need more than that - if so please elaborate as I've never done this before.
Thanks,
@seaeagle - Got it working! Registered my first domain!
happy daze...