From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,367000a2e1e32e3b,start X-Google-Attributes: gid1164f8,public From: ron@topaz.sensor.com (Ron Natalie) Subject: Re: hostname, telnet, & httpd problems Date: 1996/03/03 Message-ID: <4hcpu6$c1r@topaz.sensor.com>#1/1 X-Deja-AN: 141926868 references: <4hco9p$o5r@info-server.bbn.com> organization: Sensor Systems newsgroups: comp.sys.dec bkort@labs-n.bbn.com wrote: : John Gallaugher (jmgallau@mailbox.syr.edu) wrote: : : After consulting the 'man' of 'hostname' it said to modify /etc/rc.local, : : one of the first lines in this file listed nameA.syr.edu, so I changed it : : to nameB.syr.edu, then I shut down my machine & re-booted. This seemed to : : return nameB.syr.edu from issuing 'hostname', but I could no longer telnet : : into nameB.syr.edu like I could before. Any ideas on what I can do to : : keep them both in synch? I suspect this might be causing problems with my : : httpd server. : When you telnet, the hostname is looked up in /etc/hosts or via the : domain name server specified in /etc/resolv.conf. If you change the : hostname of system with /bin/hostname in /etc/rc.local, that change : is unknown to /etc/hosts and to any domain name servers. You can : easily edit /etc/hosts, but you will have to pull strings to get : some network admin change your DNS entry. More correctly, on DEC (ULTRIX and UNIX) machines, the order and type of resolution is controlled by the file /etc/svc.conf -Ron