This tutorial explains Linux “domainname” command, options and its usage with examples.
domainname – show or set the system’s NIS/YP domain name.
DESCRIPTION
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.
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.
Related Posts:
- Apply for Programming Internship
- Check Linux Books
- Check Information Technology Books
- Practice Programming MCQs