Skip to content

Commit d977e84

Browse files
committed
fix(ns-migration): create domains related to wildcards
1 parent 36c0cc8 commit d977e84

File tree

1 file changed

+5
-0
lines changed
  • packages/ns-migration/files/scripts

1 file changed

+5
-0
lines changed

packages/ns-migration/files/scripts/dns

+5
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ for address in data["addresses"]:
4444
aname = utils.get_id(address["name"])
4545
nsmigration.vprint(f'Creating wildcard record {aname}')
4646
addresses.append(f'/{address["name"]}/{address["ip"]}')
47+
dname = utils.get_random_id()
48+
u.set("dhcp", dname, "domain") # create named record
49+
for o in address:
50+
u.set("dhcp", dname, o, address[o])
51+
4752
u.set("dhcp", dnsmasq_section, "address", addresses)
4853

4954
# Save configuration

0 commit comments

Comments
 (0)