Thread View: csu.unix.linux
8 messages
8 total messages
Started by Adam Carheden
Tue, 22 Feb 2000 00:00
hostname
Author: Adam Carheden
Date: Tue, 22 Feb 2000 00:00
Date: Tue, 22 Feb 2000 00:00
5 lines
616 bytes
616 bytes
In which config file do I set the hostname of my machine? I can't seem to find this info anywhere. -- Adam
Re: hostname
Author: Mike
Date: Tue, 22 Feb 2000 00:00
Date: Tue, 22 Feb 2000 00:00
8 lines
741 bytes
741 bytes
carheden@holly.colostate.edu (Adam Carheden): > In which config file do I set the hostname of my machine? I can't seem > to find this info anywhere. /etc/sysconfig/network should do it. It's sourced by /etc/rc.d/rc.sysinit -- Mike Grandin
Re: hostname
Author: Adam Carheden
Date: Tue, 22 Feb 2000 00:00
Date: Tue, 22 Feb 2000 00:00
8 lines
891 bytes
891 bytes
Okay, this is really weird, hostname returns ftp.cnhp.colostate.edu. I have it set to mail.cnhp.colostate.edu in /etc/sysconfig/network, and if I do a nslookup, it's listed as mail with ftp as an alias. What's up with this? -- Adam Carheden carheden@holly.ColoState.EDU
Re: hostname
Author: Paul Hansen
Date: Wed, 23 Feb 2000 00:00
Date: Wed, 23 Feb 2000 00:00
59 lines
2015 bytes
2015 bytes
--------------3294091E47AEDD59B5B8E986 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Adam Carheden wrote: > In which config file do I set the hostname of my machine? I can't seem > to find this info anywhere. > > -- > Adam Adam, When I built the new boxes in the dept I did it by cloning. These are the files I changed to give the a new machine its identity: /etc/HOSTNAME put in the hostname /sysconfig/network put in the hostname Just those two changes and I've had no problems. --Paul -- --------------3294091E47AEDD59B5B8E986 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> Adam Carheden wrote: <blockquote TYPE=CITE>In which config file do I set the hostname of my machine? I can't seem <br>to find this info anywhere. <p>-- <br>Adam</blockquote> Adam, <br>When I built the new boxes in the dept I did it by cloning. These are the files I changed to give the a new machine its identity: <p>/etc/HOSTNAME put in the hostname <br>/sysconfig/network put in the hostname <p>Just those two changes and I've had no problems. <p> --Paul <pre>-- </pre> </html> --------------3294091E47AEDD59B5B8E986--
Re: hostname
Author: Michael Dwyer
Date: Wed, 23 Feb 2000 00:00
Date: Wed, 23 Feb 2000 00:00
18 lines
1479 bytes
1479 bytes
Adam Carheden <carheden@holly.colostate.edu> wrote: : Okay, this is really weird, hostname returns ftp.cnhp.colostate.edu. I : have it set to mail.cnhp.colostate.edu in /etc/sysconfig/network, and if : I do a nslookup, it's listed as mail with ftp as an alias. What's up : with this? Make sure that your reverse DNS and DNS are correct... What DNS thinks your computer is named, and what your computer thinks is is named should probably jive -- at least a little... Err.... I should say that dnslookup only looks at the DNS records, and never actually asks the machine what it thinks its own name is. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michael J. Dwyer I doubt, therefore I might be. mdwyer@holly.ColoState.edu http://WWW.CS.ColoState.EDU/~dwyer/ Computer Science Major Amateur Radio Tech N0ZAP
Re: hostname
Author: Xylen
Date: Wed, 23 Feb 2000 00:00
Date: Wed, 23 Feb 2000 00:00
26 lines
1762 bytes
1762 bytes
Michael Dwyer wrote: > Make sure that your reverse DNS and DNS are correct... What DNS thinks > your computer is named, and what your computer thinks is is named > should probably jive -- at least a little... > > Err.... I should say that dnslookup only looks at the DNS records, and > never actually asks the machine what it thinks its own name is. When I set up my Redhat 6.0, I entered my IP addy as xxx.xxx.xxx.037 Note the '7' on the end. After installation was complete, my computer thought it was .031. It even told the outside world that it was .031. I had to go into the config files and manually change it back to a '7'. Now my computer thinks it is .037, and it tells the world that too. But why does Redhat mess that up? It did it when I installed 5.1 as well. Xylen -- __^__ __^__ ( ___ )------------------------------( ___ ) | / | This message has been brought | \ | | / | to you by the language C and | \ | |___| the number F |___| (_____)------------------------------(_____)
Re: hostname
Author: Michael Dwyer
Date: Thu, 24 Feb 2000 00:00
Date: Thu, 24 Feb 2000 00:00
28 lines
2032 bytes
2032 bytes
Xylen <mctupper@holly.colostate.edu> wrote: : When I set up my Redhat 6.0, I entered my IP addy as xxx.xxx.xxx.037 : Note the '7' on the end. After installation was complete, my computer The problem is the leading 0. I chewed out the housing department about this once, something like two or three years ago... But they don't listen to me. Maybe cuz I rant too much. :) To be jaunty, and because I was annoyed at Housing Networks already, I thought I'd be jaunty and type in the IP address EXACTLY as it was typed on the little form. I got the same effect you saw. Anyway, the scanf thingy in C will consider any number starting with a 0 to be in octal. Sooo, 037 is octal comes out to... something else in decimal. If you wanted to be especially jaunty, you could convert it to hex, and put 0x in front of the numbers... Alternatly, you can also convert the whole 4x8 ip string into a 32bit word. Check out samspade.[org|com|???] for more stupid tricks... The odd thing is that my IP address was .037 when I was in the halls, too.... Coincidence? Nah. Prolly not. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michael J. Dwyer I doubt, therefore I might be. mdwyer@holly.ColoState.edu http://WWW.CS.ColoState.EDU/~dwyer/ Computer Science Major Amateur Radio Tech N0ZAP
Re: hostname
Author: Xylen
Date: Thu, 24 Feb 2000 00:00
Date: Thu, 24 Feb 2000 00:00
40 lines
2206 bytes
2206 bytes
Michael Dwyer wrote: > > Xylen <mctupper@holly.colostate.edu> wrote: > : When I set up my Redhat 6.0, I entered my IP addy as xxx.xxx.xxx.037 > : Note the '7' on the end. After installation was complete, my computer > > The problem is the leading 0. I chewed out the housing department > about this once, something like two or three years ago... But they > don't listen to me. Maybe cuz I rant too much. :) > Actually when I got my ethernet card, I had Housing install it for me. At the time this was free, so I figured I'd let the experts do it. I had forgotten that when he was entering the data for the card, he had to ignore the leading zero. He tried it three times with the leading zero before he remembered that housing connections have that quirk. > Anyway, the scanf thingy in C will consider any number starting with > a 0 to be in octal. Sooo, 037 is octal comes out to... it comes out as 31! Amazing bit of magic. :) > The odd thing is that my IP address was .037 when I was in the halls, > too.... Coincidence? Nah. Prolly not. It's a conspiracy! <housing code> if student == CS then ip = .037 </end code> Xylen -- __^__ __^__ ( ___ )------------------------------( ___ ) | / | This message has been brought | \ | | / | to you by the language C and | \ | |___| the number F |___| (_____)------------------------------(_____)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads