Re: Bind ip alias

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sure.

But when its an external query I of course need the domain to be resolved to the external ip. I think that Steve's configuartion example seems to address this.


external dns query > resolves to external ip > now the request is forwarded/routed to ip alias.


This problem is almost certainly a function of my lack of dns knowledge, but steve's example as given be an idea of how this needs to be achieved a set of internal and external records).

Cheers

Mark

On 24 May 2004, at 11:13, Mike Burger wrote:

Why would you assume that?  You set up your zone file so that
www.hosteddomain.com gives you the "aliased" ip...dns lookups, at least
internally, are always going to give you what's actually in your zone
file.

On Sun, 23 May 2004, Mark Lowe wrote:

Hi Jason

I see what you're saying with the apache configuration but I'm sure
bind isn't setup up right as when I ping www.hosteddomain.com. from
another machine it returns the ip alias ip

ping www.hosteddomain.com
PING www.hosteddomain.com (10.0.0.10): 56 data bytes
64 bytes from 10.0.0.10: icmp_seq=0 ttl=64 time=0.259 ms
64 bytes from 10.0.0.10: icmp_seq=1 ttl=64 time=0.242 ms
64 bytes from 10.0.0.10: icmp_seq=2 ttl=64 time=0.259 ms

And so on..

I assume that I should get the external ip if things are setup right.

On 23 May 2004, at 21:41, Jason Staudenmayer wrote:

I think what your after has nothing to do with bind. Look at apache
redir
and virtual hosting.
If you only have one outside address and want multiple domains on that
1
address that's the way to go.
The only catch is you MUST use the FQDN and not the IP.


-----Original Message-----
From: Mark Lowe [mailto:mark.lowe@xxxxxxxxxxxx]
Sent: Sunday, May 23, 2004 3:32 PM
To: redhat-list@xxxxxxxxxx
Subject: Bind ip alias


Hello


I've been struggling with this for a while now, and could really do
with someone telling be where I've been going wrong.

We have one server with 1 IP. I've made a number of IP aliases which
all works fine and dandy. I'm trying to map individual domain names to
a ip alias.


For example

$ttl 38400
@       IN      SOA     mainhost.maindomain.com.
root.mainhost.maindomain.com. (
                         1084742277
                         10800
                         3600
                         604800
                         38400 )
hosteddomain.com.     	IN     NS	ns.maindomain.com.
www.hosteddomain.com. IN     A       10.0.0.10
ftp.hosteddomain.com. 	IN     A       10.0.0.10
mail.hosteddomain.com 	IN	A	10.0.0.10
hosteddomain.com.     	IN     A       10.0.0.10


The problem is when I ping or traceroute to hosteddomain.com it gives me the the aliased IP rather than the external one.

How to I get things so to the outside world hosteddomain.com is the
real ip and to the server its the aliased one?

The main reason I'm trying to get this working is so I can have an ssl
certificate for domains hosted on our webserver


<VirtualHost 10.0.0.10:80>
	ServerName www.hosteddomain.com
..

<VirtualHost 10.0.0.10:443>
	ServerName www.hosteddomain.com
	#Point to ssl cert and such like.
..

If anyone can shed any light on this it would be a great help

Cheers

Mark





--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list





-- Mike Burger http://www.bubbanfriends.org

Visit the Dog Pound II BBS
telnet://dogpound2.citadel.org or http://dogpound2.citadel.org:2000

To be notified of updates to the web site, visit
http://www.bubbanfriends.org/mailman/listinfo/site-update, or send a
message to:

site-update-request@xxxxxxxxxxxxxxxxx

with a message of:

subscribe


-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux