On Sat, Nov 01, 2014 at 04:55:18PM -0500, Bruce Dubbs wrote: > Alexey Orishko wrote: > >On Sat, Nov 1, 2014 at 8:57 PM, Bruce Dubbs <[email protected]> wrote: > >>How would someone dynamically create resolv.conf without some daemon like > >>dhcpcd? > > > >If DNS servers are stated in ifconfig.eth0, why can't ipv4-static > >create resolv.conf? > >Thus all required configuration would be kept in the single file. > >It also helps to maintain all settings intact while switching between > >static/dhcp configs (since resolv.conf would be overwritten) > > You are free to change the scripts any way you prefer, but I don't think > many users would like that method. Actually I disable update of resolv.conf > in dhcpcd and always use 8.8.8.8 and 8.8.4.4 (google) no matter where I am. > Others may want a caching name server and use 127.0.0.1. > > Your distro may want something different. > > -- Bruce
In my own case, I normally use dhclient (partly, to check that it still works on new builds), but on the occasions when my external connection dies I sometimes switch to a static IP to get from my desktop to my server (the server has apache for the books, backuops, and sources and my notes on nfs). What I do not understand is the *concept* of switching between static and dhcp as a regular thing to do. My experience is that ALL modern broadband connection devices seem to offer dhcp, so what is the benefit of a static connection (apart, perhaps, from a few seconds when booting : in my case, waiting for the BIOS to initialise the machine is the slowest part of booting, but some speed freaks apparently prefer systemd [ /me spits. :-) ] If you are building a distro for other people, I am sure you can script things, in your preferred scripting language, to do what you suggest. ĸen -- Nanny Ogg usually went to bed early. After all, she was an old lady. Sometimes she went to bed as early as 6 a.m. -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
