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

8 posts / 0 new
Last post
#1 Sat, 12/20/2014 - 12:58
esi0411

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

My Aim is to get ns1 and ns2.mydomain.com with BIND Configuration

I registered ontv24.biz with whois.com, My purpose to get ns1.ontv24.biz and ns2.ontv24.biz with this domain.

I Create a droplet on DO and Get IP 104.236.102.196

Then I setup Virtualmin with refer to : http://www.digitalocean.com/community/tutorials/how-to-install-and-utili...

before installation, i check the hostname with 'hostname -f' and the result is ontv24.biz

After installation finish, i enter in to virtualmin with https://104.236.102.196:10000

After login, i get into "Post-Installation Wizard", Thing that I not sure for this is "Primary Nameserver" the default is 'ontv24.biz' but my friend put ns1.ontv24.biz

For right now i left it default, can you guys, confirm which one that I need to put in? ontv24.biz OR ns1.ontv24.biz ? (Pic : http://prntscr.com/5j0y9m)

Mon, 12/22/2014 - 22:02
andreychek

Howdy,

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

Mon, 12/22/2014 - 22:45
esi0411

Hi Eric, I just Asked Support Of DO

he said, i will NOT get ns1.mydomain.com and ns2.my domain.com 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 ns2.mydomain.com, i think it will be cool if i can have it.

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

Tue, 12/23/2014 - 10:45
andreychek

Howdy,

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.

-Eric

Wed, 12/24/2014 - 02:47
esi0411

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 104.236.102.196:53   0.0.0.0:*       LISTEN
tcp 0   0 127.0.0.1:53         0.0.0.0:*       LISTEN
tcp6   0     0 :::53              :::*            LISTEN
udp 0   0 104.236.102.196:53    0.0.0.0:*       
udp 0   0 127.0.0.1:53          0.0.0.0:*       
udp6    0   0 :::53                 :::*

But i dont know what it mean

Wed, 12/24/2014 - 10:16
andreychek

Howdy,

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 "ontv24.biz" setup as a Virtual Server on this system currently? And is the "BIND DNS Domain" feature enabled in Edit Virtual Server -> Enabled Features?

-Eric

Wed, 12/24/2014 - 11:30
tpnsolutions
tpnsolutions's picture

Hi,

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

Email: pknowles@tpnsolutions.com
Phone: 604-782-9342
Skype: tpnsupport
Website: http://www.tpnsolutions.com
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Wed, 12/24/2014 - 14:44
esi0411

Here is the result from iptables -L -n

Chain INPUT (policy ACCEPT)
target  prot    opt     source      destination
ACCEPT  udp     --      0.0.0.0/0   0.0.0.0/0       udp dpt:53
ACCEPT  tcp    --      0.0.0.0/0   0.0.0.0/0       tcp dpt:20000        
ACCEPT  tcp     --      0.0.0.0/0   0.0.0.0/0       tcp dpt:10000   
ACCEPT  tcp     --      0.0.0.0/0   0.0.0.0/0       tcp dpt:443 
ACCEPT  tcp     --      0.0.0.0/0   0.0.0.0/0       tcp dpt:80  
ACCEPT  tcp     --      0.0.0.0/0   0.0.0.0/0       tcp dpt:993 
ACCEPT  tcp     --      0.0.0.0/0   0.0.0.0/0       tcp dpt:143 
ACCEPT  tcp     --      0.0.0.0/0   0.0.0.0/0       tcp dpt:995 
ACCEPT  tcp     --      0.0.0.0/0   0.0.0.0/0       tcp dpt:110 
ACCEPT  tcp     --      0.0.0.0/0   0.0.0.0/0       tcp dpt:20  
ACCEPT  tcp     --      0.0.0.0/0   0.0.0.0/0       tcp dpt:21
ACCEPT tcp    --      0.0.0.0/0   0.0.0.0/0       tcp dpt:53    
ACCEPT  tcp     --      0.0.0.0/0   0.0.0.0/0       tcp dpt:587 
ACCEPT  tcp     --      0.0.0.0/0   0.0.0.0/0       tcp dpt:25  
ACCEPT  tcp     --      0.0.0.0/0   0.0.0.0/0       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 "ontv24.biz" setup as a Virtual Server" I provide domain "ontv24.biz" is only for ns1. ontv24.biz and ns2.ontv24.biz 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 ns2.digitalocean.com OR ns1 and ns2.ontv24.biz?

I don't do anything yet for domain ontv24.biz and "BIND DNS Domain" Configuration.

But I give a bit try now,

For domain ontv24.biz: I go to registrar (whois.com) and put ns1 and ns2.digitalocean.com

For Enable "BIND DNS Domain"

  1. I go to Virtualmin => Create Virtual Server and put ontv24.biz on Domain Name (Detail Setting pic : http://prntscr.com/5kl1bf)
  2. Goto Virtualmin => Edit Virtual Server -> Enabled Features , and I see it already have checked mark (Pic : http://prntscr.com/5kl301)
Topic locked