My Ubuntu12 server VM is receiving its IP address from an DHCP server (actually my WLAN router called Fritz Box). Hence all domain names are resolved to machinename.fritz.box. The reason seems to be the resolv.conf file under /etc.
But how can I change this search name to an arbitrary name such as xyz.mydomain? It clearly says not to edit the file. The machine itself is set as ubuntu.xyz.mydomain in hostname. What I want is that machine1 is assumed to be machine1.xyz.mydomain and NOT(!) machine1.fritz.box.
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.0.1
search fritz.box # shall be xyz.mydomain