* [gentoo-user] Lost nameserver
@ 2007-03-09 16:30 Thierry de Coulon
2007-03-09 16:47 ` Neil Bothwick
0 siblings, 1 reply; 9+ messages in thread
From: Thierry de Coulon @ 2007-03-09 16:30 UTC (permalink / raw
To: gentoo-user
Hello,
I'm in the process of compiling a new system using 2006.1 (minimal
install/amd64). My only problem at the moment is that every time I start the
system the nameserver information has diseapeared from /etc/resolv.conf.
There is a text line saying that the file was "created by the net scripts" so
I guess resolv.conf gets re-created at each boot, but I don't find in
which "net script" I should pour the nameserver information so that it gets
into resolv.conf each time.
Thierry
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Lost nameserver
2007-03-09 16:30 [gentoo-user] Lost nameserver Thierry de Coulon
@ 2007-03-09 16:47 ` Neil Bothwick
2007-03-09 17:14 ` Thierry de Coulon
0 siblings, 1 reply; 9+ messages in thread
From: Neil Bothwick @ 2007-03-09 16:47 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 618 bytes --]
On Fri, 9 Mar 2007 17:30:51 +0100, Thierry de Coulon wrote:
> There is a text line saying that the file was "created by the net
> scripts" so I guess resolv.conf gets re-created at each boot, but I
> don't find in which "net script" I should pour the nameserver
> information so that it gets into resolv.conf each time.
/etc/conf.d/net
Set dns_servers_eth0 (or whatever is correct for your network interface).
It looks like the system is currently trying to set them by DHCP but your
DHCP server is not giving out DNS information.
--
Neil Bothwick
Press any key... no, no, no, NOT THAT ONE!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Lost nameserver
2007-03-09 16:47 ` Neil Bothwick
@ 2007-03-09 17:14 ` Thierry de Coulon
2007-03-09 17:50 ` Dan Farrell
0 siblings, 1 reply; 9+ messages in thread
From: Thierry de Coulon @ 2007-03-09 17:14 UTC (permalink / raw
To: gentoo-user
On Friday 09 March 2007 17:47, Neil Bothwick wrote:
> On Fri, 9 Mar 2007 17:30:51 +0100, Thierry de Coulon wrote:
> > There is a text line saying that the file was "created by the net
> > scripts" so I guess resolv.conf gets re-created at each boot, but I
> > don't find in which "net script" I should pour the nameserver
> > information so that it gets into resolv.conf each time.
>
> /etc/conf.d/net
>
> Set dns_servers_eth0 (or whatever is correct for your network interface).
>
> It looks like the system is currently trying to set them by DHCP but your
> DHCP server is not giving out DNS information.
Thanks, I'll try that.
As a matter of fact my DHCP server can't give out DNS information as I have no
DHCP server and use fixes IPs :)
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Lost nameserver
2007-03-09 17:14 ` Thierry de Coulon
@ 2007-03-09 17:50 ` Dan Farrell
2007-03-09 20:36 ` Thierry de Coulon
0 siblings, 1 reply; 9+ messages in thread
From: Dan Farrell @ 2007-03-09 17:50 UTC (permalink / raw
To: gentoo-user
On Fri, 9 Mar 2007 18:14:32 +0100
Thierry de Coulon <tcoulon@decoulon.ch> wrote:
> On Friday 09 March 2007 17:47, Neil Bothwick wrote:
> > On Fri, 9 Mar 2007 17:30:51 +0100, Thierry de Coulon wrote:
> > > There is a text line saying that the file was "created by the net
> > > scripts" so I guess resolv.conf gets re-created at each boot, but
> > > I don't find in which "net script" I should pour the nameserver
> > > information so that it gets into resolv.conf each time.
> >
> > /etc/conf.d/net
> >
> > Set dns_servers_eth0 (or whatever is correct for your network
> > interface).
> >
> > It looks like the system is currently trying to set them by DHCP
> > but your DHCP server is not giving out DNS information.
>
> Thanks, I'll try that.
>
> As a matter of fact my DHCP server can't give out DNS information as
> I have no DHCP server and use fixes IPs :)
>
In that case, you may not want to use DHCP to configure your devices ; )
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Lost nameserver
2007-03-09 17:50 ` Dan Farrell
@ 2007-03-09 20:36 ` Thierry de Coulon
2007-03-09 20:57 ` Dan Farrell
0 siblings, 1 reply; 9+ messages in thread
From: Thierry de Coulon @ 2007-03-09 20:36 UTC (permalink / raw
To: gentoo-user
On Friday 09 March 2007 18:50, Dan Farrell wrote:
>
> In that case, you may not want to use DHCP to configure your devices ; )
I don't use it (or at least I never intended to). I've set up a network
configuration with fixed IPs and copied the configuration files as instructed
in the handbook - well, maybe I made a mistake somewhere...
Thierry
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Lost nameserver
2007-03-09 20:36 ` Thierry de Coulon
@ 2007-03-09 20:57 ` Dan Farrell
2007-03-09 21:12 ` Thierry de Coulon
0 siblings, 1 reply; 9+ messages in thread
From: Dan Farrell @ 2007-03-09 20:57 UTC (permalink / raw
To: gentoo-user
On Fri, 9 Mar 2007 21:36:19 +0100
Thierry de Coulon <tcoulon@decoulon.ch> wrote:
> On Friday 09 March 2007 18:50, Dan Farrell wrote:
> >
> > In that case, you may not want to use DHCP to configure your
> > devices ; )
>
> I don't use it (or at least I never intended to). I've set up a
> network configuration with fixed IPs and copied the configuration
> files as instructed in the handbook - well, maybe I made a mistake
> somewhere...
>
> Thierry
>
In all likelihood, you didn't edit /etc/conf.d/net for one of your
network interfaces, which ifplugd then tried to bring up. you may want
to change /etc/conf.d/rc.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Lost nameserver
2007-03-09 20:57 ` Dan Farrell
@ 2007-03-09 21:12 ` Thierry de Coulon
2007-03-09 22:22 ` Neil Bothwick
0 siblings, 1 reply; 9+ messages in thread
From: Thierry de Coulon @ 2007-03-09 21:12 UTC (permalink / raw
To: gentoo-user
On Friday 09 March 2007 21:57, Dan Farrell wrote:
> In all likelihood, you didn't edit /etc/conf.d/net for one of your
> network interfaces, which ifplugd then tried to bring up. you may want
> to change /etc/conf.d/rc.
Yes, I did edit /etc/conf.d/net. Actually everything works correctly (I get
the correct IP on the correct card and the gateway is also correct). the only
thing that does not work is that I have no dns setting so I can't download
the sources to install.
I can add "nameserver <IP>" in /etc/resolv.conf but it's gone at the next
reboot. I've now added dsn_servers_eth0 in /etc/conf.d/net and I'll see next
time if I get the dns right.
Thierry
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Lost nameserver
2007-03-09 21:12 ` Thierry de Coulon
@ 2007-03-09 22:22 ` Neil Bothwick
2007-03-10 6:25 ` Thierry de Coulon
0 siblings, 1 reply; 9+ messages in thread
From: Neil Bothwick @ 2007-03-09 22:22 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 788 bytes --]
On Fri, 9 Mar 2007 22:12:20 +0100, Thierry de Coulon wrote:
> Yes, I did edit /etc/conf.d/net. Actually everything works correctly (I
> get the correct IP on the correct card and the gateway is also
> correct). the only thing that does not work is that I have no dns
> setting so I can't download the sources to install.
Have you read /etc/conf.d/net.example? This part may apply here:
# NOTE: Setting any of these will stamp on the files in question. So if you
# don't specify dns_servers but you do specify dns_domain then no nameservers
# will be listed in /etc/resolv.conf even if there were any there to start
# with.
--
Neil Bothwick
"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Lost nameserver
2007-03-09 22:22 ` Neil Bothwick
@ 2007-03-10 6:25 ` Thierry de Coulon
0 siblings, 0 replies; 9+ messages in thread
From: Thierry de Coulon @ 2007-03-10 6:25 UTC (permalink / raw
To: gentoo-user
On Friday 09 March 2007 23:22, Neil Bothwick wrote:
>
> Have you read /etc/conf.d/net.example? This part may apply here:
Hum, no, I did not - I blindly followed the handbook
> # NOTE: Setting any of these will stamp on the files in question. So if you
> # don't specify dns_servers but you do specify dns_domain then no
> nameservers # will be listed in /etc/resolv.conf even if there were any
> there to start # with.
That's It! However, this must have changed more or less recently, as I never
had the problem with my older Gentoo install (based on the 2005 version).
Thanks a lot, next time I'll take the time to read the example.
Thierry
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-03-10 6:33 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-09 16:30 [gentoo-user] Lost nameserver Thierry de Coulon
2007-03-09 16:47 ` Neil Bothwick
2007-03-09 17:14 ` Thierry de Coulon
2007-03-09 17:50 ` Dan Farrell
2007-03-09 20:36 ` Thierry de Coulon
2007-03-09 20:57 ` Dan Farrell
2007-03-09 21:12 ` Thierry de Coulon
2007-03-09 22:22 ` Neil Bothwick
2007-03-10 6:25 ` Thierry de Coulon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox