View previous topic :: View next topic |
Author |
Message |
madtinkerer Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Willy.jpg)
Joined: 14 Nov 2002 Posts: 122 Location: London Ontario Canada
|
Posted: Sat Sep 27, 2003 4:27 am Post subject: /etc/hosts and /etc/hostname - basic question |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Anime_Fan Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 01 Jul 2003 Posts: 366 Location: Linköping, Sweden
|
Posted: Sat Sep 27, 2003 8:57 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
jtp755 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/The Matrix/movie_the_matrix_neo.gif)
Joined: 01 Sep 2003 Posts: 691 Location: USA
|
Posted: Sun Oct 12, 2003 3:54 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|