LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-25-2012, 11:54 AM   #1
Evstrati
LQ Newbie
 
Registered: Jan 2009
Posts: 24

Rep: Reputation: 0
DNS subzone resolving


Hello,

I have a hard time while setting up a dns server.

Actually there are 2 domains : domain.com and my.domain.com. In my.domain.com there is a www server so that www.my.domain.com opens the web page of the organisation.

In my zone.db I have :

Quote:
$TTL 1d
$ORIGIN domain.com.
@ IN SOA ns root.domain.com. (
2012250601 ; Serial
2h ; Refresh
15m ; Retry
1w ; Expire
604800 ) ; Negative Cache TTL

IN NS ns
IN MX 10 smtp

IN A 1.2.3.4
...

$ORIGIN my.domain.com.
IN MX 10 smtp

IN A 1.2.3.4
www IN A 1.2.3.4
svn IN CNAME www

So with this setup domain.com is correctly resolved as well as my.domain.com, but _not_ www.my.domain.com

Do you have any hints.

Thanks
 
Old 06-25-2012, 01:39 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,
Quote:
So with this setup domain.com is correctly resolved as well as my.domain.com, but _not_ www.my.domain.com
How is my.domain.com resolved? Do you have an A RR for my.domain.com in the 1st part of the zone file?
You should use the @ symbol or the FQDN in your subdomain definition:
Code:
$TTL 1d
$ORIGIN domain.com.
@ IN SOA ns root.domain.com. (
 2012250601 ; Serial
 2h ; Refresh
 15m ; Retry
 1w ; Expire
 604800 ) ; Negative Cache TTL

 IN NS ns
 IN MX 10 smtp

 IN A 1.2.3.4
...

$ORIGIN my.domain.com.
@ IN MX 10 smtp

@ IN A 1.2.3.4
www IN A 1.2.3.4
svn IN CNAME www
 
Old 06-26-2012, 06:52 AM   #3
Evstrati
LQ Newbie
 
Registered: Jan 2009
Posts: 24

Original Poster
Rep: Reputation: 0
Hi there and thanks for helping.

Quote:
Originally Posted by bathory View Post
Hi,
How is my.domain.com resolved? Do you have an A RR for my.domain.com in the 1st part of the zone file?
my.domain.com is resolved as 1.2.3.4 -- the way it is defined in the zone file. In fact domain.com and my.domain.com are both pointing to the same IP address. Actually the most used domain is my.domain.com but for historical reasons I must resolve domain.com to the same IP.

Code:
;; ANSWER SECTION:
my.domain.com. 259090 IN      A       1.2.3.4

;; AUTHORITY SECTION:
domain.com.      259060  IN      NS      ns.domain.com.

;; ADDITIONAL SECTION:
ns.domain.com.   259090  IN      A       1.2.3.3
This is a dig output resolving domain.com (IP and domain changed). I don't have an A RR in the first part. In the first part is declared only domain.com and machines from this domain (www, svn, smtp etc...)


Quote:
You should use the @ symbol or the FQDN in your subdomain definition:
According to this page : http://www.zytrax.com/books/dns/apa/origin.html A blank substitution is also possible. I will however put @'s at the beginning of the corresponding lines.
 
  


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
DNS Resolving kaitech76 Linux - Networking 14 04-08-2009 02:59 PM
resolving dns prob linuxtesting2 Solaris / OpenSolaris 3 03-14-2006 01:23 PM
DNS Resolving sarukie Linux - Networking 1 11-22-2004 10:41 AM
/etc/hosts resolving before DNS resolving ? markraem Linux - Networking 4 11-02-2003 04:54 AM
DNS not resolving ElementNine Linux - Networking 5 09-30-2003 06:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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