DNS Aliases on Debian 3

I'm running Debian 3 and am trying to set up the whole caboodle (mail, ftp, web, dns) on one server. I have a domain name (diablog.co.uk) which is on external domain name servers. I have the external DNSes set up so that certain subdomains (eg me.diablog.co.uk) are pointed at my server. However, my router can't cope with using these external DNSes since when I am trying to get to them from the inside. Therefore, I am using my server as a DNS server from inside my network.

My problem is that I can't create an alias for my server.

I tried doing it manually, and then installed webmin to help. From webmin, my "records file" looks like this:

$TTL      43200
diablog.co.uk.      IN      SOA      rover.diablog.co.uk. 2003102514 (
                  6
                  15
                  14D
                  12H
                   )
@            IN      MX      5      192.168.7.100.
@            IN      NS      192.168.7.100.
diablog.co.uk.      IN      A      192.168.7.100
me.diablog.co.uk.      IN      CNAME      rover.diablog.co.uk.

Dunno if it's any use.
LVL 1
pierskAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

HalldorGCommented:
There is a listen option in bind

listen-on { 192.168.1.2; };

Therefore you could be running 2 instances of bind
 or have different profile depending
on where the query is coming from.

0
pierskAuthor Commented:
No, I need them all running on the same IP. I know that this is possible in windows using aliases, so I'm sure that it must be possible when using BIND
0
HalldorGCommented:
So have you made the external name server to give you namespace of
me.diablog.co.uk

Then for you to add

machine1.me.dablog.co.uk
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

HalldorGCommented:
Or is your problem that you want

me.diablog.co.uk look to be 123.123.123.123 from the outside and 192.168.1.3 from the inside.

0
pierskAuthor Commented:
The second. From the outside the router will pass packets to the server which will then deal with it (i.e. Apache and virtual domains), but on the inside it goes straight to the server.
0
td_milesCommented:
you have a CNAME that points to rover.diablog.co.uk, but no actual entry for "rover" ?
Not sure if this is because you have chopped some of the file out or what ?

Rather than using a CNAME, try just putting in the actual IP address (192.168.1.3) and see if this works.
0
pierskAuthor Commented:
Is that necessary, since my PC can already see rover?

Anyway, i did what you suggested, but this didn't work. For the record, my new file lnow looks like this:

$TTL      43200
diablog.co.uk.      IN      SOA      rover.diablog.co.uk. 2003102514 (
                  6
                  15
                  14D
                  12H
                   )
@            IN      MX      5      192.168.7.100.
@            IN      NS      192.168.7.100.
diablog.co.uk.      IN      A      192.168.7.100
me.diablog.co.uk.      IN      CNAME      192.168.7.100
0
HalldorGCommented:
The record should be me  IN A 192.168.7.100

Can you dig your domain from your server
That is

dig @mylinuxipaddress diablog.co.uk axfr

Second
rover.diablog.co.uk.  should have an A address as it is the zone NS
and the ns should not point to an ip address rather to a name
@        IN   NS rover
rover   IN   A 192.168.7.100

There is a setup on how to use split view setup on this page

http://www.zytrax.com/books/dns/ch6/#stealth

It looked correct to me as what you want



0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pierskAuthor Commented:
That web page is what I want, but I'm unsure how I should go about it. I've changed the config as above, so it now reads:

$TTL      43200
diablog.co.uk.      IN      SOA      rover.diablog.co.uk. 2003102514 (
                  7
                  15
                  14D
                  12H
                   )
@            IN      MX      5      192.168.7.100.
@            IN      NS      rover
rover.diablog.co.uk.      IN      A      192.168.7.100
me              IN      A      192.168.7.100
0
pierskAuthor Commented:
Ta muchly HalldorG. I got a bit confused last night with what you said, and then read it tonight and it all made sense. Many thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.