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.
The output of the hostname check + resulting dig +short command returns an inconsistent hostname on MAAS based hosts.
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.