View previous topic :: View next topic |
Author |
Message |
Crimson Rider Guru
Joined: 23 Jun 2003 Posts: 462 Location: Delft, the Netherlands
|
Posted: Sun Dec 14, 2003 10:40 pm Post subject: DNS rewriting |
|
|
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 |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Sun Dec 14, 2003 10:43 pm Post subject: |
|
|
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 |
|
|
Crimson Rider Guru
Joined: 23 Jun 2003 Posts: 462 Location: Delft, the Netherlands
|
Posted: Sun Dec 14, 2003 11:29 pm Post subject: |
|
|
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 |
|
|
const003 n00b
Joined: 15 Dec 2003 Posts: 5
|
Posted: Mon Dec 15, 2003 2:11 am Post subject: |
|
|
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 |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Mon Dec 15, 2003 10:09 am Post subject: |
|
|
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 |
|
|
|