Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[resolv.conf] Empêcher la mise à jour du fichier (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Neuromancien
l33t
l33t


Joined: 03 Dec 2003
Posts: 867

PostPosted: Sun Nov 25, 2007 9:10 pm    Post subject: [resolv.conf] Empêcher la mise à jour du fichier (résolu) Reply with quote

Re-bonsoir,

Comment empêcher que DHCP n'écrase resolv.conf ? J'ai essayé différentes solutions, sans succès.
_________________
emerge --info
dmesg
lspci
.config


Last edited by Neuromancien on Thu Nov 29, 2007 3:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
guilc
Bodhisattva
Bodhisattva


Joined: 15 Nov 2003
Posts: 3325
Location: Paris - France

PostPosted: Sun Nov 25, 2007 9:13 pm    Post subject: Reply with quote

La solution est dans le conf.d/net :
Code:
dhcp_eth0="nodns"

_________________
Merci de respecter les règles du forum.

Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing
Back to top
View user's profile Send private message
Neuromancien
l33t
l33t


Joined: 03 Dec 2003
Posts: 867

PostPosted: Sun Nov 25, 2007 9:17 pm    Post subject: Reply with quote

guilc wrote:
La solution est dans le conf.d/net :
Code:
dhcp_eth0="nodns"

C'est la première chose que j'ai essayée, sans résultat... :?
_________________
emerge --info
dmesg
lspci
.config
Back to top
View user's profile Send private message
CryoGen
Veteran
Veteran


Joined: 11 Feb 2004
Posts: 1426
Location: Bamako - Mali - Afrique

PostPosted: Sun Nov 25, 2007 9:23 pm    Post subject: Reply with quote

Une autre interface qui a aussi un dhcp ? pppd ?
_________________
- CryoGen` on #gentoofr@irc.freenode.net
- ~amd64 / KDE4
- I'm the bone of my sword...
Back to top
View user's profile Send private message
guilc
Bodhisattva
Bodhisattva


Joined: 15 Nov 2003
Posts: 3325
Location: Paris - France

PostPosted: Sun Nov 25, 2007 9:26 pm    Post subject: Reply with quote

CryoGen wrote:
Une autre interface qui a aussi un dhcp ? pppd ?

+1, c'est fort possible : ne pas oublier que toute interface activée mais non-configurée se retrouve en DHCP...

En tous cas, ça marche, j'utilise sur ma conf au taf, et aucun problème ;)
_________________
Merci de respecter les règles du forum.

Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing
Back to top
View user's profile Send private message
GentooUser@Clubic
l33t
l33t


Joined: 01 Nov 2004
Posts: 829

PostPosted: Sun Nov 25, 2007 9:59 pm    Post subject: Reply with quote

Il faut pas gérer directement le fichier /etc/resolv.conf mais ajouter la configuration statique des DNS dans /etc/conf.d/net

Chez moi
Code:
dhcp_eth0="nodns"

Pour empercher la mise à jour du fichier par dhcpcd et
Code:
dns_domain="neurone.xxx.org"
dns_servers="212.27.32.176 212.27.32.177"

Qui spécifie les infos à placer dans dans le resolv.conf
Back to top
View user's profile Send private message
Neuromancien
l33t
l33t


Joined: 03 Dec 2003
Posts: 867

PostPosted: Thu Nov 29, 2007 3:40 pm    Post subject: Reply with quote

Merci. :)
_________________
emerge --info
dmesg
lspci
.config
Back to top
View user's profile Send private message
jaymz
Apprentice
Apprentice


Joined: 07 Nov 2002
Posts: 171
Location: /dev/chair

PostPosted: Thu Nov 29, 2007 4:05 pm    Post subject: Reply with quote

hello,

sinon, on peut aussi avoir
Code:
dhcp_eth0="-R"
qui empêche le dhcp d'écraser le /etc/resolv.conf

;)
_________________
Sleep my friend and you will see, dream is my reality.....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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