Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DNS rewriting
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
Crimson Rider
Guru
Guru


Joined: 23 Jun 2003
Posts: 462
Location: Delft, the Netherlands

PostPosted: Sun Dec 14, 2003 10:40 pm    Post subject: DNS rewriting Reply with quote

Hi,

I have single Gentoo box running as the proxy/gateway on a lan, now recently the SMTP server that the lan uses is no longer valid.

Used to be, that all mail clients connect to smtp.server.net and then take care of buisiness. But now it is so that the new SMTP server is residing at smtp.newserver.net, is there a way to translate all the traffic from the lan for smtp.server.net to smtp.newserver.net ?

On another note, the proxy is also the DNS server for the lan, so is it possible to set it up that it resolves smtp.server.net to smtp.newserver.net ?

thanx for any help
_________________
Code, justify, code - Pitr Dubovich
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sun Dec 14, 2003 10:43 pm    Post subject: Reply with quote

Yeah

You just need to add a CNAME record to your DNS server to point smtp.oldserver.net to smtp.newserver.net

How you go about this depends on the DNS server in use
Back to top
View user's profile Send private message
Crimson Rider
Guru
Guru


Joined: 23 Jun 2003
Posts: 462
Location: Delft, the Netherlands

PostPosted: Sun Dec 14, 2003 11:29 pm    Post subject: Reply with quote

I am using a caching only bind9 namerserver, are you saying that I could just insert a CNAME record in either localhost or 127. and it should work ?
_________________
Code, justify, code - Pitr Dubovich
Back to top
View user's profile Send private message
const003
n00b
n00b


Joined: 15 Dec 2003
Posts: 5

PostPosted: Mon Dec 15, 2003 2:11 am    Post subject: Reply with quote

I think add a CNAME record,it could be work as u hope
u must insert it into your 'domain to ip' file
where your domain bind to ip,where u add this record
good luck
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Dec 15, 2003 10:09 am    Post subject: Reply with quote

Crimson Rider wrote:
I am using a caching only bind9 namerserver, are you saying that I could just insert a CNAME record in either localhost or 127. and it should work ?


No, you need to setup a non-authorative zone

For example, I have a public hostname xxx.demon.co.uk that resolves to my routers IP address. My laptop I use at home and at work to get mail from the server. So the name has to be the same.

To achieve this, I have a zone configured for demon.co.uk in my DNS server that only maps xxx.demon.co.uk to my servers internal IP address. All other host requests (such as yyy.demon.co.uk) get forwarded to Demons name servers. BTW, you cannot do a reverse mapping doing this - but you shouldn't need it.
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