<div dir="ltr">Ok, thanks for relying.<div><br></div><div>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.</div><div><br></div><div>I have actually set up a DNS server (bind) and got it working, that was fun;)....well almost;(.</div><div><br></div><div>I have the basic thing working, just cant do the funky stuff to get <a href="http://prsc.noip.me">prsc.noip.me</a> to resolve to the local server rather than the DyDNS service.</div><div><br></div><div>The zone (<a href="http://db.prsc.noip.me">db.prsc.noip.me</a>) I am trying to do it with looks like this.</div><div><br></div><div><pre><code>$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 <a href="http://prsc.noip.me">prsc.noip.me</a>.</code></pre></div><div>But I get an unknown host error when I try to ping <a href="http://prsc.noip.me">prsc.noip.me</a>.</div><div><br></div><div>Ben</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 July 2016 at 13:10, Peter Silva <span dir="ltr"><<a href="mailto:peter@bsqt.homeip.net" target="_blank">peter@bsqt.homeip.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">dnsbind is probably more what you want for this.<br>
<br>
<a href="https://help.ubuntu.com/community/Dnsmasq" rel="noreferrer" target="_blank">https://help.ubuntu.com/community/Dnsmasq</a><br>
<br>
bind9 is a real pain to set up properly... if you have a need to run a<br>
full DNS server and, say advertise maps to servers in the cloud, or<br>
you just want to know how to do it, all fine. If you just want your<br>
DNS to be fast and local, dnsmasq is a lot easier to setup, and does<br>
the job with less work.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Wed, Jul 13, 2016 at 7:55 PM, Ben Edwards <<a href="mailto:list4me2@gmail.com">list4me2@gmail.com</a>> wrote:<br>
> Cople of things I forgot to mention. Firstly the DNS is the same server as<br>
> owncloud. also is there anything else I need to setup in bind9?<br>
><br>
> On 14 July 2016 at 00:37, Ben Edwards <<a href="mailto:list4me2@gmail.com">list4me2@gmail.com</a>> wrote:<br>
>><br>
>> Hi, first thing I should say is I have never setup a DNS and am quite<br>
>> nervous about breaking our network;).<br>
>><br>
>> So, we use owncloud and I want to use a DYDNS domain rather than the local<br>
>> IP address of the owncloud server (for a cople of reasons but mainly so I<br>
>> can set it up on laptops which may be outside the local network). Problem<br>
>> is if I do this the performance is very bad as it goes throuht the internet.<br>
>> A bit of digging reviles the way to do this is to setup a DNS server and<br>
>> forward all requests to the upstream server (probably going to have to use<br>
>> the google public ones) unless it is the domain of our owncloud server, in<br>
>> which case we resolve the domain as the owncloud servers local IP. Or<br>
>> that's what I think I need to do.<br>
>><br>
>> I am using Ubuntu 15.10.<br>
>><br>
>> I think I need to install bind9 (apt-install bind9 dnsutils).<br>
>><br>
>> in /etc/bind/named.conf.options add<br>
>><br>
>> forwarders {<br>
>> 8.8.8.8;<br>
>> 8.8.4.4;<br>
>> };<br>
>><br>
>> Then to bind <a href="http://prsc.noip.me" rel="noreferrer" target="_blank">prsc.noip.me</a> to 192.168.42.10 (the owncloud server do I<br>
>> simply put<br>
>><br>
>> 192.168.42.10 <a href="http://prsc.noip.me" rel="noreferrer" target="_blank">prsc.noip.me</a><br>
>><br>
>> In /etc/hostname<br>
>><br>
>> Well thats my guess, or how do I do it?<br>
>><br>
>> Ben<br>
>> --<br>
>> Ben Edwards, Video Editor and Cameraman<br>
>> web:<a href="http://www.nkytwig.com" rel="noreferrer" target="_blank">www.nkytwig.com</a> mobile:07773 02 44 82 skype:funkytwig<br>
>> twitter:@funkytwig<br>
>> iContact Community Video | Bristol Community Channel<br>
><br>
><br>
><br>
><br>
> --<br>
> Ben Edwards, Video Editor and Cameraman<br>
> web:<a href="http://www.nkytwig.com" rel="noreferrer" target="_blank">www.nkytwig.com</a> mobile:07773 02 44 82 skype:funkytwig twitter:@funkytwig<br>
> iContact Community Video | Bristol Community Channel<br>
><br>
</div></div><span class="HOEnZb"><font color="#888888">> --<br>
> ubuntu-users mailing list<br>
> <a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
> Modify settings or unsubscribe at:<br>
> <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
><br>
<br>
--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><i style="color:rgb(0,0,0);font-family:arial;font-size:small">Ben Edwards, Video Editor and Cameraman</i><font color="#666666" style="font-family:arial;font-size:small;font-style:italic"><br></font><i style="color:rgb(0,0,0);font-family:arial;font-size:small">web</i><font color="#666666" style="font-family:arial;font-size:small;font-style:italic">:</font><a href="http://funkytwig.com/" style="font-family:arial;font-size:small" target="_blank"><font color="#000099"><b>www.nkytwig.com</b></font></a><i style="color:rgb(0,0,0);font-family:arial;font-size:small"> mobile:</i><font color="#000099" style="font-family:arial;font-size:small"><b>07773 02 44 82</b></font><span style="color:rgb(0,0,0);font-family:arial;font-size:small"> </span><i style="color:rgb(0,0,0);font-family:arial;font-size:small">skype</i><b style="color:rgb(0,0,0);font-family:arial;font-size:small;font-style:italic">:</b><a style="color:rgb(0,0,0);font-family:arial;font-size:small"><font color="#000099"><b>funkytwig</b></font></a><i style="color:rgb(0,0,0);font-family:arial;font-size:small"> twitter:</i><a href="https://twitter.com/funkytwig" style="font-family:arial;font-size:small" target="_blank"><font color="#000099"><b>@funkytwig</b></font><br></a><a href="http://www.icontactvideo.org/" style="font-family:arial;font-size:small" target="_blank"><font color="#000099">iContact Community Video</font></a><span style="color:rgb(0,0,0);font-family:arial;font-size:small"> | </span><a href="http://bristol.mirocommunity.org/" style="font-family:arial;font-size:small" target="_blank"><font color="#000099">Bristol Community Channel</font></a><br></div>
</div>