mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-08 08:08:35 +03:00
b3901ab42f
git-subtree-dir: pkg/arvo git-subtree-mainline:9c8f40bf6c
git-subtree-split:c20e2a185f
27 lines
684 B
Plaintext
27 lines
684 B
Plaintext
:: DNS: configure automatically
|
|
::
|
|
:::: /hoon/auto/dns/gen
|
|
::
|
|
/- *sole
|
|
/+ *generators
|
|
:- %ask
|
|
|= [[now=@da eny=@uvJ bec=beak] ~ ~]
|
|
^- (sole-result [%dns-auto ~])
|
|
=* our p.bec
|
|
=/ rac (clan:title our)
|
|
::
|
|
?: ?=(?(%earl %pawn) rac)
|
|
=/ msg1 "domain names are not provided for comets and moons"
|
|
=/ msg2 "see XX for BYOD"
|
|
%+ print leaf+msg2
|
|
(print leaf+msg1 no-product)
|
|
::
|
|
?. ?=(%czar rac)
|
|
=/ msg1 ":dns|auto is only supported for galaxies"
|
|
=/ msg2 "use :dns|request with your ship's public IP address"
|
|
=/ msg3 "see XX for more details, or to BYOD"
|
|
%+ print leaf+msg3
|
|
%+ print leaf+msg2
|
|
(print leaf+msg1 no-product)
|
|
(produce [%dns-auto ~])
|