Hi,
for RHEL we set the dns-domain of systems using --hostname=host.domain.tld and are done. Searchdomains and nameservers are also handled by the cobbler- provided snippets just fine.
For SLES the autoyast.xml file expects a value for the hostname _without_domain_ and the domain in a separate field / separate xml-tags.
Ultimate goal is ofcourse to use the --hostname syntax for both, but this would require me to separate hostname and domainname for filling it into the autoyast.xml file. Didnt get this done, only seen string.replace which works fine to strip off/replace known strings, but not to strip off the while domain.
For now we do this for SLES: --hostname=host and --ksmeta= 'dnsdomain=my.domain.tld' and fill this into the autoyast.xml.
Someone having a nicer idea? I.e. using shellcode (so 'sed' here) in the snippets that is used when generating the kickstartfile for the system would help. There is some regex-replace in cheetah, needs 'import re', but i failed getting this to run.
Christian