LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-14-2005, 08:56 AM   #1
abhijeetudas
Member
 
Registered: Sep 2004
Distribution: Redhat / Fedora
Posts: 114

Rep: Reputation: 15
Dns & Cname


Here is the thing... Mite seem a lilttle confusing but here it is.
i have a DNS server hosted by Hurricane Electric.

so server.mydomain.com resolves to the WAN IP address of my home internet connection say
200.200.200.200

recenly i set up a local DNS at my home { mainly for resolving internal machines }

the domain is <machine>.hme.mydomain.com
it works fine. { The Hurricane Name server has no information about my home DNS Server. }

What i want here is that if i am at home and using the internal DNS server
it should resolve server.mydomain.com to my internal IP address & not the WAN IP addresses.

But that is not the behaviour i got ..

so if i say server.hme.mydomain.com it does resolve to
the internal ip of 192.168.0.5

& server.mydomain.com resolves to 200.200.200.200.

i added a CNAME entry in my zone file. & a PTR entry in the reverse file but it doesnt seem to work.. any clues..

Zone File :

server.hme.mydomain.com IN 1H A 192.168.0.5
server.mydomain.com IN 1H CNAME server.hme.netenrich.com

Reverse :
5 PTR server.hme.mydomain.com.
5 PTR server.mydomain.com.


Is there any way i can get this done .. ?
 
Old 09-15-2005, 03:32 AM   #2
parthenios
LQ Newbie
 
Registered: Jan 2004
Location: Brookline
Distribution: Redhat / Debian / Ubuntu
Posts: 2

Rep: Reputation: 0
I don't think you want to set up a subdomain here. Just resolve all your 192.168.0.x machines in your zone file and have one entry with a unique name for your external interface.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
why To Use CNAME record ???? srnerkar1 Linux - Networking 3 12-31-2005 12:24 AM
Dns - Cname - Domain Masking dulaus Linux - Networking 2 06-06-2005 07:21 AM
DNS, CNAME conflicts in logs cyanescent Linux - Networking 1 05-12-2005 07:31 AM
Any name resolves to. A? CNAME? DNS Q dlublink Linux - Networking 3 01-11-2005 09:55 AM
FYI: O'Reilly, DNS&BIND & Sendmail unSpawn Linux - Networking 3 06-06-2001 08:20 AM

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

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