User Tools

Site Tools


os:linux:general:splitdns

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
os:linux:general:splitdns [2013/02/23 20:34] – [Configuring ub-split-map] jayos:linux:general:splitdns [2013/02/26 04:36] – [Configuring ub-split-map] jay
Line 42: Line 42:
  
 ===== Configuring ub-split-map ===== ===== Configuring ub-split-map =====
-This is going to take a little bit of "file finding" in order to get set up depending on how you installed ''ub-split-map'' and how your system is configured, etc., but it's not too difficult.  You should find ''ub-split-map.ini'' in an ''etc'' dir.  This might be ''/etc'', ''/usr/etc'' or ''/usr/local/etc'', but it's there.  Once you find that, move it to your ''/patch/to/etc/unbound'' For the purposes of this document, I'll assume your unbound config dir is ''/etc/unbound''.+This is going to take a little bit of "file finding" in order to get set up depending on how you installed ''ub-split-map'' and how your system is configured, etc., but it's not too difficult.  You should find ''ub-split-map.ini.default'' in an ''etc'' dir.  This might be ''/etc'', ''/usr/etc'' or ''/usr/local/etc'', but it's there.  Once you find that, move it to your ''/path/to/etc/unbound'' and rename it to ''ub-split-map.ini'' For the purposes of this document, I'll assume your unbound config dir is ''/etc/unbound''.
  
 +Opening up the file, you'll see a few sections.  There is more info in the default ini file, but I'm going to go over the simplest, default config here.
  
 +You should see a ''[maps]'' section in the file.  All you have to do is add your IP address maps here.  For this example, we'll say you have some static IPs and that 2 of them are ''55.55.55.54'' and ''55.55.55.55'' and these map to 2 different servers on your internal network at ''192.168.0.54'' and ''192.168.0.55'' respectively.  All you have to add to your config file under ''[maps]'' is the following:
  
 +<code>
 +55.55.55.54 = 192.168.0.54
 +55.55.55.55 = 192.168.0.55
 +</code>
 +
 +That's it, you're done configuring your ub-split-map.
 +
 +===== Configuring Unbound =====
 +I'm not going to go into a full unbound configuration here, but instead I'll give you something very basic to get you up and running.  There are a plethora of options for Unbound and I'd suggest reading through its docs for the full lowdown.
 +
 +What I'm going to cover is, obviously, wiring up ''ub-split-map'' and configuring an internal for any additional internal devices that don't map to the outside world.
 +
 +**IMPORTANT**:  Many installs of Unbound will set up a ''chroot'' environment by default.  This is by no means a bad idea, but I'm going to have you turn this **off** below as there are different challenges in running anything in a ''chroot'' that is beyond the scope of this document.
 +
 +==== Wiring Up ub-split-map =====
 +First, we'll add the couple of lines needed to get ''ub-split-map'' working.
os/linux/general/splitdns.txt · Last modified: 2013/10/12 19:37 by jay