View previous topic :: View next topic |
Author |
Message |
tuxthepenguin6 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/214399360541d2ca6a5e62e.gif)
Joined: 02 Sep 2004 Posts: 29 Location: Virginia
|
Posted: Mon Apr 18, 2005 2:43 am Post subject: Hostnames on a computer with two network interfaces |
|
|
I am trying to give my computer a hostname on a specific interface so that I can use it with apache. I have my computer set up as a router, with eth0 plugged into the LAN and eth1 plugged into the WAN.
Currently, I have an entry in /etc/hosts that points to my computer on eth0:
Code: | 192.168.0.1 aphrodite |
Naturally, if I wanted to do the same except pointing to my computer on eth1, I would do:
Code: | xxx.xxx.xxx.xxx hostname | where xxx.xxx.xxx.xxx was my IP address on the WAN. However, my internet service provider uses DHCP to give me an IP address, so my IP address on the WAN changes occasionally. Should I just change /etc/hosts every time my address changes or is there way around this? _________________ Proud to be 100% Microsoft free
Free as in freedom |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jerri Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/859090875412bbca2a518e.jpg)
Joined: 03 Apr 2003 Posts: 353
|
Posted: Mon Apr 18, 2005 2:45 am Post subject: |
|
|
you can use a service like www.no-ip.com |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Johnyp Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/2147073005426086edac886.gif)
Joined: 23 Mar 2005 Posts: 301
|
Posted: Mon Apr 18, 2005 2:45 am Post subject: |
|
|
You can setup dyndns (Dynamic DNs) where you run a client on your server that checks for current IP and then updates the DNS record automatically when the change is detected. _________________ Gentoo Unanswered Questions- Give it a try! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|