Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 316
  • Last Modified:

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.
0
piersk
Asked:
piersk
  • 5
  • 4
1 Solution
 
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
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

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

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now