Help Center/
Huawei HiLens/
FAQs/
FAQs/
HiLens Kit Devices/
Device System Operations/
How Do I Configure Permanent DNS on a HiLens Kit Device?
Updated on 2022-12-01 GMT+08:00
How Do I Configure Permanent DNS on a HiLens Kit Device?
Symptom
Each time a HiLens Kit device is restarted, the DNS configuration is reset to the default one. How do I configure the permanent DNS?
Solution
- Remotely log in to the HiLens Kit device using SSH. For details, see How Do I Log In to a Device Using SSH?
- Run the following commands to add a 30-second delay for the Wi-Fi configuration after the execution of the automation script:
#!/bin/bash sleep 30s echo "nameserver:xxx.xxx.xxx.xxx" >>/etc/resolv.conf echo "nameserver:xxx.xxx.xxx.xxx" >>/etc/resolv.conf echo "nameserver:xxx.xxx.xxx.xxx" >>/etc/resolv.conf
- Create the user_init.sh file in the /home/data/user/ directory.
- Run the following command to modify the permission of the user_init.sh file:
chmod 777 /home/data/user/user_init.sh
Parent topic: Device System Operations
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot