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

  1. Remotely log in to the HiLens Kit device using SSH. For details, see How Do I Log In to a Device Using SSH?
  2. 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
  3. Create the user_init.sh file in the /home/data/user/ directory.
  4. Run the following command to modify the permission of the user_init.sh file:
    chmod 777 /home/data/user/user_init.sh