lazypower / DNS-Charm

DNS Charm
MIT License
7 stars 5 forks source link

Hostname parsing can fail on MAAS hosts #6

Closed lazypower closed 10 years ago

lazypower commented 10 years ago

The output of the hostname check + resulting dig +short command returns an inconsistent hostname on MAAS based hosts.

In [4]: subprocess.check_output(['dig', '+short', hostname.strip()]).strip()
Out[4]: '10-0-10-55.maas.\n10.0.10.55'

This will result in an unparse-able config by the named-checkzone utility, plus can cause unintended side effects in domain resolution by any host outside of the provider environment.