LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-09-2005, 08:46 AM   #1
nvbauer
LQ Newbie
 
Registered: Feb 2005
Posts: 11

Rep: Reputation: 0
Conifiguring aliases in BIND9 - Debian Sarge


I have exim and BIND 9 up and runing at my home. mytestdomain.com resolves properly to 192.168.10.53 which is the servers address. Now I'd like to configure it so that mail.mytestdomain.com and mystestdoman.com all resolve to 192.168.10.53 I configured it with webmin, but I'm not opposed to doing it by hand.

Thanks,

Norm
 
Old 02-09-2005, 10:19 AM   #2
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Hi,

here's the zone I added in /etc/bind/named.conf :
zone "cheznous" {
type master;
file "db.cheznous";
};

here's the /etc/bind/db.cheznous file which goes with the zone :
$TTL 86400
@ IN SOA cheznous. root.cheznous. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
86400 ) ; Negative Cache TTL
;
@ IN NS localhost.
IN A 127.0.0.1
ezeeckius IN A 192.168.0.79
aracaju IN A 192.168.0.103
aracaju-lan IN A 192.168.0.103
aracaju-dmz IN A 192.168.1.103
arpoulgwen IN A 192.168.1.10
*.arpoulgwen IN A 192.168.1.10

As you see, aracaju and aracaju-lan are the same machine.

The 2 last lines specify that arpoulgwen, foo.arpoulgwen, bar.arpoulgwen and so on points to the same IP

Bye
 
Old 02-09-2005, 10:20 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
I don't know how webmin does this, but by hand go to your zone file and add a line like the following for every alias you want to add:
mail IN CNAME home.mytestdomain.com.

Mind the dot (.) at the and of "home.mytestdomain.com."
Don't forget to change the serial number and restart bind

Regards
 
Old 02-09-2005, 07:47 PM   #4
nvbauer
LQ Newbie
 
Registered: Feb 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Dudes, you are all so awsome. Actually webmin had set it up so that the file was /etc/bind/mytestdomain.com.hosts and the record was setup to:
Code:
 mail.mytestdomain.com. CNAME mytestdomain.com
I changed that record to

Code:
 mail.mytestdomain.com.   A 192.168.10.53
and all worked well.

I really appreciate your straight-up answers.


Norm

PS: I think this DNS thing is getting a whole lot clearer now. I'm going to set it up by hand next time. Practice makes perfect.
 
Old 02-10-2005, 09:41 AM   #5
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
Sure
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Sarge 3.1 brisde Linux - Hardware 3 08-31-2005 02:45 PM
How to setup aliases in postfix? (Debian) Jeozp Linux - Software 1 02-03-2005 12:52 PM
Debian sarge phoenix_wolf Linux - Newbie 4 12-05-2004 03:42 PM
DEBIAN SARGE :: now what? renderseven Debian 2 11-16-2004 11:24 PM
What's with debian SARGE wesleywest Debian 18 09-04-2004 07:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration