Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Setting up DNS redirecting

    I have the following entries in a zone file in bind9:
    $ORIGIN     ; 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
    $TTL    604800
    (AT)       IN      SOA (
                                2011120301         ; Serial
                                      7200         ; Refresh
                                       120         ; Retry
                                   2419200         ; Expire
                                    604800)        ; Default TTL
    (AT)       IN      NS      localhost.      A
    winpc                   IN      A      CNAME ;TEST
    ld                      IN      CNAME ;TEST
    I'm trying to make it so that when ever anyone on my internal network resolves "" 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 12:09 PM.

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

    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.


    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