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 03-02-2004, 09:04 AM   #1
shizzy-t
Member
 
Registered: Dec 2003
Location: Maine/USA
Distribution: Fedora Core, Centos, Solaris
Posts: 34

Rep: Reputation: 15
DNS questions


I've got DNS up and running for my domain and it works great. Except I'm unable to get one thing to work. How do you make the DNS server answer requests for just the domain name.

I wanted to make the www server answer a request for the domain. So if someone typed in www.example.com or example.com they would come to the same place.

I'm assuming that this all works through DNS although I guess it could possibly be handled by the web server.

Any help would be greatly appreciated.

Cheers.
 
Old 03-02-2004, 11:26 AM   #2
shizzy-t
Member
 
Registered: Dec 2003
Location: Maine/USA
Distribution: Fedora Core, Centos, Solaris
Posts: 34

Original Poster
Rep: Reputation: 15
Ha figured it out. I think.

I gave the domain name an A record

like so

example.com. A 192.168.0.254

then I used CNAME records for the aliases.

www CNAME example.com.

Seems to be working ok.

I'm sure someone would have been able to help me out eventually.

If you have a trick to it or more info please let me know. Thanks.
 
Old 03-02-2004, 11:30 AM   #3
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
Re: DNS questions

Quote:
Originally posted by shizzy-t

I wanted to make the www server answer a request for the domain. So if someone typed in www.example.com or example.com they would come to the same place.

[/B]
In the zone file add entries for www and @. This works with the DNS and no need to add anything in httpd.conf. for eg:

@ IN A x.x.x.x
www IN CNAME @

So when you do a nslookup or dig on www.example.com and example.com you are directed to the same site.

Quote:
Originally posted by shizzy-t
Except . How do you make the DNS server answer requests for just the domain name.
Not sure what you mean by this. If you mean you want yur DNS server to answer only private domains then just delete the root.ca file and use the allow-query option.

Your dns server will be queried only if it has been listed as the primary or secondary name server for your domain or if someone knows you're running a dns server and uses it for resolving addresses.

hope this helps
 
  


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
DNS questions davespink Linux - Newbie 3 02-18-2005 07:34 AM
questions about DNS kloppster Linux - Networking 2 11-01-2004 09:31 PM
dns questions drknow Linux - Networking 4 02-04-2004 09:01 AM
A few questions about DNS gwroy20 Linux - Networking 1 04-11-2003 01:41 AM
DNS Questions... Simon W Linux - Networking 0 02-28-2002 07:32 AM

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

All times are GMT -5. The time now is 02:40 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