Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.

Notices

Welcome to LinuxQuestions.org, a friendly and active Linux Community.

You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

I cannot see to get to my site by domain name. I can get to it by IP address fine. I am guessing that the problem is with the Bind configuration file... or maybe Apache?

This works:

Code:

$ dig @dnsserver linuxquestions.org

Which means that DNS is working.
When I type in the browser the IP this works:

Code:

http://192.168.69.221/a_test_website

But this does not work:

Code:

http://mytestwebsite.com

Here is the db.atestsite.com file.

Code:

; BIND data file for mytestsite.
;
$ORIGIN dynamicdnsname.here.com
$TTL 604800
;Name of the primary ns and the email of the administrator.
@ IN SOA ns.mytestsite.com. admin.mytestsite.com. (
2012052806 ;Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
;Tells dns servers on the Internet the primary ns server that have authorit y
IN NS ns.mytestsite.com.
;Anchor records that point to your domain.
;The address localhost.mytestsite.com can only be accessed by the server itself.
localhost IN A 127.0.0.1
;The domain name. The number should be the Public IP address.
;This is the address they ping or browse to http://mytestsite.com.
mytestsite.com. IN A 201.133.69.25
;Pinging ns.mytestsite.com. would return the public IP address.
ns IN A 192.168.69.221
;Browsing www.mytestsite.com. would take the viewer to the site.
www IN A 192.168.69.221
;Makes http://www.mytestsite.com. the same as http://forum.mytestsite.com.
forum IN CNAME www