[avahi] Patch: Make avahi-dnsconfd regard previous search domains in /ets/resolv.conf
Mattia Rossi
mrossi at swin.edu.au
Tue May 17 22:27:53 PDT 2011
Hi all,
I've seen a similar message from quite a few years ago (2006 actually),
where avahi-dnsconfd.action did not regard search domains in
/etc/resolv.conf.
This is still the case it seems.
The following patch solves the problem for me.. but don't know if it's
the best solution.
---------
--- avahi-dnsconfd.action.orig 2011-05-18 14:29:06.113745996 +1000
+++ avahi-dnsconfd.action 2011-05-18 14:33:28.443895979 +1000
@@ -63,6 +63,8 @@
for n in $AVAHI_INTERFACE_DNS_SERVERS ; do
echo "nameserver $n"
done | /sbin/resolvconf -a "$AVAHI_INTERFACE.avahi"
+ grep "^search" /etc/resolv.conf.avahi >> /etc/resolv.conf
+ grep "^domain" /etc/resolv.conf.avahi >> /etc/resolv.conf
fi
else
@@ -76,6 +78,8 @@
for n in $AVAHI_DNS_SERVERS ; do
echo "nameserver $n"
done > /etc/resolv.conf
+ grep "^search" /etc/resolv.conf.avahi >> /etc/resolv.conf
+ grep "^domain" /etc/resolv.conf.avahi >> /etc/resolv.conf
fi
fi
---------
Mat
More information about the avahi
mailing list