Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to know which Linux Distribution i am using Post 302075374 by vino on Friday 2nd of June 2006 08:00:29 AM
Old 06-02-2006
You are breaking the rules by duplicating your posts. Your other thread

For linux distro's see this thread - https://www.unix.com/unix-for-advanced-and-expert-users/21468-machine-post83185.html
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

What Linux distribution should I use?

Hey I am right now working on an old Compaq computer, and because I have a newer one I thought of installing Linux on this one. The thing is that I don't know which Linux distribution that would work with a minimum of lag. My computer specifications is: Compaq Presario 7000 Intel Pentium... (7 Replies)
Discussion started by: Sixmax
7 Replies

2. Shell Programming and Scripting

How to know which Linux Distribution i am using ?

Hi, I m working on many Linux servers in my project. But i am unable to know which Linux Distribution i am using Like whether i am using SUSE or REDHAT or MONDRAKE. I tried with "uname" command. But it does not help me. Please provide me the command if u know. Regards, Basavaraja KC (5 Replies)
Discussion started by: BasavarajaKC
5 Replies

3. Programming

Linux Distribution

Hi, Can anyone please tell me, what is the best Linux distribution for Software Development. Thanks, Philip. (4 Replies)
Discussion started by: Phi01
4 Replies

4. Linux

which linux distribution to use for SOHO ?

Hi I consider changing operating system onto Linux. But I'm not sure what kind of distribution should I use : - Red Hat - Suse - Ubuntu - Debian - Fedora Operating system will be operating on the notebook to replace Win XP and must be stable version with all drivers to hardware (WiFi... (7 Replies)
Discussion started by: presul
7 Replies

5. Linux

What linux distribution is good?

Dear all i am new to Linux, i need a Linux OS that have been "qt development and lesstif" together. Regards (5 Replies)
Discussion started by: mkhorami76
5 Replies

6. Fedora

Starting out, Linux Distribution

Hi, i'm currently part of an apprenticeship becoming a IT specialist. Because I'm already an electronic technician (finished apprenticeship) I can do this one in 2 years (normally you need 3). Thing is, in school they started out with basic unix stuff (working with the shell) in the first... (3 Replies)
Discussion started by: Dr. Nick
3 Replies

7. What is on Your Mind?

What was your first Linux distribution?

What was the first Linux distribution you tried? My first was Knoppix, it was pretty good I thought, and it supported my old hardware http://www.linuxforum.com/images/smilies/smile.png Too bad I couldn't figure out how to install it at the time though. What about you? (32 Replies)
Discussion started by: billcrosby
32 Replies
GETDOMAINNAME(2)					     Linux Programmer's Manual						  GETDOMAINNAME(2)

NAME
getdomainname, setdomainname - get/set domain name SYNOPSIS
#include <unistd.h> int getdomainname(char *name, size_t len); int setdomainname(const char *name, size_t len); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): getdomainname(), setdomainname(): _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500) DESCRIPTION
These functions are used to access or to change the domain name of the host system. setdomainname() sets the domain name to the value given in the character array name. The len argument specifies the number of bytes in name. (Thus, name does not require a terminating null byte.) getdomainname() returns the null-terminated domain name in the character array name, which has a length of len bytes. If the null-termi- nated domain name requires more than len bytes, getdomainname() returns the first len bytes (glibc) or gives an error (libc). RETURN VALUE
On success, zero is returned. On error, -1 is returned, and errno is set appropriately. ERRORS
setdomainname() can fail with the following errors: EFAULT name pointed outside of user address space. EINVAL len was negative or too large. EPERM the caller is unprivileged (Linux: does not have the CAP_SYS_ADMIN capability). getdomainname() can fail with the following errors: EINVAL For getdomainname() under libc: name is NULL or name is longer than len bytes. CONFORMING TO
POSIX does not specify these calls. NOTES
Since Linux 1.0, the limit on the length of a domain name, including the terminating null byte, is 64 bytes. In older kernels, it was 8 bytes. On most Linux architectures (including x86), there is no getdomainname() system call; instead, glibc implements getdomainname() as a library function that returns a copy of the domainname field returned from a call to uname(2). SEE ALSO
gethostname(2), sethostname(2), uname(2) COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2009-09-27 GETDOMAINNAME(2)
All times are GMT -4. The time now is 04:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy