Re: Several issues with /etc/hosts.allow at a university setting

From: Bit Twister (BitTwister_at_mouse-potato.com)
Date: 08/31/05


Date: Tue, 30 Aug 2005 20:21:11 -0500

On 30 Aug 2005 18:06:37 -0700, dpdoughe@allvantage.com wrote:
> Recently I was required to "register" my laptop (running Fedora 3) with
> my university's computer support office in order to use their internet
> on campus. Somehow in this self-guided on-line process they
> automatically created a new hostname for my computer.

Yes when dhcp is used and you have not disabled hostname your pc gets
a new new name.

What you could do is create a script to update /etc/hosts with your ip
address, and name your pc. That should stop your problem in either
mode. You would do a
       man your_dhcp_client_name_here
to see what the script name needs to be created.

I am running mandrivalinux and do not know where things can be set of FC3.
You might put
NEEDHOSTNAME=no (followed by a carriage return)
in /etc/sysconfig/network-scripts/ifcfg-eth0

That stops name changes but a hostname of localhost will not do well.
Do set a name for your host.

$ cat /etc/sysconfig/network
HOSTNAME=fw <=== here is where node name goes
NETWORKING=yes
NETWORKING_IPV6=no
GATEWAYDEV=eth1
GATEWAY=24.1.202.1

$ head /etc/hosts
127.0.0.1 localhost
192.168.2.1 fw.home.invalid fw <==== alias here



Relevant Pages

  • MySQL vs. DBI/DBD
    ... my $hostname = "localhost"; ... my $port = 3306; ... When I run the script I get this error message: ...
    (perl.dbi.users)
  • Re: (was Re: setting FQDN in /etc/hosts)
    ... There should be a space before the word localhost, ... the hostname command will tell you what ... 503 Leafnode must have a unique fully-qualified domain name. ... ## This is the NNTP server leafnode fetches its news from. ...
    (news.software.readers)
  • Re: HP-UX / VUE trouble
    ... The correct hostname is in /etc/src.sh. ... gateway and the definition of localhost as well. ... mserve allow 127.0.0.1 unknown mysystemname mysystemname.domain localhost ... in spc and mserve allow. ...
    (comp.sys.hp.hpux)
  • Re: temporarily change hostname and uname
    ... generated from another script or something? ... Else for the hostname and/or uname... ... On my production cluster I have separate license files for each server ...
    (AIX-L)
  • Re: help! networking/computer security problem
    ... > THe one I get when I do nslookup on the output of ifconfig. ... That would be *a* hostname, but normally should not be THE system's ... Each network interface can have its own name. ... DHCP clients can be configured to run a script upon ...
    (comp.os.linux.security)