[gentoo-user] YP domain name in baselayout 1.12

2006-08-14 Thread Fredrik Tolf

Hi list!

I just noticed that /etc/init.d/domainname has disappeared in baselayout 
1.12, but I can't find what is supposed to replace it.


So, in short: How am I supposed to set my YP domain name with the new 
baselayout?


Thanks for your time!

Fredrik Tolf

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] YP domain name in baselayout 1.12

2006-08-14 Thread Paul Varner
On Mon, 2006-08-14 at 19:05 +0200, Fredrik Tolf wrote:
 Hi list!
 
 I just noticed that /etc/init.d/domainname has disappeared in baselayout 
 1.12, but I can't find what is supposed to replace it.
 
 So, in short: How am I supposed to set my YP domain name with the new 
 baselayout?
 

It is now set in /etc/conf.d/net

From /etc/conf.d/net.example:

#-
# System
# For configuring system specifics such as domain, dns, ntp and nis servers
# It's rare that you would need todo this, but you can anyway.
# This is most benefit to wireless users who don't use DHCP so they can change
# their configs based on ESSID. See wireless.example for more details

# To use dns settings such as these, dns_servers_eth0 must be set!
# If you omit the _eth0 suffix, then it applies to all interfaces unless
# overridden by the interface suffix.
#dns_domain_eth0=your.domain
#dns_servers_eth0=192.168.0.2 192.168.0.3
#dns_search_eth0=this.domain that.domain
#dns_options_eth0=( timeout 1 rotate )
#dns_sortlist_eth0=130.155.160.0/255.255.240.0 130.155.0.0
# See the man page for resolv.conf for details about the options and sortlist
# directives

#ntp_servers_eth0=192.168.0.2 192.168.0.3

#nis_domain_eth0=domain
#nis_servers_eth0=192.168.0.2 192.168.0.3

Regards,
Paul
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] YP domain name in baselayout 1.12

2006-08-14 Thread Paul Varner
On Mon, 2006-08-14 at 23:14 +0200, Fredrik Tolf wrote:
 That does lead me to another question, though -- the
 interface-boundedness of these settings makes me a bit suspicious.
 Will /etc/init.d/net.* start rewriting /etc/resolv.conf
 and/or /etc/yp.conf for me or something like that, and will the NIS
 domain name be kept unset if net.eth0 fails to start for some or another
 reason?

Unfortunately, I don't know the answer since I don't actually use those
settings. Hopefully, someone else knows the answer.

Regards,
Paul
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] YP domain name in baselayout 1.12

2006-08-14 Thread Richard Fish

On 8/14/06, Fredrik Tolf [EMAIL PROTECTED] wrote:

That does lead me to another question, though -- the
interface-boundedness of these settings makes me a bit suspicious.
Will /etc/init.d/net.* start rewriting /etc/resolv.conf
and/or /etc/yp.conf for me or something like that, and will the NIS
domain name be kept unset if net.eth0 fails to start for some or another
reason?



From browsing /lib/rcscripts/net, it looks like you can get the old

behavior by binding to the lo interface.  So use nis_domain_lo,
nis_servers_lo, etc

-Richard
--
gentoo-user@gentoo.org mailing list