BrunoC92
Not applicable

Change iDrac DNS through redfish API

Hello,

We working to configure iDrac7/8/9 with good IP parameters, throught the RedFish standard.

For the moment, it's OK for IP/Subnet/Gateway, but i cant find a valid PATH to configure the DNS (primary & alternative)

There is a way to do this ?
It's possible through the GUI & the racadm client.
But not find anything in Idrac API guide (i'm in the last version for Idrac7/8 or 9.

Thanks for your help.

Labels (1)
0 Kudos
4 Replies
Moderator
Moderator

Re: Change iDrac DNS through redfish API

Hello

Check out the bottom of page 39 on this document. It has the DNS entry listed. There should also be a DNS2 attribute as well, but it is not listed on that page.

https://en.community.dell.com/techcenter/extras/m/white_papers/20443207/

Thanks

Daniel Mysinger
Dell EMC, Enterprise Engineer

0 Kudos
BrunoC92
Not applicable

Re: Change iDrac DNS through redfish API

Hello Daniel,

 

Thanks for the reply, but it doesnt work (in redfish mode at least).

I need to find a PATH to configure the DNS/Name servers on the iDrac himself.
For IP/Subnet/GW, i used actually this one :
'/redfish/v1/Managers/iDRAC.Embedded.1/EthernetInterfaces/iDRAC.Embedded.1%23NIC.1'

I need to find the same for DNS.
If you can help me.

Thanks !

0 Kudos
Highlighted
Moderator
Moderator

Re: Change iDrac DNS through redfish API

The nameservers are listed on the page that you linked. I don't have a test environment set up for Redfish. If the DNS attributes cannot be defined directly using Redfish you may need to use the file upload method from the white paper.

Daniel Mysinger
Dell EMC, Enterprise Engineer

0 Kudos

Re: Change iDrac DNS through redfish API

On iDRAC9 you can perform PATCH on below URI to configure iDRAC DNS properties.

redfish/v1/Managers/iDRAC.Embedded.1/Attributes

Body should have below details

{ "Attributes" : {
"IPv4.1.DNS1": "1.2.3.4",
"IPv4.1.DNS2": "1.2.3.5",
"IPv4.1.DNSFromDHCP": "Disabled"
}}

Note : iDRAC 7/8 does not have the capability of changing DNS using redfish

Thanks-


Shine

0 Kudos