≡ Menu

How do I use my Bind name server with my domain name?

Question – I have a few domain names registered with GoDaddy and eNom. I want to use my own name server running Bind for these domain names. How do I let my registrar know that I want to use my own name servers running Bind?

To setup your own name server, you need to register your name server with your domain name registrar. Otherwise, the registrar will now allow you to change your name server for your domain names.

First, test whether your name server is working and configured fine:

dig @nameserverIPAddress yourdomain.com A

For example, my name server IP address is 199.223.208.245. I will try to query this name server for the domain name ewhathow.com:

ewhathow@ewhathow.com [~]# dig @199.223.208.245 ewhathow.com A

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.6 <<>> @199.223.208.245 ewhathow.com A
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56995
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;ewhathow.com.                  IN      A

;; ANSWER SECTION:
ewhathow.com.           14400   IN      A       199.223.208.245

;; AUTHORITY SECTION:
ewhathow.com.           86400   IN      NS      ns2.solvedns.com.
ewhathow.com.           86400   IN      NS      ns1.solvedns.com.

;; ADDITIONAL SECTION:
ns1.solvedns.com.       14400   IN      A       199.223.208.245
ns2.solvedns.com.       14400   IN      A       199.223.208.246

;; Query time: 0 msec
;; SERVER: 199.223.208.245#53(199.223.208.245)
;; WHEN: Sun Sep 22 04:51:17 2013
;; MSG SIZE  rcvd: 123

ewhathow@ewhathow.com [~]#

So I got an answer! This means that your zones are setup correctly on your Bind configuration files.

Now you need to register your name server. Different registrars have different methods of doing this. But if your name server is ns1.yourdomain.com, you need to register your name server where you registered yourdomain.com.

Comments on this entry are closed.