E
E
Ekstazi2013-07-23 22:49:09
linux
Ekstazi, 2013-07-23 22:49:09

Ubuntu 13.04 and local dns?

Hello everyone, I configured bind9 locally to delegate the .local zone without forwarding to external dns. Added to /etc/conf/resolvconf/tail nameserver 127.0.0.1and updated resolv.conf with resolvconf -u. However, when trying to access any domain in this zone, the host not found error pops up. As I understand it, the problem is that when resolving an ip address by domain name, a multicast request is sent to all dns servers in resolv.conf, and if one of them answers that the host was not found, then a response from other servers is not expected. Tried to change this behavior via /etc/nsswitch.conf, but that didn't help either. How can I make ubuntu resolve first on local dns and then on external one? bind is configured correctly, since both dig and nslookup will resolve ip addresses (only if you hard-code them which dns server to use).

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
avalak, 2013-07-23
@Ekstazi

Everything is much easier. In ubuntu, the box comes with dnsmasq.
Create a /etc/NetworkManager/dnsmasq.d/file here ( ) with the following content:

address=/local/127.0.0.1

Restart network manager and that's it.

V
Vlad, 2013-07-24
@DaFive

Look at the link: tyts .
The truth is there for Debian, but the meaning is the same. Yesterday we successfully raised it.

E
Ekstazi, 2013-08-04
@Ekstazi

I did it through dnsmasq, but I still had to change nsswitch. Now the local zone works, but for a long time, since it intersects with avahi. The problem with avahi is in the process of being resolved. I think to change its default zone, but a question arose. If another computer chose an address in the local zone, and mine in lo. Will that one be visible from mine, but, in the local zone?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question