Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hostnames on a computer with two network interfaces
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
tuxthepenguin6
n00b
n00b


Joined: 02 Sep 2004
Posts: 29
Location: Virginia

PostPosted: Mon Apr 18, 2005 2:43 am    Post subject: Hostnames on a computer with two network interfaces Reply with quote

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
View user's profile Send private message
Jerri
Guru
Guru


Joined: 03 Apr 2003
Posts: 353

PostPosted: Mon Apr 18, 2005 2:45 am    Post subject: Reply with quote

you can use a service like www.no-ip.com
Back to top
View user's profile Send private message
Johnyp
Guru
Guru


Joined: 23 Mar 2005
Posts: 301

PostPosted: Mon Apr 18, 2005 2:45 am    Post subject: Reply with quote

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
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