Help - Plz, Guide me in to my first BIND Configuration

My Aim is to get ns1 and with BIND Configuration

I registered with, My purpose to get and with this domain.

I Create a droplet on DO and Get IP

Then I setup Virtualmin with refer to :

before installation, i check the hostname with ‘hostname -f’ and the result is

After installation finish, i enter in to virtualmin with

After login, i get into “Post-Installation Wizard”, Thing that I not sure for this is “Primary Nameserver” the default is ‘’ but my friend put

For right now i left it default, can you guys, confirm which one that I need to put in? OR ? (Pic :


With the issues you described in your previous post, you may just need to verify a few BIND settings.

Let’s start here – what IP’s is BIND listening on? You can determine that by running this command:

netstat -an | grep :53

Hi Eric,
I just Asked Support Of DO

he said, i will NOT get and without running TWO VPS (Droplet).

I dont want to running two Droplets for these case.

i just get into VPS after many years with shared hosting, and i see others people have ns1 and, i think it will be cool if i can have it.

Is this true? i need two VPS for get ns1 and
that’s weird because my friend dont tell me about this before.


You don’t need two servers – many folks run DNS on just one system. The ns1 and ns2 names can both point to the same IP address. Or two different IP address on the same server.

That’s not as redundant as two different servers, but for many use cases that’s no problem.


Hi Eric

After DO Support tell me about that, i destroyed all my droplet

but when i read your comment, i rebuilt it again.

here is show up after i do netstat -an | grep :53

tcp 0 0* LISTEN tcp 0 0* LISTEN tcp6 0 0 :::53 :::* LISTEN udp 0 0* udp 0 0* udp6 0 0 :::53 :::* But i dont know what it mean


Yup, that’s looking good! That means BIND is listening on your local IP, and your public one.

The next thing to check is to see if a firewall is blocking traffic… what is the output of this command:

iptables -L -n

Also, I wanted to verify – is your domain “” setup as a Virtual Server on this system currently? And is the “BIND DNS Domain” feature enabled in Edit Virtual Server -> Enabled Features?



As an expert in the DO world, I’d be happy to offer you personal remote assistance if you’d like.

Drop me a line if you’d like to proceed.

Happy holidays!

Best Regards, Peter Knowles TPN Solutions

Phone: 604-782-9342
Skype: tpnsupport

Here is the result from iptables -L -n

Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT udp -- udp dpt:53 ACCEPT tcp -- tcp dpt:20000 ACCEPT tcp -- tcp dpt:10000 ACCEPT tcp -- tcp dpt:443 ACCEPT tcp -- tcp dpt:80 ACCEPT tcp -- tcp dpt:993 ACCEPT tcp -- tcp dpt:143 ACCEPT tcp -- tcp dpt:995 ACCEPT tcp -- tcp dpt:110 ACCEPT tcp -- tcp dpt:20 ACCEPT tcp -- tcp dpt:21 ACCEPT tcp -- tcp dpt:53 ACCEPT tcp -- tcp dpt:587 ACCEPT tcp -- tcp dpt:25 ACCEPT tcp -- tcp dpt:22

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Sorry I don’t really understand about “domain “” setup as a Virtual Server”
I provide domain “” is only for ns1. and and Address to Virtualmin Panel.

When I was used Sharehosting, I just put ns1 and ns2 in registrar and then add domain in cpanel. But for this case, I get confused, which one I need to put in?, ns1 and OR ns1 and

I don’t do anything yet for domain and “BIND DNS Domain” Configuration.

But I give a bit try now,

For domain I go to registrar ( and put ns1 and

For Enable “BIND DNS Domain”

  1. I go to Virtualmin => Create Virtual Server and put on Domain Name (Detail Setting pic :
  2. Goto Virtualmin => Edit Virtual Server -> Enabled Features , and I see it already have checked mark (Pic :