Find the answer to your Linux question:
Results 1 to 2 of 2
I have the following entries in a zone file in bind9: Code: $ORIGIN home.mydomain.com. ; designates the start of this zone file in the namespace $TTL 1h ; default expiration ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    24

    Setting up DNS redirecting


    I have the following entries in a zone file in bind9:
    Code:
    $ORIGIN home.mydomain.com.     ; designates the start of this zone file in the namespace
    $TTL 1h                  ; default expiration time of all resource records without their own TTL value
    ;
    ; BIND data file for mydomain.com
    ;
    $TTL    604800
    (AT)       IN      SOA     home.mydomain.com. home.mydomain.com. (
                                2011120301         ; Serial
                                      7200         ; Refresh
                                       120         ; Retry
                                   2419200         ; Expire
                                    604800)        ; Default TTL
    ;
    
    (AT)       IN      NS      localhost.
    home.mydomain.com.      A       10.0.0.1
    winpc                   IN      A       10.0.0.4
    voip.mydomain.com.      CNAME   yahoo.com. ;TEST
    ld                      IN      CNAME   hotmail.com. ;TEST
    I'm trying to make it so that when ever anyone on my internal network resolves "voip.mydomain.com" that will resolve hotmails IP Address (As you can see I'm trying to use a CNAME record). If they try to resolve home,mydomain,com, then it should resolve to an internal IP Address I have.

    Currently only resolving winpc and ld works, resolving full domain names doesn't do anything, they resolve to their public IP addresses.

    I had to use commas instead if (AT) in place of the at symbol when posting too cause of my post limit.

    Does anyone know why, and how to fix?
    Last edited by Slyke; 07-11-2012 at 01:09 PM.

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    OK, the first question I have is the ORIGIN line. Is your domain really home.mydomain.com or mydomain.com?
    To easily answer this question we will use one of your DNS records that works. Which is right;
    winpc.home.mydomain.com or winpc.mydomain.com?

    Either way I would suggest you change the records in your zone file and remove the domain from them that way they all resolve the same way.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •