DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a machine that came from another network and now needs to be a member of our domain here in the office. Someone asked me how we make this Debian machine a member of the domain and I simply drew a blank. I have always made the machine a member of the domain when I configure the hostname during the installation. The next question after you set the host name is to always select a domain.
Domains and now Active Directory are Windows networking concepts. Unix/Linux systems don't natively understand those protocols. To make them work in Windows networking, you use Samba. Install Samba, and configure it to be a Domain client.
There are plenty of HowTos and pointers here in the forums. If you need more help, ask.
I known the command "net rpc join ...." is used on a linux client to join itself to a domain, and, on the samba server side, the parameter "add machine script = " on smb.conf is used to complete the process.
I can't give you more details, 'cauze I never had this need, but I am very interested if you figure out how.
The command "net" is part of package "samba-common" on a fedora 9.
If this wasn't a windows domain question but actually on about setting the FQDN (computer.domain.com) after an install, this section of 'man hostname' is what you're looking for -
Code:
THE FQDN
You can’t change the FQDN (as returned by hostname --fqdn) or the DNS
domain name (as returned by dnsdomainname) with this command. The FQDN
of the system is the name that the resolver(3) returns for the host
name.
Technically: The FQDN is the name gethostbyname(2) returns for the host
name returned by gethostname(2). The DNS domain name is the part after
the first dot.
Therefore it depends on the configuration (usually in /etc/host.conf)
how you can change it. Usually (if the hosts file is parsed before DNS
or NIS) you can change it in /etc/hosts.
And also in the same man page -
Code:
-f, --fqdn, --long
Display the FQDN (Fully Qualified Domain Name). A FQDN consists
of a short host name and the DNS domain name. Unless you are
using bind or NIS for host lookups you can change the FQDN and
the DNS domain name (which is part of the FQDN) in the
/etc/hosts file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.