The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 multiple hostnames in one system?
Author: Daniel Schrock 
Date:   23-02-01 17:33

background info:
xl0 (external interface) is aliased to my entire subnet (xxx.xxx.xxx.xxx/29)
dc0 (internal interface) then has 172.16.0.5.
the publics are then bimaped through ipnat to boxen on private ips.

Solaris has the ability to assign a hostname to each interface and alias.
Does FreeBSD have any way to do this outside of /etc/hosts and named?

ie:
hostname.xl0="hostname1"
hostname.xl0.alias0="hostname2"
hostname.dc0="hostname-int"

i have tried the above and variations in rc.conf and ended up with no hostname after a reboot. After reading the man pages on hostname, I figured it wouldn't work, but freebsd has surprised me in the past so i figured why not try.

this seems like something that should be possible, as many people have dual/multi homed systems that could use this kind of functionality.

Reply To This Message
 
 Re: multiple hostnames in one system?
Author: Dan Langille 
Date:   23-02-01 23:14

try /etc/hosts

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org