LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-07-2006, 11:22 AM   #1
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Rep: Reputation: 30
I canīt configure a dns server, donīt know how to do it


I canīt configure bind for domain demorgan.com.br

First of all, i want people who access www.demorgan.com.br going to http://my_static_ip/demorgan

I tried to put this on bind

Code:
$TTL    86400
; Authoritative data for demorgan.com.br
;
@                IN       SOA localhost. root.demorgan.com.br. (
                                2004102897      ; Serial (yymmddxx)
                                10800           ; Refresh 3 hours
                                3600            ; Retry   1 hour
                                36000           ; Expire  10 hours
                                86400 )         ; Minimum 24 hours
                 IN       NS            ns1.demorgan.com.br.
                 IN       NS            ns2.demorgan.com.br.

;
;Recebimento de mensagens de mail
;

;demorgan.com.br.        IN      MX      0       mx
;demorgan.com.br.        IN      MX     10       mx

;
; Hosts
;
www.demorgan.com.br. IN CNAME 192.168.0.101
And this o apache 2

Code:
NameVirtualHost 192.168.0.101
<VirtualHost 192.168.0.101>
   ServerName www.demorgan.com.br
   DocumentRoot "/var/www/demorgan"
</VirtualHost>
Where is it wrong?
 
Old 02-07-2006, 12:06 PM   #2
Brian Knoblauch
Member
 
Registered: Jan 2005
Distribution: OpenSuse Tumbleweed
Posts: 288

Rep: Reputation: 39
You need an "A" record, not a "CNAME". Also, there's little point to running one's own DNS server anymore, what with the major registrars having the ability to do it for you for free already. I've had my own DNS servers for a long time and am transitioning to using the registrar's service for nearly all of them (for truly complex setups, you may need your own, but you're far from there right now with what you're trying to do)
 
Old 02-07-2006, 07:57 PM   #3
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Original Poster
Rep: Reputation: 30
Talking

Quote:
Originally Posted by Brian Knoblauch
You need an "A" record, not a "CNAME".
Can you explain better? Serious I NEVER HAVE tried to config a dns server.
 
Old 02-08-2006, 06:44 AM   #4
Brian Knoblauch
Member
 
Registered: Jan 2005
Distribution: OpenSuse Tumbleweed
Posts: 288

Rep: Reputation: 39
Change "www.demorgan.com.br. IN CNAME 192.168.0.101" to read:

www.demorgan.com.br. IN A 192.168.0.101
 
Old 02-08-2006, 06:52 AM   #5
~=gr3p=~
Member
 
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227

Rep: Reputation: 30
get started: http://www.linuxhomenetworking.com/w...onfiguring_DNS
 
Old 02-08-2006, 07:43 AM   #6
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Brian Knoblauch
Change "www.demorgan.com.br. IN CNAME 192.168.0.101" to read:

www.demorgan.com.br. IN A 192.168.0.101
The problem now is that when people access www.demorgan.com.br they get into http://my_static_ip/ and not http://my_static_ip/demorgan/

Last edited by stormrider_may; 02-08-2006 at 09:40 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-27-2012 11:50 PM
How to Configure DNS Server arvind.kumar Linux - Security 2 02-03-2006 06:41 AM
Problems with iptables, routing or dns. I really donīt know what is going on. stormrider_may Linux - Networking 2 02-02-2006 05:05 AM
DNS: Named.conf don point to zone file Swakoo Linux - General 3 09-27-2005 07:02 PM
Suse dontīt boot X; donīt ask for root passwd, YAST donīt work... carrie Linux - Newbie 4 10-08-2004 07:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration