<div dir="ltr">Thanks, <span style="font-size:12.8px">dnsmasq </span>this sound very cool and just the ticket. <div><br></div><div>The main thing I am trying to do is have <a href="http://prsc.noip.me">prsc.noip.me</a> resolve to 192.168.0.50, not the DyDns IP (which is then send to the router and forwarded to 192.168.0.50). </div><div><br></div><div>Sounds like I just setup <span style="font-size:12.8px">dnsmasq and put </span></div><div><span style="font-size:12.8px"><br></span></div><div>192.168.0.50 <a href="http://prsc.noip.me">prsc.noip.me</a><span style="font-size:12.8px"><br></span></div><div><br></div><div>in /etc/hosts on the server and that is it?</div><div><br></div><div>I also liked the fact that bind allowed me to give machines on the local computers and they would resolve through my local DNS. So I guess i also just put them in the hosts file.</div><div><br></div><div>In terns of DHCP is there any benefit of moving it from the ASUS router to the Pi? I really like the web interface on the router and dont want to loose this.</div><div><br></div><div>Currently I was setting up BIND on a Rasbery Pi. Could I set up <span style="font-size:12.8px">dnsmasq on the same server as owncloud? or more to the point is this a good idea. I I like the idea of setting up the local DNS on a Pi 2 as they are simple and stable without any moving parts. Not having to worry about the DNS server going titsup seems an excellent idea. It is servicing around 20 computers and possible 50 mobile phones/tablets (when we have events). Anyway out DHCP range is 75-253 so its less than 200 devices, so I guess the Pi can take this in its stride. I will be monitoring it with Zabbix anyway so will see if it gets overloaded. OK, ive convinced myself, the Pi is it for DNS:)</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks for your help.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Ben</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 15 July 2016 at 04:29, 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">dnsmasq is more than a simple cache... it's a 'do the right thing for<br>
a small home environment thing'. For example, to advertise local<br>
services, just put them in /etc/hosts, and dnsmasq picks them up. As<br>
another example, as soon as you are finished setting up bind, you will<br>
realize that it doesn't do dhcp, and you'll want to setup the isc-dhcp<br>
server that matches. dnsmasq does dhcp as well, kind of for free.<br>
<br>
I don't get what problem you are solving, so it's hard to help.<br>
<br>
<br>
If you really want to use bind9 and isc-dhcp-server and you want a<br>
simple way to do it, I wrote this to make it less monotonous:<br>
<br>
<a href="https://github.com/petersilva/si46ib9d" rel="noreferrer" target="_blank">https://github.com/petersilva/si46ib9d</a><br>
<br>
It does both bind and dhcp server configs for IPv4 and IPv6 for a<br>
typical home setup (with split-horizon.) just did it to automate my<br>
maintenance at home, as normally you have to enter hostnames and<br>
addresses three or four times for the ISC tools.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On Thu, Jul 14, 2016 at 7:12 PM, Ben Edwards <<a href="mailto:list4me2@gmail.com">list4me2@gmail.com</a>> wrote:<br>
> Ok, thanks for relying.<br>
><br>
> I don't think its the DNS lookup that is sowing things down, I think it is<br>
> the fact that all the traffic is routed through the net rather than locally<br>
> that is causing the problem. So a simple DNS cache is not going to solve<br>
> the problem.<br>
><br>
> I have actually set up a DNS server (bind) and got it working, that was<br>
> fun;)....well almost;(.<br>
><br>
> I have the basic thing working, just cant do the funky stuff to get<br>
> <a href="http://prsc.noip.me" rel="noreferrer" target="_blank">prsc.noip.me</a> to resolve to the local server rather than the DyDNS service.<br>
><br>
> The zone (<a href="http://db.prsc.noip.me" rel="noreferrer" target="_blank">db.prsc.noip.me</a>) I am trying to do it with looks like this.<br>
><br>
> $TTL 604800<br>
> @ IN SOA pluto.prsc.localhost. pi.localhost. (<br>
> 2 ; Serial<br>
> 604800 ; Refresh<br>
> 86400 ; Retry<br>
> 2419200 ; Expire<br>
> 604800 ) ; Negative Cache TTL<br>
> ;<br>
> @ IN NS pluto.prsc.localhost.<br>
> @ IN A 127.0.0.1<br>
> @ IN AAAA ::1<br>
><br>
> ; Beow are the A record addresses<br>
><br>
> prsc IN A 192.168.0.50<br>
><br>
> ; Below are the CNAME record addresses (aliuses) - point ot the A records<br>
><br>
> oCserver IN CNAME <a href="http://prsc.noip.me" rel="noreferrer" target="_blank">prsc.noip.me</a>.<br>
><br>
> But I get an unknown host error when I try to ping <a href="http://prsc.noip.me" rel="noreferrer" target="_blank">prsc.noip.me</a>.<br>
><br>
> Ben<br>
><br>
><br>
> On 14 July 2016 at 13:10, Peter Silva <<a href="mailto:peter@bsqt.homeip.net">peter@bsqt.homeip.net</a>> wrote:<br>
>><br>
>> 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>
>><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<br>
>> > 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<br>
>> >> local<br>
>> >> IP address of the owncloud server (for a cople of reasons but mainly so<br>
>> >> I<br>
>> >> can set it up on laptops which may be outside the local network).<br>
>> >> Problem<br>
>> >> is if I do this the performance is very bad as it goes throuht the<br>
>> >> internet.<br>
>> >> A bit of digging reviles the way to do this is to setup a DNS server<br>
>> >> and<br>
>> >> forward all requests to the upstream server (probably going to have to<br>
>> >> use<br>
>> >> the google public ones) unless it is the domain of our owncloud server,<br>
>> >> 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<br>
>> > twitter:@funkytwig<br>
>> > iContact Community Video | Bristol Community Channel<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:<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:<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>
><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>
> --<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>
</div></div></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>