Results 1 to 5 of 5

Thread: DNS Prob

  1. #1
    Join Date
    Aug 2004
    Posts
    215
    Rep Power
    0

    Default DNS Prob

    I'm trying to learn DNS just practicing

    I setup a domain "domain.com"
    using RH Enterprise

    everything works fine except that after I try installing apache and try to connect using a www alias I set up it doesnt work.

    dig returns the proper records from DNS but the host command doesnt

    in other words if I access servername.doamin.com with mozilla I get the apache test page but if I try www.domain.com I get nothing

    or

    dig www.domain.com is ok, but
    host www.domain.com fails


    in my domain.com file in /var/named/ I put
    "www IN CNAME servername" - this I think is how u set up the alias "www"

    anyone can offer some advice?

  2. #2
    Join Date
    Aug 2004
    Posts
    215
    Rep Power
    0

    Default

    update

    I edited the forward lookup record and added
    www2.domain.com "www2 IN CNAME servername"

    and it works!

    this is strange.

  3. #3
    Join Date
    Aug 2004
    Posts
    215
    Rep Power
    0

    Default

    I now commented out the problem line
    typed the same thing in a new line and it works....
    so the domain.com record has the following
    ;www IN CNAME servername
    www2 IN CNAME servername
    www IN CNAME servername
    Thanks for your help TJ...lol

  4. #4
    Join Date
    Oct 2003
    Posts
    538
    Rep Power
    0

    Default

    First off why would you use domain.com as your doamin when that is a valid domain already??
    If you are going to make a domain for your home use something that DOESN'T already exist. Your bound to have problems.

    if you do
    Code:
    nslookup www.domain.com
    what do u get??
    You get the address u have that domain on?
    Or do a
    Code:
    dig -x xxx.xxx.xxx.xxx (xxx Your server IP address)
    The limits you are living with right now, in very aspect of your existence, have been created by your mind. They are perceptions.
    And they are holding you back.
    You are capable of far more than you think you are.

  5. #5
    Join Date
    Aug 2004
    Posts
    215
    Rep Power
    0

    Default

    Quote Originally Posted by Y@tta
    First off why would you use domain.com as your doamin when that is a valid domain already??
    If you are going to make a domain for your home use something that DOESN'T already exist. Your bound to have problems.

    if you do
    Code:
    nslookup www.domain.com
    what do u get??
    You get the address u have that domain on?
    Or do a
    Code:
    dig -x xxx.xxx.xxx.xxx (xxx Your server IP address)
    sorry I was only using that name to describe the situation...I used another name

Posting Permissions

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