Skip to content

Commit ab02cf7

Browse files
Lucasgranetyadvr
authored andcommitted
router: adding "data-server" dns entry in /etc/hosts (#4319)
The DNS entry "data-server" was not added in /etc/hosts. Since the VR is now considered as a "dhcpsrvr" (?), we need to apply this commit to add this DNS entry. /etc/hosts is fully rewritten by this script. Fixes: #4308 (cherry picked from commit dc65f31) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 5c29d5b commit ab02cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemvm/debian/opt/cloud/bin/cs/CsDhcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def preseed(self):
158158
self.add_host("::1", "localhost ip6-localhost ip6-loopback")
159159
self.add_host("ff02::1", "ip6-allnodes")
160160
self.add_host("ff02::2", "ip6-allrouters")
161-
if self.config.is_router():
161+
if self.config.is_router() or self.config.is_dhcp():
162162
self.add_host(self.config.address().get_guest_ip(), "%s data-server" % CsHelper.get_hostname())
163163

164164
def write_hosts(self):

0 commit comments

Comments
 (0)