“domainname” Command Usage Examples in Linux

«
»

This tutorial explains Linux “domainname” command, options and its usage with examples.

domainname – show or set the system’s NIS/YP domain name.

DESCRIPTION

advertisement

Displays or sets the name of the current Network Information Service (NIS) domain.

SYNOPSIS

domainname [ DomainName ]

DomainName
Optional Argument to set the NIS domain name

advertisement
advertisement

EXAMPLES

1. To join a new domain, enter

$ domainname caesar

In this example, the domainname command sets the NIS domain name to caesar.

advertisement

2. To find out the name of the domain your machine belongs to, enter:

$ domainname
caesar

Sanfoundry Global Education & Learning Series – 1000 Linux Tutorials.

advertisement
If you wish to look at all Linux commands and their usage examples, go to Linux Commands Tutorial.

Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!
advertisement
advertisement
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He is Linux Kernel Developer & SAN Architect and is passionate about competency developments in these areas. He lives in Bangalore and delivers focused training sessions to IT professionals in Linux Kernel, Linux Debugging, Linux Device Drivers, Linux Networking, Linux Storage, Advanced C Programming, SAN Storage Technologies, SCSI Internals & Storage Protocols such as iSCSI & Fiber Channel. Stay connected with him @ LinkedIn | Youtube | Instagram | Facebook | Twitter