1 |
2014-07-27 12:29 GMT+03:00 Neil Bothwick <neil@××××××××××.uk>: |
2 |
> On Sun, 27 Jul 2014 12:21:23 +0300, Grand Duet wrote: |
3 |
> |
4 |
>> In short: the contents of the file /etc/resolv.conf |
5 |
>> is unpredictably different from one reboot to another. |
6 |
>> It is either |
7 |
>> # Generated by net-scripts for interface lo |
8 |
>> domain mynetwork |
9 |
> |
10 |
> That's what you get when lo comes up. |
11 |
> |
12 |
>> or |
13 |
>> # Generated by net-scripts for interface "eth0" |
14 |
>> nameserver My.First.DNS-Server.IP |
15 |
>> nameserver My.Second.DNS-Server.IP |
16 |
>> nameserver 8.8.8.8 |
17 |
> |
18 |
> That's what replaces it when eth0 comes up. |
19 |
> It looks like eth0 is not being brought up fully |
20 |
|
21 |
It sounds logical. But how can I fix it? |
22 |
|
23 |
Can carrier_timeout_eth0= setting in /etc/conf.d/net file help? |
24 |
If so, how much seconds should I use? |
25 |
|
26 |
> what do your logs say? |
27 |
|
28 |
Could you, please, be more precise where to look for "logs". |
29 |
|
30 |
> It might be worth putting logger commands in preup(), |
31 |
> postup() and failup() in conf.d/net. |
32 |
|
33 |
Currently, I have no such functions in my /etc/conf.d/net file. |
34 |
Shall I copy them there from |
35 |
/usr/share/doc/netifrc-0.2.2/net.example |
36 |
|
37 |
Could you, please, be more specific on these "logger commands" too. |
38 |
|
39 |
>> I tried to chmod this file to be unwrittable even for root |
40 |
>> but after a reboot it have been overwritten anyway. |
41 |
> |
42 |
> You can't stop root overwriting a file, root laughs in the face of file |
43 |
> permissions. |
44 |
> |
45 |
> BTW, I'm not sure if it's still relevant, but I don't think you ever |
46 |
> posted the contents of /etc/resolvconf.conf, if it exists. |
47 |
|
48 |
I do not have such file. Of course, if you do not mean /etc/resolv.conf |
49 |
But I have posted its content above. |