Gentoo Archives: gentoo-user

From: "Anthony E. Caudel" <acaudel@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to set domainname
Date: Thu, 17 Aug 2006 06:26:56
Message-Id: 44E40B3D.8080109@gt.rr.com
In Reply to: Re: [gentoo-user] How to set domainname by Alexander Skwar
1 Alexander Skwar wrote:
2 > Anthony E. Caudel schrieb:
3 >> As of baselayout-1.12.4, the domainname init script is no longer used
4 >> and the Gentoo Handbook no longer tells how to set the domainname.
5 >> domainname now returns "(none)"
6 >>
7 >> /etc/conf.d/net.example talks about setting up dns_domain but if this is
8 >> used, it overwrites /etc/resolv.conf.
9 >>
10 >> So how is the domainname now set?
11 >
12 > See net.example.
13 >
14 > # Setting name/domain server causes /etc/resolv.conf to be overwritten
15 > # Note that if DHCP is used, and you want this to take precedence then
16 > # set dhcp_ESSID="nodns"
17 > #dns_servers_ESSID=( "192.168.0.1" "192.168.0.2" )
18 > #dns_domain_ESSID="some.domain"
19 > [...]
20 > #nis_domain_eth0="domain"
21 >
22 >
23 > The domainname is set with dns_domain or nis_domain.
24 >
25 > Alexander Skwar
26
27 But setting my domainname this way overwrites my /etc/resolv.conf and I
28 lose my nameserver data.
29 (This is noted in /etc/conf.d/net.example)
30
31 Tony
32 --
33 Those who would give up essential Liberty, to purchase a little temporary
34 Safety, deserve neither Liberty nor Safety.
35 -- Benjamin Franklin
36 --
37 gentoo-user@g.o mailing list