* [gentoo-user] What do I put in the /etc/conf.d/net....
@ 2009-09-26 20:11 David Juhl
2009-09-27 1:16 ` Roy Wright
2009-09-27 1:22 ` [gentoo-user] " Nikos Chantziaras
0 siblings, 2 replies; 9+ messages in thread
From: David Juhl @ 2009-09-26 20:11 UTC (permalink / raw
To: gentoo-user
What do I put in the /etc/conf.d/net to specify name servers? I can't
seem to modify the /etc/resolv.conf and get it to sick at boot.
Thanks,
David
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] What do I put in the /etc/conf.d/net....
2009-09-26 20:11 [gentoo-user] What do I put in the /etc/conf.d/net David Juhl
@ 2009-09-27 1:16 ` Roy Wright
2009-09-27 2:08 ` David Juhl
2009-09-27 1:22 ` [gentoo-user] " Nikos Chantziaras
1 sibling, 1 reply; 9+ messages in thread
From: Roy Wright @ 2009-09-27 1:16 UTC (permalink / raw
To: gentoo-user
On Sep 26, 2009, at 3:11 PM, David Juhl wrote:
> What do I put in the /etc/conf.d/net to specify name servers? I can't
> seem to modify the /etc/resolv.conf and get it to sick at boot.
>
grep -i dns /usr/share/doc/openrc/net.example
The short answer is something like:
dns_servers_eth0="192.168.0.2 192.168.0.3"
HTH,
Roy
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] Re: What do I put in the /etc/conf.d/net....
2009-09-26 20:11 [gentoo-user] What do I put in the /etc/conf.d/net David Juhl
2009-09-27 1:16 ` Roy Wright
@ 2009-09-27 1:22 ` Nikos Chantziaras
2009-09-27 2:08 ` David Juhl
2009-09-27 20:44 ` Stroller
1 sibling, 2 replies; 9+ messages in thread
From: Nikos Chantziaras @ 2009-09-27 1:22 UTC (permalink / raw
To: gentoo-user
On 09/26/2009 11:11 PM, David Juhl wrote:
> What do I put in the /etc/conf.d/net to specify name servers? I can't
> seem to modify the /etc/resolv.conf and get it to sick at boot.
Depends on how you connect. If you're behind a router/gateway device
that does NAT (this includes most "DSL modems"), you use the device's IP
as nameserver in /etc/resolv.conf as well as routes_ethN in
/etc/conf.d/net. For example, if your router's IP is 192.168.1.1, you
use this in /etc/resolv.conf:
nameserver 192.168.1.1
And this in /etc/conf.d/net:
routes_eth0="default via 192.168.1.1"
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: What do I put in the /etc/conf.d/net....
2009-09-27 1:22 ` [gentoo-user] " Nikos Chantziaras
@ 2009-09-27 2:08 ` David Juhl
2009-09-27 13:45 ` David Juhl
2009-09-27 20:44 ` Stroller
1 sibling, 1 reply; 9+ messages in thread
From: David Juhl @ 2009-09-27 2:08 UTC (permalink / raw
To: gentoo-user
I feel like a idiot.... my device isn't eth0 it is wlan0 and defined it
as such... No wonder I didn't catch it...
Thanks
David
On Sun, 2009-09-27 at 04:22 +0300, Nikos Chantziaras wrote:
> On 09/26/2009 11:11 PM, David Juhl wrote:
> > What do I put in the /etc/conf.d/net to specify name servers? I can't
> > seem to modify the /etc/resolv.conf and get it to sick at boot.
>
> Depends on how you connect. If you're behind a router/gateway device
> that does NAT (this includes most "DSL modems"), you use the device's IP
> as nameserver in /etc/resolv.conf as well as routes_ethN in
> /etc/conf.d/net. For example, if your router's IP is 192.168.1.1, you
> use this in /etc/resolv.conf:
>
> nameserver 192.168.1.1
>
> And this in /etc/conf.d/net:
>
> routes_eth0="default via 192.168.1.1"
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] What do I put in the /etc/conf.d/net....
2009-09-27 1:16 ` Roy Wright
@ 2009-09-27 2:08 ` David Juhl
0 siblings, 0 replies; 9+ messages in thread
From: David Juhl @ 2009-09-27 2:08 UTC (permalink / raw
To: gentoo-user
I don't use openrc but thank you.
David
On Sat, 2009-09-26 at 20:16 -0500, Roy Wright wrote:
> On Sep 26, 2009, at 3:11 PM, David Juhl wrote:
>
> > What do I put in the /etc/conf.d/net to specify name servers? I can't
> > seem to modify the /etc/resolv.conf and get it to sick at boot.
> >
>
> grep -i dns /usr/share/doc/openrc/net.example
>
> The short answer is something like:
>
> dns_servers_eth0="192.168.0.2 192.168.0.3"
>
> HTH,
> Roy
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: What do I put in the /etc/conf.d/net....
2009-09-27 2:08 ` David Juhl
@ 2009-09-27 13:45 ` David Juhl
2009-09-27 15:30 ` walt
2009-09-28 1:30 ` Nikos Chantziaras
0 siblings, 2 replies; 9+ messages in thread
From: David Juhl @ 2009-09-27 13:45 UTC (permalink / raw
To: gentoo-user
It added the route but didn't add anything as far as nameservers are
concerned.... Why?
David
On Sat, 2009-09-26 at 21:08 -0500, David Juhl wrote:
> I feel like a idiot.... my device isn't eth0 it is wlan0 and defined it
> as such... No wonder I didn't catch it...
>
> Thanks
>
> David
> On Sun, 2009-09-27 at 04:22 +0300, Nikos Chantziaras wrote:
> > On 09/26/2009 11:11 PM, David Juhl wrote:
> > > What do I put in the /etc/conf.d/net to specify name servers? I can't
> > > seem to modify the /etc/resolv.conf and get it to sick at boot.
> >
> > Depends on how you connect. If you're behind a router/gateway device
> > that does NAT (this includes most "DSL modems"), you use the device's IP
> > as nameserver in /etc/resolv.conf as well as routes_ethN in
> > /etc/conf.d/net. For example, if your router's IP is 192.168.1.1, you
> > use this in /etc/resolv.conf:
> >
> > nameserver 192.168.1.1
> >
> > And this in /etc/conf.d/net:
> >
> > routes_eth0="default via 192.168.1.1"
> >
> >
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] Re: What do I put in the /etc/conf.d/net....
2009-09-27 13:45 ` David Juhl
@ 2009-09-27 15:30 ` walt
2009-09-28 1:30 ` Nikos Chantziaras
1 sibling, 0 replies; 9+ messages in thread
From: walt @ 2009-09-27 15:30 UTC (permalink / raw
To: gentoo-user
On 09/27/2009 06:45 AM, David Juhl wrote:
> It added the route but didn't add anything as far as nameservers are
> concerned.... Why?
What is 'it'? I use dhclient to get the gateway and nameserver
addresses from my DSL modem:
$cat /etc/resolv.conf
# Generated by dhclient for interface eth0
nameserver 192.168.0.1
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: What do I put in the /etc/conf.d/net....
2009-09-27 1:22 ` [gentoo-user] " Nikos Chantziaras
2009-09-27 2:08 ` David Juhl
@ 2009-09-27 20:44 ` Stroller
1 sibling, 0 replies; 9+ messages in thread
From: Stroller @ 2009-09-27 20:44 UTC (permalink / raw
To: gentoo-user
On 27 Sep 2009, at 02:22, Nikos Chantziaras wrote:
> On 09/26/2009 11:11 PM, David Juhl wrote:
>> What do I put in the /etc/conf.d/net to specify name servers? I
>> can't
>> seem to modify the /etc/resolv.conf and get it to sick at boot.
>
> Depends on how you connect. If you're behind a router/gateway
> device that does NAT (this includes most "DSL modems"), you use the
> device's IP as nameserver in /etc/resolv.conf as well as routes_ethN
> in /etc/conf.d/net. For example, if your router's IP is
> 192.168.1.1, you use this in /etc/resolv.conf:
>
> nameserver 192.168.1.1
>
> And this in /etc/conf.d/net:
>
> routes_eth0="default via 192.168.1.1"
Except the route & the gateway are completely different things. They
_might_ happen to share an IP. They might not.
The OP asked how one specifies nameservers in "/etc/conf.d/net".
dns_servers=( "208.67.222.222" "208.67.220.220" )
might work, but it is properly and *clearly* discussed in "/etc/conf.d/
net.example".
I am unable to reply to David's most recent post because he's made
such an unslightly mess of quoting. However it seems to me that
bringing routes into your reply has only confused matters.
Stroller.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] Re: What do I put in the /etc/conf.d/net....
2009-09-27 13:45 ` David Juhl
2009-09-27 15:30 ` walt
@ 2009-09-28 1:30 ` Nikos Chantziaras
1 sibling, 0 replies; 9+ messages in thread
From: Nikos Chantziaras @ 2009-09-28 1:30 UTC (permalink / raw
To: gentoo-user
On 09/27/2009 04:45 PM, David Juhl wrote:
> It added the route but didn't add anything as far as nameservers are
> concerned.... Why?
>
What works and what doesn't? Can you ping IPs?
ping 74.125.45.100
If yes, you have connectivity and the route works. If it was actually
working even before you added the "routes_eth0" setting in
/etc/conf.d/net, then the route is not the problem and that setting is
not needed in your case.
Can you ping domain names?
ping google.com
If yes, DNS works. If not, the IP in /etc/resolv.conf is wrong.
Specifying it in conf.d/net instead of resolv.conf doesn't help if it's
just the wrong IP. Usually it's the router's IP though. So if it
doesn't work, you might try to use your ISP's DNS directly. You can
either phone them, or search at their homepage for info, or Google
"ISP_Name DNS" and start from there.
> David
>
> On Sat, 2009-09-26 at 21:08 -0500, David Juhl wrote:
>> I feel like a idiot.... my device isn't eth0 it is wlan0 and defined it
>> as such... No wonder I didn't catch it...
>>
>> Thanks
>>
>> David
>> On Sun, 2009-09-27 at 04:22 +0300, Nikos Chantziaras wrote:
>>> On 09/26/2009 11:11 PM, David Juhl wrote:
>>>> What do I put in the /etc/conf.d/net to specify name servers? I can't
>>>> seem to modify the /etc/resolv.conf and get it to sick at boot.
>>>
>>> Depends on how you connect. If you're behind a router/gateway device
>>> that does NAT (this includes most "DSL modems"), you use the device's IP
>>> as nameserver in /etc/resolv.conf as well as routes_ethN in
>>> /etc/conf.d/net. For example, if your router's IP is 192.168.1.1, you
>>> use this in /etc/resolv.conf:
>>>
>>> nameserver 192.168.1.1
>>>
>>> And this in /etc/conf.d/net:
>>>
>>> routes_eth0="default via 192.168.1.1"
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-09-28 1:31 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-26 20:11 [gentoo-user] What do I put in the /etc/conf.d/net David Juhl
2009-09-27 1:16 ` Roy Wright
2009-09-27 2:08 ` David Juhl
2009-09-27 1:22 ` [gentoo-user] " Nikos Chantziaras
2009-09-27 2:08 ` David Juhl
2009-09-27 13:45 ` David Juhl
2009-09-27 15:30 ` walt
2009-09-28 1:30 ` Nikos Chantziaras
2009-09-27 20:44 ` Stroller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox