Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"# /etc/resolv.conf.tail can replace this line" howto ?
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
Gregoire
Apprentice
Apprentice


Joined: 15 Apr 2006
Posts: 292

PostPosted: Sun Jul 24, 2011 11:14 am    Post subject: "# /etc/resolv.conf.tail can replace this line" ho Reply with quote

Hello,

I have tried to had dns_servers_eth0="8.8.8.8 8.8.4.4 208.67.222.222 208.67.220.220" into /etc/resolv.conf.tail, also on a lign basis, but everytime I got in /etc/resolv.conf :
Code:

# Generated by dhcpcd
nameserver 62.2.17.60
nameserver 62.2.24.162
nameserver 62.2.17.61
nameserver 62.2.24.158

# /etc/resolv.conf.tail can replace this line


which is fine when my ISP'DNS works, but it's not always the case...

My /etc/conf.d/net is :
Code:

modules_eth0="!plug"
modules_eth1="!plug"
config_eth0=( "dhcp" )
config_eth1=( "null" )                                                                               
tuntap_vbox0="tap"                                                                                                                                                                     
config_vbox0=( "null")                                                       
tunctl_vbox0=("-u gregtunneled")
config_br1=(
"dhcp"
)
dhcp_br1="nodns nontp nonis"
bridge_br1="eth1 vbox0"
depend_br1()
{
         need net.eth1
         need net.vbox0
}
brctl_br1=( "setfd 0")

And my /etc/dhcpcd.conf :
Code:

hostname
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
option ntp_servers
option interface_mtu
require dhcp_server_identifier
nohook lookup-hostname
noipv4ll
nohook ntp.conf , yp.conf, resolv.conf
interface br1
static ip_address=192.168.1.2
static routers=192.168.1.1

Removing the "resolv.conf" in nohook don't make any difference...
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Sun Jul 24, 2011 12:36 pm    Post subject: Reply with quote

cat /etc/resolv.conf.tail
Code:
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 208.67.222.222
nameserver 208.67.220.220


the content of /etc/resolv.conf.tail need to be literal - it gets directly appended to /etc/resolv.conf.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
Gregoire
Apprentice
Apprentice


Joined: 15 Apr 2006
Posts: 292

PostPosted: Sun Jul 24, 2011 12:43 pm    Post subject: Reply with quote

That was my first try. And at least at my place it don't get appened at all.
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Sun Jul 24, 2011 1:05 pm    Post subject: Reply with quote

works fine here (with Networkmanager + dhclient).

an remove resolv.conf from the nohook line - it prevents dhcpcd from editing the resolv.conf.

how did you test? dhcpcd -k eth0 && dhcpcd eth0?

V.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
Gregoire
Apprentice
Apprentice


Joined: 15 Apr 2006
Posts: 292

PostPosted: Sun Jul 24, 2011 2:37 pm    Post subject: Reply with quote

As I said removing the resolv.conf from nohhok don't change the situation.

I tested with powering the machine and through hibernating the machine.
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