Forum Overview :: American McGee's Honda Civic
 
Re: I got one! So, some questions... by blackwater 06/17/2013, 12:09am PDT
It is traditional to put the fully qualified domain name in the /etc/hosts file when using a static IP address. This means that you never have to contact the DNS server to map your own hostname to your own IP address. When you have a dynamic IP address, it doesn't really make sense to put the hostname in the /etc/hosts file at all. People do it anyway, usually mapping the hostname to 127.0.0.1, which is one of the loopback addresses.

This is all different from setting the hostname, which is traditionally in /etc/HOSTNAME. Theoretically, the FQDN does not have to include the hostname at all. The internet could know me as "kumquuat" and I could call myself "kiwi." This happens a lot, in fact: you may name your computer leetHaxxxor, but Verizon probably calls you shithead-1034534536.at.verizon.whatever.the.fuck.com.

You can have any number of domain names mapping to the same IP, of course. So it doesn't really even make sense to say that your computer has an FQDN. It has zero or more FQDNs. And of course you can have as many IP addresses as you want as well. The average programmer is ignorant of this and floods StackOverflow with questions like "how can get I get IP address of machine from Java kthx"
PREVIOUS NEXT REPLY QUOTE
 
Linux VPS Hosting by Ice Cream Jonsey 05/22/2013, 9:12am PDT NEW
    yep by jeep 05/22/2013, 9:27am PDT NEW
        ditto by The Happiness Engine 05/22/2013, 4:19pm PDT NEW
            Re: ditto by Ice Cream Jonsey 05/23/2013, 8:41am PDT NEW
                Re: ditto by The Happiness Engine 05/23/2013, 3:55pm PDT NEW
                    I use no-ip.org instead of dyndns. It's free as all hell. NT by Last 05/24/2013, 7:37pm PDT NEW
            Re: ditto by Ice Cream Jonsey 05/23/2013, 8:44am PDT NEW
                Re: ditto by The Happiness Engine 05/23/2013, 3:48pm PDT NEW
                    there's literally an rpm just to turn on auto yum update NT by jeep 05/24/2013, 6:34pm PDT NEW
    I have a related question by motherfuckerfoodeater 05/23/2013, 11:54pm PDT NEW
        I haven't done a strict comparison by The Happiness Engine 05/24/2013, 3:01pm PDT NEW
            Drunken followup after rereading the original question by The Happiness Engine 05/24/2013, 3:08pm PDT NEW
        I have, linode's cheaper by jeep 05/24/2013, 6:35pm PDT NEW
            if you need tons of them ec2 is better and has the cool api shit NT by jeep 05/24/2013, 6:36pm PDT NEW
    I got one! So, some questions... by Ice Cream Jonsey 06/08/2013, 10:29am PDT NEW
        Re: I got one! So, some questions... by blackwater 06/17/2013, 12:09am PDT NEW
            Re: I got one! So, some questions... by Fullofkittens 06/17/2013, 7:24am PDT NEW
                Re: I got one! So, some questions... by Commander Tansin A. Darcos 06/17/2013, 9:20am PDT NEW
        Re: I got one! So, some questions... by Commander Tansin A. Darcos 06/17/2013, 4:41am PDT NEW
        Re: I got one! So, some questions... by motherfuckerfoodeater 06/17/2013, 10:42am PDT NEW
        This may be a strange question, but by Commander Tansin A. Darcos 06/17/2013, 10:56am PDT NEW
            Have you thought about rooting yourself? It saves us time. NT by Sincerely, Haxx0rs 06/17/2013, 2:44pm PDT NEW
            Fucking Christ, Paul NT by Entropy Stew 06/17/2013, 9:33pm PDT NEW
        I just thought, how about the reverse? by Commander Tansin A. Darcos 06/17/2013, 11:08am PDT NEW
        Re: I got one! So, some questions... by The Happiness Engine 06/17/2013, 2:54pm PDT NEW
 
powered by pointy