mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
systemvm: Fix hostname is localhost in some VRs (#3422)
In some virtual routers, 'hostname -f' returns 'localhost'. The hostname is also 'localhost' in `/var/log/messages`. This change can fix the issue in new VRs.
This commit is contained in:
parent
6f1fc18332
commit
e76266e39b
@ -139,7 +139,8 @@ class CsDhcp(CsDataBag):
|
||||
logging.error("Caught error while trying to delete entries from dnsmasq.leases file: %s" % e)
|
||||
|
||||
def preseed(self):
|
||||
self.add_host("127.0.0.1", "localhost %s" % CsHelper.get_hostname())
|
||||
self.add_host("127.0.0.1", "localhost")
|
||||
self.add_host("127.0.1.1", "%s" % CsHelper.get_hostname())
|
||||
self.add_host("::1", "localhost ip6-localhost ip6-loopback")
|
||||
self.add_host("ff02::1", "ip6-allnodes")
|
||||
self.add_host("ff02::2", "ip6-allrouters")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user