hyperd icon indicating copy to clipboard operation
hyperd copied to clipboard

How to specify a dns when running a new pod?

Open xuchenhao001 opened this issue 7 years ago • 2 comments

When I run hyperctl run, If there is a way to specify a new dns for vm instead of default host dns?

xuchenhao001 avatar Feb 02 '18 08:02 xuchenhao001

when you run it with a pod file, you could specify the dns field in the pod spec, and it is a slice of string ([]string), you may specify a list of nameservers

gnawux avatar Feb 02 '18 08:02 gnawux

So can I specify my pod's dns like hyperctl run --dns=10.96.0.10 -t ubuntu:16.04?

xuchenhao001 avatar Feb 02 '18 09:02 xuchenhao001