This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DNS client and resolv.conf

Hi All,

I'd like to know what configuration elements need to be provided to the K2H Arago Linux so to allow resolution of domain names.

Example:

-           www.ti.com corresponds tol IP address 10.4.1.14

-          ping 10.4.1.14 works correctly but  ping www.ti.com returns a « bad address » .

What are the recommendations to add a dnsclient during startup ?

I also noticed that /etc/resolv.conf gets cleaned out after each restart, any clue why ?

Thanks & Regards 

  • Hi,

    I assume you are running the linux using NFS file system. If Yes, while booting linux "udhcpc" service will not be executed hence resolv.conf file will not be generated/updated.

    After linux bootup, please run "udhcpc" to configure the dns name server.

    In ubifs(NAND), on every boot udhcpc service runs automatically and /etc/resolv.conf got updated.

    I hope this resolve the issue. 

    Thank you.

  • Hi Raja,

    that helped definitively.

    In addition, I've added a S99nameserver rule under /etc/rc5.d so to make the thing automatically :

    k2hnode1:~$ cat /etc/rc5.d/S99nameserver
    #!/bin/sh
    udhcpc

    Thanks & Regards