Link to home
Start Free TrialLog in
Avatar of piersk
piersk

asked on

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.
Avatar of HalldorG
HalldorG
Flag of Iceland image

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.

Avatar of piersk
piersk

ASKER

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
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
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.

Avatar of piersk

ASKER

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.
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.
Avatar of piersk

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of HalldorG
HalldorG
Flag of Iceland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of piersk

ASKER

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
Avatar of piersk

ASKER

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.