Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]resolvconf-gentoo emerge --config =resolvconf-gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hitachi
Guru
Guru


Joined: 20 Feb 2006
Posts: 478
Location: Freiburg / Deutschland

PostPosted: Thu Nov 15, 2007 11:39 am    Post subject: [solved]resolvconf-gentoo emerge --config =resolvconf-gentoo Reply with quote

Hi,
I hope this is not something already solve but I could not find anything.
some time ago I ran an emerge --sync and DuavN world. I guess there was an update to net-misc/vpnc-0.5.1 and it also updated net-dns/resolvconf-gentoo-1.2 . At the end there was a message like "to prevent that run:
Code:
emerge --config =resolvconf-gentoo
"
I did that. Since then my box does not create the /etc/resolv.conf any more. OK I am doing this by hand every time. I could not find another way to do this. I tried to unmerge resolveconf-gentoo with
Quote:
emerge -avC resolvconf-gentoo
but than my box does not start up any more. So I emerged it again.

Right now I ran an emerge --sync and DuavN world and I saw vpnc is without resolvconf now
Quote:
Calculating world dependencies... done!
[ebuild R ] net-misc/vpnc-0.5.1 USE="-bindist -hybrid-auth -resolvconf%" 0 kB
Will this break my box again? How can I undo this emerge --config thing I did?

Thanks for any help


Last edited by hitachi on Tue Apr 08, 2008 8:49 am; edited 2 times in total
Back to top
View user's profile Send private message
lokik
n00b
n00b


Joined: 11 May 2005
Posts: 18

PostPosted: Fri Nov 16, 2007 6:06 am    Post subject: Reply with quote

Hi,
for resolvconf to work /etc/resolv.conf has to be a symlink to resolvconf/run/resolv.conf But
Code:
emerge --config =resolvconf-gentoo
should have done that. Anyway you can achieve this with
Code:
cd /etc && ln -sfn resolvconf/run/resolv.conf .
After that all you have to do is
Code:
resolvconf -u
so a proper resolv.conf will be created for you.
Hope this helps
Back to top
View user's profile Send private message
hitachi
Guru
Guru


Joined: 20 Feb 2006
Posts: 478
Location: Freiburg / Deutschland

PostPosted: Fri Nov 16, 2007 10:00 pm    Post subject: Reply with quote

Thank's for the answer.
I did copy and past the lines above. It did not solve the problem. I still have to change /etc/resolv.conf by hand.
Back to top
View user's profile Send private message
Devport
Guru
Guru


Joined: 15 Dec 2004
Posts: 361

PostPosted: Sat Nov 17, 2007 1:51 am    Post subject: Reply with quote

For me after removing resolvconf-gentoo a broken symlink /etc/resolv.conf was left. I needed to remove it and everything worked fine again.

Try to rm /etc/resolv.conf and restart your network.


Last edited by Devport on Sat Nov 17, 2007 5:31 am; edited 2 times in total
Back to top
View user's profile Send private message
lokik
n00b
n00b


Joined: 11 May 2005
Posts: 18

PostPosted: Sat Nov 17, 2007 2:38 am    Post subject: Reply with quote

Strange... it did solve the problem on my colleagues machine...
Does the /etc/resolvconf/run/interfaces directory contain resolv.conf format files named after your network devices?
Back to top
View user's profile Send private message
Devport
Guru
Guru


Joined: 15 Dec 2004
Posts: 361

PostPosted: Sat Nov 17, 2007 5:30 am    Post subject: Reply with quote

lokik wrote:
Strange... it did solve the problem on my colleagues machine...
Does the /etc/resolvconf/run/interfaces directory contain resolv.conf format files named after your network devices?

I assume reslvconf belongs to resolvconf-gentoo ? He doesn`t have it installed refering to his first topic.
Back to top
View user's profile Send private message
hitachi
Guru
Guru


Joined: 20 Feb 2006
Posts: 478
Location: Freiburg / Deutschland

PostPosted: Sat Nov 17, 2007 2:44 pm    Post subject: Reply with quote

I do have.
Quote:
emerge -avC resolvconf-gentoo
but than my box does not start up any more. So I emerged it again.
Back to top
View user's profile Send private message
hitachi
Guru
Guru


Joined: 20 Feb 2006
Posts: 478
Location: Freiburg / Deutschland

PostPosted: Tue Apr 08, 2008 8:47 am    Post subject: Reply with quote

Devport wrote:
For me after removing resolvconf-gentoo a broken symlink /etc/resolv.conf was left. I needed to remove it and everything worked fine again.

Try to rm /etc/resolv.conf and restart your network.


Thanks for that. Did it today.
Code:
rm -vi /etc/resolv.conf
Quote:
rm: remove symbolic link `/etc/resolv.conf'? y
removed `/etc/resolv.conf'
Code:
/etc/init.d/net.eth0 restart
Quote:
/etc/init.d/net.eth0 restart
* Unmounting network filesystems ... [ ok ]
* Stopping eth0
* Bringing down eth0
* Shutting down eth0 ... [ ok ]
* Starting eth0
* Bringing up eth0
* 192.168.1.3 [ ok ]
* Adding routes
* default via 192.168.1.1 ... [ ok ]
* Mounting network filesystems ... [ ok ]
* Setting clock via the NTP client 'ntpdate' ...
Error : Temporary failure in name resolution
8 Apr 10:27:21 ntpdate[2009]: can't find host ptbtime1.ptb.de

Error : Temporary failure in name resolution
8 Apr 10:27:21 ntpdate[2009]: can't find host swisstime.ethz.ch

Error : Temporary failure in name resolution
8 Apr 10:27:21 ntpdate[2009]: can't find host ntps1-0.cs.tu-berlin.de

8 Apr 10:27:21 ntpdate[2009]: no servers can be used, exiting
* Failed to set clock [ !! ]
Code:
cp -v /etc/resolv.conf.kh /etc/resolv.conf && /etc/init.d/ntp-client restart
Quote:
`/etc/resolv.conf.kh' -> `/etc/resolv.conf'
* Setting clock via the NTP client 'ntpdate' ...
8 Apr 10:30:11 ntpdate[2118]: step time server 192.53.103.108 offset -0.689819 sec
By now it works fine for me.
Thank you!
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Apr 08, 2008 9:16 am    Post subject: Reply with quote

OR just move to openresolv which doesn't require the symlink trickery :)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum