Find the answer to your Linux question:
Results 1 to 2 of 2
Originally Posted by alien Thanks for helping me nikhil. I did some more research and I'm using zoneedit as my dns now. Setting up my own dns is too complicated ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    2

    dns is not resolving


    Quote Originally Posted by alien View Post
    Thanks for helping me nikhil. I did some more research and I'm using zoneedit as my dns now. Setting up my own dns is too complicated for me, I gave up. But I am having problems with my virtual hosts now. I'm running name virtual host on my linux box. I set up zoneedit to point to the same ip address for both domains. I upated my httpd.conf to include:

    NameVirutalHost myiphere
    <VirtualHost myiphere>
    DocumentRoot /var/www/domain1
    ServerAdmin webmaster@domain1.com
    ServerName www.domain1.com
    ServerSignature email
    </VirtualHost>

    <VirtualHost myiphere>
    DocumentRoot /var/www/domain2
    ServerAdmin webmaster@domain2.com
    ServerName Welcome to DOMAIN2.COM
    ServerSignature email
    </VirtualHost>

    But everytime I point to domain1 or domain2 on the browser, I get the default Test Page. It doesn't matter what I put in the /var/www/domain1 or domain2 directory. I always get the Test Page. I try changing my index.html to index.htm or index.php.. or whatever. I don't know why is not resolving to my domain1 host or domain2 host. I even went out to buy a book, couldn't find explanation there. Did search on setting up virtual host on the net... read all the How-tos and docs regarding virutal host... I just don't see what else I need to do. When I try putting the * in place of my IP, I get error on starting the httpd. Please read my other post for the exact error. Please help. I really don't know what else to do.
    I am also having the same problem that my dns is not resolving those virtual hosts kindly help me, Here is my dns (zone file ),
    $TTL 86400
    @ IN SOA fed6.slct.com. root.fed6.slct.com. (
    001 ; serial
    28800 ; restart
    14400 ; retry
    3600000 ; expiry
    86400) ; TTL
    IN NS fed6.slct.com.
    IN MX 10 fed6.slct.com.
    fed6.slct.com. IN A 192.168.0.11
    suse10.slct.com. IN A 192.168.0.10
    centos.slct.com. IN A 192.168.0.1
    www IN CNAME fed6
    mail IN CNAME fed6
    __________________________________________________

    I am doing this in fedora core 6 please help I am new to linux

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    What is the domain of your network?
    Is it registered or something that you are just using?
    Looking at your zone file you are mixing it looks like.

    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
  •