follow the posts of the others to change your hostname and domain name. i believe the advice was to look in /etc/sysconfig/network and /etc/resolv.conf respectively. i was just pointing out that if you're using domainname to check for something OTHER THAN the NIS domain, you were barking up the wrong tree. it says right in the man page that domainname is for showing or setting NIS/YP and dnsdomainname is just for _showing_ your domain name.
_________________________________ daniel a. g. quinn starving programmer when the missionaries came to africa they had the bible and we had the land. they said "let us pray." we closed our eyes. when we opened them we had the bible and they had the land. - bishop Desmond Tutu ----- Original Message ----- > No, this doesn't help, I already looked at this... I can use dnsdomainname > to set it, it gives me this when I try... > dnsdomainname: You can't change the DNS domain name with this command > > Unless you are using bind or NIS for host lookups you can change the DNS > domain name (which is part of the FQDN) in the /etc/hosts file. > > If I change anything with hostname and domainname, when I reboot it goes > back to the old values. This is what this whole post is about... > > > Jake > > > At 01:38 PM 5/15/2002 -0700, you wrote: > >from man domainame > > > > hostname - show or set the system's host name > > domainname - show or set the system's NIS/YP domain name > > dnsdomainname - show the system's DNS domain name > > > >man pages are your friend > > > >_________________________________ > >daniel a. g. quinn > >starving programmer > > > >the hottest places in hell are reserved for those who in times of great > >moral crises maintain their neutrality. > > - dante aleghieri (1265-1321) > > > > > > > >----- Original Message ----- > > > Ok, I already had domain in /etc/resolv.conf > > > > > > Still, when I reboot, when I type hostname, I get the host + domain name, > > > when I type domainname, still get (none). > > > > > > dnsdomainname get's the domain name. > > > > > > > > > I guess if no one knows where this is stored, I can always put it in a > > > startup file. > > > > > > Thanks, > > > Jake > > > > > > > > > > > > At 12:41 PM 5/15/2002 -0700, you wrote: > > > >set HOSTNAME in /etc/sysconfig/network > > > >set domain in /etc/resolv.conf > > > > > > > >that is all I have ever needed to change. > > > > > > > >NISDOMAIN will not effect the name or domain that your machine is on, it > > > >is only used (AFAIK) to determine where the machine will authenticate if > > > >you are using nis authentication. > > > > > > > >ryan > > > > > > > >On Wed, 2002-05-15 at 11:19, Jake McHenry wrote: > > > > > Ok, the hostname I got in an earlier email, that part worked, but the > > > > > NISDOMAIN, still does nothing. When I look at the setting by typing > > > > > domainname, it still says (none). And I am rebooting after I make > >these > > > > > changes... > > > > > > > > > > Thanks, > > > > > Jake > > > > > > > > > > > > > > > At 10:57 AM 5/15/2002 -0700, you wrote: > > > > > >Here is what you need to do. > > > > > > > > > > > >1. log on as root > > > > > >2. vi /etc/sysconfig/network > > > > > >3. add/modify > > > > > >HOSTNAME=your host > > > > > >NISDOMAIN=your domain. > > > > > > > > > > > >I assume you have a static ip and not using DHCP. > > > > > > > > > > > > > > > > > > > >-- > > > >-- Ryan Speed - Network Administrator - [EMAIL PROTECTED] -- > > > > > > > > > > > > > > > _______________________________________________ > > > Redhat-list mailing list > > > [EMAIL PROTECTED] > > > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > > > > > > > >_______________________________________________ > >Redhat-list mailing list > >[EMAIL PROTECTED] > >https://listman.redhat.com/mailman/listinfo/redhat-list > _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list