[avahi] No Search list for host-name lookup in resolv.conf
written from avahi-dnsconfd
Claus Klein
claus.klein at arcormail.de
Sun Apr 2 06:23:21 PDT 2006
On Sunday 02 April 2006 15:00, Lennart Poettering wrote:
> On Sat, 01.04.06 16:10, Claus Klein (claus.klein at arcormail.de) wrote:
>
> >
> > # my resolv.conf looks like that:
> > P3linux:/usr/local/etc # cat /etc/resolv.conf
> > nameserver 192.168.1.2
> > nameserver 192.168.1.1
> > nameserver 192.168.1.2
> > nameserver 192.168.1.1
> > P3linux:/usr/local/etc #
> >
> > My first question is : Why is there no search enttry?
>
> Because avahi-dnsconfd doesn't know which domain to use as search
> domain. And until recently nss-mdns didn't support search domains.
>
> > Second why are there double entries, my name server is only
> > available over one interface?
>
> Avahi detected two interfaces and reports the entry for each of
> them. I guess we could add some code here to filter duplicates from
> the DNS server list, though.
>
> I created a ticket for this:
>
> http://avahi.org/ticket/27
>
> > Perhaps, should there be too a damain name entry?
>
> Hmm. Which MDNS entry would you want to use for this?
What is about my configuration in avahi-daemon.conf:
####
domain-name=local
browse-domains=clausklein.homelinux.net
####
I expected to find my old search list in /etc/resolv.conf or the configured domain name.
At the moment, my solution is to use the domainname I get with `hostname -d`
because `dnsdomainname` is not available in the busybox.
--- avahi-dnsconfd.action 2006-04-02 14:25:10.000000000 +0200
+++ /tools/build_i386/avahi-0.6.9/avahi-dnsconfd/avahi-dnsconfd.action 2005-09-25 22:34:48.000000000 +0200
@@ -66,14 +55,8 @@
else
test -f /etc/resolv.conf.avahi || mv /etc/resolv.conf /etc/resolv.conf.avahi
- DNSDOMAINNAME=`hostname -d`
- if [ -n "$DNSDOMAINNAME" ] ; then
- echo search $DNSDOMAINNAME > /etc/resolv.conf
- else
- > /etc/resolv.conf
- fi
for n in $AVAHI_DNS_SERVERS ; do
echo "nameserver $n"
- done | sort -u >> /etc/resolv.conf
+ done > /etc/resolv.conf
fi
fi
claus
>
> Lennart
>
More information about the avahi
mailing list