[Ovirt-devel] [PATCH] Clean dig return (excess dot)

Arthur Clément aclement at linagora.com
Tue Aug 24 18:11:25 UTC 2010


We removed this dot because we found it in the collectd.conf (network plugin 
did not like him).
We applied this patch one month ago and it looks fine.

Maybe it's better to remove the dot when the collectd.conf is generated. 

On mardi 24 août 2010 18:18:30 Alan Pevec wrote:
> > -        dnsreply=$(dig +short -t srv _$1._$2.$d)
> > +        dnsreply=$(dig +short -t srv _$1._$2.$d | sed s/.$// )
> 
> if you want to remove dot only then
> +        dnsreply=$(dig +short -t srv _$1._$2.$d | sed 's/\.$//' )
> 
> But why is that trailing dot a problem? It's legal in DNS.




More information about the ovirt-devel mailing list