BIND - DNS server container


Gog

Recommended Posts

Turns out I needed a DNS server...

 

I installed the apache container for reverse proxy, SSL is setup and it does what I need.  At that point I had to use a different URL to access my things depending if I was inside or outside my network.  That's annoying.  I needed a DNS server to intercept requests to my domain.

 

Now I'm new to this so there might be a few stupid things in here but it works for me.

 

I used sameersbn's docker container, loaded through the Community Applications/app store, with a mashup of setup info from here: http://www.damagehead.com/blog/2015/04/28/deploying-a-dns-server-using-docker/ and here: http://mixeduperic.com/ubuntu/seven-easy-steps-to-setting-up-an-interal-dns-server-on-ubuntu.html

 

But that's not an unraid docker so I thought I'd document here what I did.

 

2Q2p4NNdM8Pq

 

There is a web admin page at https://tower:10000 that is a bit far from newby-friendly but the "edit config file" and "edit record file" buttons can save you from vi.  Every time you start the docker, it will change the permissions on these config files to restrict access so it's annoying to edit from another system.

 

modify the following config files to suit your needs:

 

Define your forwarding address in named.conf.options

Define your zone (domain) in named.conf.local

Configure your zone in db.mydomain.com

Configure reverse lookup in db.192

 

And restart the docker every time you change something.

 

 

 

Link to comment
  • 4 weeks later...

I'm no expert, but anyone after a template, create a file called my-BindDNS.xml in this SMB share

<unraid server>\flash\config\plugins\dockerMan\templates-user

 

I had to use host mode as port 53 UDP was used (I think by dnsmasq) on my unraid

 

Add this code to the my-BindDNS.xml file

 

then it should appear in your add container list. You will need to alter the path below to match your configuration

 

 

<?xml version="1.0" encoding="utf-8"?>
<Container>
  <Name>BindDNS</Name>
  <Description>Bind DNS to host a DNS in your network environment.[br][br]&#13;
Default root password for webmin is password&#13;
</Description>
  <Registry>https://registry.hub.docker.com/u/sameersbn/bind/</Registry>
  <Repository>sameersbn/bind</Repository>
  <BindTime>true</BindTime>
  <Privileged>false</Privileged>
  <Environment/>
  <Networking>
    <Mode>host</Mode>
    <Publish/>
  </Networking>
  <Data>
    <Volume>
      <HostDir>/mnt/user/Docker/BindDNS</HostDir>
      <ContainerDir>/data</ContainerDir>
      <Mode>rw</Mode>
    </Volume>
  </Data>
  <Version>1dc0cb06</Version>
  <WebUI>https://[iP]:[PORT:10000]/</WebUI>
  <Banner>http://blog.learningtree.com/wp-content/uploads/2015/10/dns_bind-190x190.png</Banner>
  <Icon>http://blog.learningtree.com/wp-content/uploads/2015/10/dns_bind-190x190.png</Icon>
  <ExtraParams></ExtraParams>
</Container>

 

Good Luck

  • Like 1
Link to comment

I'm no expert, but anyone after a template, create a file called my-BindDNS.xml in this SMB share

<unraid server>\flash\config\plugins\dockerMan\templates-user

 

I had to use host mode as port 53 UDP was used (I think by dnsmasq) on my unraid

 

Add this code to the my-BindDNS.xml file

 

then it should appear in your add container list. You will need to alter the path below to match your configuration

As an aside, if you've got CA installed you can alternatively put the template file into /flash/config/plugins/community.applications/private and CA will be able to manage it.  (With the template as shown, it will appear in the Uncategorized section)
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.