openbmc / phosphor-networkd

Apache License 2.0
18 stars 47 forks source link

No Docs for the configuration of DNS server in OpenBMC. #58

Open manojdesd opened 1 year ago

manojdesd commented 1 year ago

Is there any document to configure the DNS servers in openBMC? Directly from Webpage or REST API, we are unable to add the Nameserver at all. Is there any alternative in this setting? There is restriction to edit the NameServers directly from webpage? Is there is a specific reason.

It's not found in the phosphor-networkid/docs I have been trying to configure the DNS using the resolved.service but it shows error that eth interface is being managed. Please suggest your opinions. Thanks in advance.

Best Regards, Manoj

sunharis commented 1 year ago

Hi @manojdesd Now there is a redfish way to PATCH the StaticNameServers on each ethernet interfaces. Please check. The property NameServers is read-only and that is expected to list the current active name servers - including dynamically assigned DNS servers in the system.

Changes are made across dbus, networkd and bmcweb repos.

Please close this issue, if you see the latest changes are OK for your consumption. Since its redfish command, schema should help to cover the documentation part.