Help Center>
Huawei HiLens>
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
Device System Operations FAQs
- How Do I Log In to a Device Using SSH?
- After I Change the Password for a Huawei HiLens Device, Why Can't I Use PuTTY to Log In to the Device Even Though I Can Use the New Password to Log in to Huawei HiLens Intelligent Edge System?
- How Do I Perform Bottom-Layer Operations on the HiLens Kit System?
- Can I Import a Custom Python Module to a HiLens Kit Device?
- How Do I Install YUM on HiLens Kit Devices?
- How Do I Manage Device Files?
- How Do I Install Software Packages on HiLens Kit Devices?
- How Do I Log In to a Device as Root User and Disable Connection Timeout?
- Can Python-based OpenMV Devices Invoke HiLens Kit Skills by Calling APIs?
- Why a HiLens Kit Device Cannot Display Chinese Characters?
- How Do I Clear Wi-Fi Information Saved on a HiLens Kit Device?
- How Do I Use SSH Commands to Connect a HiLens Kit Device to a Wi-Fi Network?
- How Do I Configure Permanent DNS on a HiLens Kit Device?
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.
Chatbotmore