How can it retrieve the nameserver in 'DHCP' way ?

------------------
Regards,

banglang huang
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel 


 




------------------ Original ------------------
From:  "Kristian Evensen";<kristian.even...@gmail.com>;
Date:  Mar 31, 2014
To:  "banglang huang"<banglang.hu...@gmail.com>; 
Cc:  "OpenWrt Development List"<openwrt-devel@lists.openwrt.org>; 
Subject:  Re: [OpenWrt-Devel] Question about the /tmp/resolv.conf.auto file



Hi,

On Mon, Mar 31, 2014 at 11:39 AM, banglang huang
<banglang.hu...@gmail.com> wrote:
>         And I want to learn how this file can be generated and why the
> openwrt knows the dns ip address automatically (nameserver) ??

This file is generated by the network interface daemon (netifd) in the
function interface_write_resolv_conf() in interface-ip.c. The
nameservers are retrieved through different means, for example DHCP
and static configuration in UCI.

-Kristian
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
.
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to