Skip to content

Commit ca4669c

Browse files
authored
systemvm: Add localized "data-server" records in /etc/hosts for VPC routers (#4873)
1 parent 95cd937 commit ca4669c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

systemvm/debian/etc/vpcdnsmasq.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,3 +462,4 @@ log-facility=/var/log/dnsmasq.log
462462
conf-dir=/etc/dnsmasq.d
463463

464464
dhcp-optsfile=/etc/dhcpopts.txt
465+
localise-queries

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ def configure_server(self):
127127
listen_address.append(gateway)
128128
else:
129129
listen_address.append(ip)
130+
# Add localized "data-server" records in /etc/hosts for VPC routers
131+
if self.config.is_vpc():
132+
self.add_host(gateway, "%s data-server" % CsHelper.get_hostname())
130133
idx += 1
131134

132135
# Listen Address

0 commit comments

Comments
 (0)