1 |
· Kevin O'Gorman <kogorman@×××××.com>: |
2 |
> On 9/17/06, Mick <michaelkintzios@×××××.com> wrote: |
3 |
>> On Sunday 17 September 2006 13:43, Alexander Skwar wrote: |
4 |
>> > · Mick <michaelkintzios@×××××.com>: |
5 |
>> > > On Sunday 17 September 2006 09:21, Neil Bothwick wrote: |
6 |
>> > >> On Sun, 17 Sep 2006 07:50:28 +0200, Alexander Skwar wrote: |
7 |
|
8 |
>> > > Can you please guide me how to set it up globally? |
9 |
>> > |
10 |
>> > It's all in /etc/conf.d/net.example. |
11 |
>> > |
12 |
>> > > I am not sure I can follow |
13 |
>> > > the otherwise well commented /etc/conf.d/net. |
14 |
>> > |
15 |
>> > What problems do you have specifically? |
16 |
>> > What did you try? |
17 |
>> > What was the expected outcome and what did you get in reality? |
18 |
>> |
19 |
>> I saw this: # dns_domain_eth0="your.domain" in the /etc/conf.d/net.example and |
20 |
>> added: dns_domain="STUDY" |
21 |
>> |
22 |
>> but still .none comes up: |
23 |
>> |
24 |
>> # domainname |
25 |
>> (none) |
26 |
>> |
27 |
> |
28 |
> I have to join in the confusion too. Reading the examples I come to the same |
29 |
> conclusion that I should be able to put |
30 |
> dns_domain="kosmanor.com" |
31 |
> in /etc/conf.d/net and have it work. |
32 |
|
33 |
You're right. |
34 |
|
35 |
I've got: |
36 |
|
37 |
# Alle Interfaces |
38 |
modules=( "ifconfig" ) |
39 |
dns_servers="130.171.200.151 130.171.157.129" |
40 |
dns_search="dewup.europe europe" |
41 |
dns_domain="dewup.europe" |
42 |
ntp_servers="130.171.200.145 130.171.200.144" |
43 |
nis_domain="wup.de" |
44 |
nis_servers="10.233.7.240" |
45 |
|
46 |
# eth0 - LAN |
47 |
config_eth0=( "10.233.7.145 netmask 255.255.248.0 broadcast 10.233.7.255" ) |
48 |
routes_eth0=( "default via 10.233.0.250" ) |
49 |
|
50 |
And this does work. As you can see, I've got dns_domain="dewup.europe" and when |
51 |
I run "hostname -d", I get the expected result - dewup.europe. |
52 |
|
53 |
> As I have static IP's and a single domain I see no point in |
54 |
> per-interface domains, but |
55 |
|
56 |
The point has been explained. |
57 |
|
58 |
> if I used them, what in the world could I expect domainname(1) to tell me? |
59 |
|
60 |
The domainname. But you haven't set one. You've set the DNS domainname. domainname |
61 |
doesn't return the DNS domainname as the documentation clearly states. See "hostname |
62 |
--help" or "domainname --help". |
63 |
|
64 |
> It seems to me the most common setups are DHCP or something like mine, and I |
65 |
> would hope the documentation was clear for those common cases. |
66 |
|
67 |
Actually, I find it quite clear. The documentation states what needs to be |
68 |
done and it states, what the commands return. It seems, that you've used |
69 |
the wrong command. |
70 |
|
71 |
Alexander Skwar |
72 |
-- |
73 |
The only difference in the game of love over the last few thousand years |
74 |
is that they've changed trumps from clubs to diamonds. |
75 |
-- The Indianapolis Star |
76 |
|
77 |
|
78 |
-- |
79 |
gentoo-user@g.o mailing list |