multi_vfs_dns_client example
multi_vfs_dns_client example
This example shows how to use an external DNS server in KasperskyOS.
The example also demonstrates the use of various virtual file systems (VFS) in a single solution:
- The
VfsNetprogram is used for working with the network. - The
VfsSdCardFsprogram is used to work with the file system.
The Client program uses standard libc library functions for contacting an external DNS service. These functions are converted into queries to the VfsNet program via IPC.
The CMake system, which is included with KasperskyOS Community Edition, is used to build and run the example.
Supplied resources
- The directory
./resources/edlcontains theClient.edlfile, which contains a static description of theClientprogram. - The directory
./resources/hdd/etccontains the configuration files for theVfsNetandDhcpcdprograms:hostsanddhcpcd.conf, respectively.
Example files
The code of the example and build scripts are available at the following path:
/opt/KasperskyOS-Community-Edition-<version>/examples/multi_vfs_dns_client
Building and running example
See Building and running examples section.
Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.