Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/hosts and /etc/hostname - basic question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
madtinkerer
Tux's lil' helper
Tux's lil' helper


Joined: 14 Nov 2002
Posts: 122
Location: London Ontario Canada

PostPosted: Sat Sep 27, 2003 4:27 am    Post subject: /etc/hosts and /etc/hostname - basic question Reply with quote

I can't quite seem to wrap my head around the setup of these two files for my home computer which has a PPPoE adsl network connection. Every example I've found seems to be for static IP or standard LAN DHCP setups, so I was wondering if someone could give me a template to setup these files for my type of network connection. Also, since I have a dyndns account, do I put my dyndns domain name somewhere in these files?

Thanks in advance.
Back to top
View user's profile Send private message
Anime_Fan
Guru
Guru


Joined: 01 Jul 2003
Posts: 366
Location: Linköping, Sweden

PostPosted: Sat Sep 27, 2003 8:57 am    Post subject: Reply with quote

Yes, I'd set my /etc/hostname to the dyndns domain name...

Alsa, I'd set my /etc/hosts to something along the lines of:

Code:

127.0.0.1       localhost
127.0.0.1       $dyndns
127.0.0.1      goatse.cx #Get rid of those slashdot trolls...
# IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


Having your dyndns name in /etc/hosts enables you to utilize the same URLs as you would give others... Really nice with loopback connections for it.
Back to top
View user's profile Send private message
jtp755
l33t
l33t


Joined: 01 Sep 2003
Posts: 691
Location: USA

PostPosted: Sun Oct 12, 2003 3:54 pm    Post subject: Reply with quote

i am also kind of confused on this topic. i have an account at www.no-ip.com which lets you have a dynamic IP from your ISP stay static(well it updates it as neccasery) but i dont know what i need to put in the hostname or the domainname. can i use w/e i want or what. I am going to be running a FTP and probably eventually hosting a web site.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum