[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Next cfengine article is available

From: Luke A. Kanies
Subject: Re: Next cfengine article is available
Date: Thu, 20 May 2004 15:53:24 -0500 (CDT)

On Thu, 20 May 2004, Wil Cooley wrote:

On page 2 you set 'domain' using /bin/domainname; is it a Linux-ism that
this is the NIS domain and not the DNS domain, which can be gotten from
/bin/dnsdomainname?  I don't have my Sun lab box up at the moment to
check there.

Yeah, that's a linuxism, as you say. There doesn't seem to be a standard for retrieving the DNS domain, other than 'grep ^domain /etc/resolv.conf', but most hosts support setting /bin/domainname to return the DNS domain without requiring NIS. I have yet to see a case where the two are incompatible, so I just use /bin/domainname when I can, and /etc/resolv.conf when I can't.

You can't have everything.  Where would you put it?
                -- Stephen Wright
Luke Kanies | |

reply via email to

[Prev in Thread] Current Thread [Next in Thread]