Using DNS server to stop local domains going through internet

Ben Edwards list4me2 at gmail.com
Thu Jul 14 23:12:20 UTC 2016


Ok, thanks for relying.

I don't think its the DNS lookup that is sowing things down, I think it is
the fact that all the traffic is routed through the net rather than locally
that is causing the problem.  So a simple DNS cache is not going to solve
the problem.

I have actually set up a DNS server (bind) and got it working, that was
fun;)....well almost;(.

I have the basic thing working, just cant do the funky stuff to get
prsc.noip.me to resolve to the local server rather than the DyDNS service.

The zone (db.prsc.noip.me) I am trying to do it with looks like this.

$TTL            604800
@               IN      SOA     pluto.prsc.localhost. pi.localhost. (
                                      2         ; Serial
                                 604800         ; Refresh
                                  86400         ; Retry
                                2419200         ; Expire
                                 604800 )       ; Negative Cache TTL
;
@               IN      NS      pluto.prsc.localhost.
@               IN      A       127.0.0.1
@               IN      AAAA    ::1

; Beow are the A record addresses

prsc                    IN      A       192.168.0.50

; Below are the CNAME record addresses (aliuses) - point ot the A records

oCserver        IN      CNAME   prsc.noip.me.

But I get an unknown host error when I try to ping prsc.noip.me.

Ben


On 14 July 2016 at 13:10, Peter Silva <peter at bsqt.homeip.net> wrote:

> dnsbind is probably more what you want for this.
>
> https://help.ubuntu.com/community/Dnsmasq
>
> bind9 is a real pain to set up properly... if you have a need to run a
> full DNS server and, say advertise maps to servers in the cloud, or
> you just want to know how to do it, all fine.  If you just want your
> DNS to be fast and local, dnsmasq is a lot easier to setup, and does
> the job with less work.
>
>
> On Wed, Jul 13, 2016 at 7:55 PM, Ben Edwards <list4me2 at gmail.com> wrote:
> > Cople of things I forgot to mention. Firstly the DNS is the same server
> as
> > owncloud.  also is there anything else I need to setup in bind9?
> >
> > On 14 July 2016 at 00:37, Ben Edwards <list4me2 at gmail.com> wrote:
> >>
> >> Hi, first thing I should say is I have never setup a DNS and am quite
> >> nervous about breaking our network;).
> >>
> >> So, we use owncloud and I want to use a DYDNS domain rather than the
> local
> >> IP address of the owncloud server (for a cople of reasons but mainly so
> I
> >> can set it up on laptops which may be outside the local network).
> Problem
> >> is if I do this the performance is very bad as it goes throuht the
> internet.
> >> A bit of digging reviles the way to do this is to setup a DNS server and
> >> forward all requests to the upstream server (probably going to have to
> use
> >> the google public ones) unless it is the domain of our owncloud server,
> in
> >> which case we resolve the domain as the owncloud servers local IP.  Or
> >> that's what I think I need to do.
> >>
> >> I am using Ubuntu 15.10.
> >>
> >> I think I need to install bind9 (apt-install bind9 dnsutils).
> >>
> >> in /etc/bind/named.conf.options add
> >>
> >> forwarders {
> >>   8.8.8.8;
> >>   8.8.4.4;
> >> };
> >>
> >> Then to bind prsc.noip.me to 192.168.42.10 (the owncloud server do I
> >> simply put
> >>
> >> 192.168.42.10           prsc.noip.me
> >>
> >> In /etc/hostname
> >>
> >> Well thats my guess, or how do I do it?
> >>
> >> Ben
> >> --
> >> Ben Edwards, Video Editor and Cameraman
> >> web:www.nkytwig.com mobile:07773 02 44 82 skype:funkytwig
> >> twitter:@funkytwig
> >> iContact Community Video | Bristol Community Channel
> >
> >
> >
> >
> > --
> > Ben Edwards, Video Editor and Cameraman
> > web:www.nkytwig.com mobile:07773 02 44 82 skype:funkytwig
> twitter:@funkytwig
> > iContact Community Video | Bristol Community Channel
> >
> > --
> > ubuntu-users mailing list
> > ubuntu-users at lists.ubuntu.com
> > Modify settings or unsubscribe at:
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> >
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>



-- 
*Ben Edwards, Video Editor and Cameraman*
*web*:*www.nkytwig.com* <http://funkytwig.com/>* mobile:**07773 02 44 82*
*skype**:**funkytwig** twitter:**@funkytwig*
<https://twitter.com/funkytwig>iContact Community Video
<http://www.icontactvideo.org/> | Bristol Community Channel
<http://bristol.mirocommunity.org/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20160715/399476ad/attachment.html>


More information about the ubuntu-users mailing list