Sorry, I did some test with the configuration above but without rebooting. When I reboot "resolv.conf" becomes the original file without the domain name so I figure out that this file is generated later. So, the solution is putting de line
echo "domain yourDomainName" >> /etc/resolv.conf
in the file: /etc/network/if-up.d/avahi-daemon
I'll hope it would be useful.
Sorry, I did some test with the configuration above but without rebooting. When I reboot "resolv.conf" becomes the original file without the domain name so I figure out that this file is generated later.
So, the solution is putting de line
echo "domain yourDomainName" >> /etc/resolv.conf
in the file: /etc/network/ if-up.d/ avahi-daemon
I'll hope it would be useful.