Using DNS server to stop local domains going through internet

Peter Silva peter at bsqt.homeip.net
Thu Jul 14 12:10:13 UTC 2016


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
>




More information about the ubuntu-users mailing list