Re: how to update IP from DNS server in FRDMK64

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: how to update IP from DNS server in FRDMK64

826 Views
sudhakarp
Contributor V

hi,

     thank you very much.its working fine.and also i want to know is any easy way to update IP from DNS server. please guide me if any example

code there..? actually from domain name i need IP address.

regards,

sudhakar p

0 Kudos
Reply
3 Replies

607 Views
DavidS
NXP Employee
NXP Employee

I have some old code that used the shell as method to ask for IP address from a URL.

Please review the attached ZIP.

Regards,

David

0 Kudos
Reply

607 Views
sudhakarp
Contributor V

Hi David,

     i tried to interface with ethernet_to_serial example code but i cant. i am getting lot of library error. is any other way there..?

i think  shell method more complicated to interface with my exiting code. please give some other idea. its my first project in MQX platform.

regards,

sudhakar p

0 Kudos
Reply

607 Views
DavidS
NXP Employee
NXP Employee

Hi sudhakar p,

I don't have specific example but if you have functionality the below is method to call shell commands from within the code rather than using a terminal window.

Hope it helps.

char_ptr   ARGV[4];

char       CMD_LINE[40]="copy d:\\SPIWeb.shtml c:\\SPIWeb.shtml";          //DES Note this has 3 arguments

Shell_parse_command_line(CMD_LINE, ARGV);

Shell_copy(3, ARGV);          //DES <-- the "3" represents the 3 arguments used in the command line.

Regards,

David