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

Alan Pevec apevec at gmail.com
Tue Aug 24 16:18:30 UTC 2010


> -        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